ace@staticwave:~/code$ ./code-assignment3 Please enter the number of resistances: 7 Please enter the circuit voltage: 12 Please enter the value for resistor 1: 2.5 Please enter the value for resistor 2: 2.7 Please enter the value for resistor 3: 0.5 Please enter the value for resistor 4: 23 Please enter the value for resistor 5: 1.7 Please enter the value for resistor 6: 10.4 Please enter the value for resistor 7: 1.5 The total resistance is 0.240102ohms The current through the circuit is 49.9789A The largest resistor is 23ohms -------------------------------------------- ace@staticwave:~/code$ ./code-assignment3 Please enter the number of resistances: 6 Please enter the circuit voltage: 6 Please enter the value for resistor 1: 200 Please enter the value for resistor 2: 40 Please enter the value for resistor 3: 36 Please enter the value for resistor 4: 98 Please enter the value for resistor 5: 5 Please enter the value for resistor 6: 78 The total resistance is 3.56122ohms The current through the circuit is 1.68481A The largest resistor is 200ohms -------------------------------------------- ace@staticwave:~/code$ ./code-assignment3 Please enter the number of resistances: 13 Please enter the circuit voltage: 50 Please enter the value for resistor 1: 150 Please enter the value for resistor 2: 75 Please enter the value for resistor 3: 35 Please enter the value for resistor 4: 200 Please enter the value for resistor 5: 500 Please enter the value for resistor 6: 350 Please enter the value for resistor 7: 450 Please enter the value for resistor 8: 50 Please enter the value for resistor 9: 923 Please enter the value for resistor 10: 654 Please enter the value for resistor 11: 123 Please enter the value for resistor 12: 523 Please enter the value for resistor 13: 452 The total resistance is 10.4693ohms The current through the circuit is 4.77589A The largest resistor is 923ohms