Hi, I want to create a mobile app function like the picture. But I don’t know how to create it. There is a math formula attached. I hope someone can help me with this project.My Web blog
This is a block code format generated by AI, but I don’t understand how to create it. [ ActivePower = call math convert to number (ActivePowerInput.Text)
Voltage = call math convert to number (VoltageInput.Text)
PowerFactor = call math convert to number (PowerFactorInput.Text)
PhaseType = PhaseSelector.Selection
if PhaseType = “AC - Single Phase” then:
Current = (ActivePower * 1000) / (Voltage * PowerFactor)
else if PhaseType = “AC - Three Phase” then:
Current = (ActivePower * 1000) / (sqrt(3) * Voltage * PowerFactor)
else if PhaseType = “DC” then:
Current = (ActivePower * 1000) / Voltage
set ResultValue.Text to (round(Current) + " A") ]