Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions