Question: Programming needed in c++ 1. The electric circuit shown in the figure below is designed by specifying values for the six resistances R1 through R6.


Programming needed in c++
1. The electric circuit shown in the figure below is designed by specifying values for the six resistances R1 through R6. R R2 RE RE 02 R3 + 15 V RA -2 V The figure indicates that the output voltage of the circuit must be 15 Volts when the input voltage is 2 Volts. Consequently, the circuit will operate correctly only when the six resistances satisfy the following equation: (R1 + R2)R4R6 = 7.5 (R3 + R4)R4 R5 Sample values are given in the file (resistances.txt) contains several proposed designs for the circuit. Each line of the file provides the six resistances listed in order. Some of the designs may not be correct. Write a program that reads the values from the user and print out on the screen whether this is a bad design or a good design. Sample output: Bad Design values: Good Design values: 10 10 15 75 10 10 20 75 10 10 10 10 ... Bad Design values 10 15 10 20 10 10 25 34 15 65 75 5 2 5 12 24 84 34 6 5 15 24 12 42 40 100 10 5 25 30 35 20 10 15 5 20 Good Design values 100 165 100 165 22 100 55 120 55 120 16 55 40 105 40 105 14 40 25 90 25 90 12 25 505 570 505 570 76 505 490 555 490 555 74 490
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
