Question: I need help with this c++ programming these outputs into loops. output: Programmed by Finding Equivalent Resistance Are the resistors in Parallel (P) or Series(S)

I need help with this c++ programming these outputs into loops.

output:

Programmed by

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: S

How many resistors are there: 4

Resistor 1 (in ohms): 65

Resistor 2 (in ohms): 84

Resistor 3 (in ohms): 73

Resistor 4 (in ohms): 10

The equivalent resistance is: 232.00 ohms

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: p

How many resistors are there: 3

Resistor 1 (in ohms): 90

Resistor 2 (in ohms): 45

Resistor 3 (in ohms): 100

The equivalent resistance is: 23.08 ohms

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: r

Press any key to continue . . .

Programmed by

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: s

How many resistors are there: 0

Invalid- try again!!

How many resistors are there: -7

Invalid- try again!!

How many resistors are there: -2

Invalid- try again!!

How many resistors are there: 2

Resistor 1 (in ohms): 45

Resistor 2 (in ohms): 70

The equivalent resistance is: 115.00 ohms

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: s

How many resistors are there: 3

Resistor 1 (in ohms): 60

Resistor 2 (in ohms): 0

Invalid- try again!!

Resistor 2 (in ohms): 90

Resistor 3 (in ohms): -5

Invalid- try again!!

Resistor 3 (in ohms): 30

The equivalent resistance is: 180.00 ohms

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: P

How many resistors are there: -5

Invalid- try again!!

How many resistors are there: 0

Invalid- try again!!

How many resistors are there: 1

Resistor 1 (in ohms): 0

Invalid- try again!!

Resistor 1 (in ohms): -4

Invalid- try again!!

Resistor 1 (in ohms): -5

Invalid- try again!!

Resistor 1 (in ohms): 60

The equivalent resistance is: 60.00 ohms

Finding Equivalent Resistance

Are the resistors in Parallel (P) or Series(S) - all else will quit: a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!