Question
HW 7 In series circuits we can calculate the voltage, current and power for each resistor using the following. R total = R 1 +
HW 7
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 = IR2 = IR3 = Vtotal/ R total = current is the same everywhere in a series circuit
VR1 = I * R1, VR2=I *R2, etc.
Power dissipated in each resistor is PR1 = I2 * R1 , PR2 = I2 * 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=#####
Note: all resistor values have no decimal values and are 1000 ohms or more and all output values should only have 3 decimal places.
R R2 R4 R 3Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started