Answer:
The program in Python is as follows:
R1 = int(input("R1: "))
R2 = int(input("R2: "))
R3 = int(input("R3: "))
Rt = R1 + R2 + R3
Vs = int(input("Circuit Voltage: "))
It = Vs/Rt
V1= It * R1
V2= It * R2
V3= It * R3
print("The voltage drop across R1 is: ",V1)
print("The voltage drop across R2 is: ",V2)
print("The voltage drop across R3 is: ",V3)
Explanation:
The next three lines get the value of each resistor
R1 = int(input("R1: "))
R2 = int(input("R2: "))
R3 = int(input("R3: "))
This calculates the total resistance
Rt = R1 + R2 + R3
This prompts the user for Circuit voltage
Vs = int(input("Circuit Voltage: "))
This calculates the total circuit voltage
It = Vs/Rt
The next three line calculate the voltage drop for each resistor
V1= It * R1
V2= It * R2
V3= It * R3
The next three line print the voltage drop for each resistor
print("The voltage drop across R1 is: ",V1)
print("The voltage drop across R2 is: ",V2)
print("The voltage drop across R3 is: ",V3)