Need help starting a C code.

Write a program to compute the current in an AC circuit that has three resistors R1, R2, and R3, in parallel. The voltage source is V. Test your solution with various voltage levels and resistor values. Execute and submit the program and the results in screen captures. Repeat the problem if the resistors are in series.

I know the formulas that need to be used to calculate the current (It) running through the circuit, im just not sure how to write the program to execute said formulas.



Parallel:

Rt = (R1 || R2) || R3
It= V/Rt

Series:

Rt= R1+R2+R3
I= V/Rt
Topic archived. No new replies allowed.