Question: Write a C++ program In series circuits we can calculate the voltage, current and power for each resistor using the following. R total = R
In series circuits we can calculate the voltage, current and power for each resistor using the following. R total = R 1 + R 2 + R 3 + R4 sum all the resistors I total = I_R1 = I_R2 = I_R3 = V total/R total = current is the same everywhere in a series circuit V_R1 = I * R1, V_R2 = I * R2, etc. Power dissipated in each resistor is P_R1 = I^2 * R1, P_R2 = I^2 * R2, etc Write a program to do the following: a) The "main" section of the program will ask the user for the value of four resistors in your series circuit and the total voltage (V) applied to the series circuit. b) In the "main" section it must call a function that will calculate the total series resistance and return the total resistance value to the "main" section. c) In the "main" call a function that will calculate the voltage across each resistor. d) In the "main" call a function that will calculate the power dissipated in each resistor. e) In the "main" call a function that will display an output that looks like For the series circuit: R1 = ##### R2 = #### R3 = #### R4 = #### Rtotal = ###### IR1 = ##### IR2 = #### IR3 = #### IR4 = #### Itotal = ###### VR1 = ##### VR2 = #### VR3 = #### VR4 = #### Vtotal = ##### PR1 = ##### PR2 = #### PR3 = #### PR4 = #### Ptotal = #####
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
