Reference no: EM132194783
Write a C++ program to do the following:
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.
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.
In the "main" call a function that will calculate the voltage across each resistor.
In the "main" call a function that will calculate the power dissipated in each resistor.
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=#####
Note: all resistor values have no decimal values and are 1000 ohms or more and all output values should only have 3 decimal places.