write a program to solve the problems, but simply answer the questions following the program specification. 1. Assume that a C++ program is to be written to calculate the total resistance of a series circuit. In such a circuit the total resistance is the sum of all individual resis- tance values. Assume that the circuit consists of a number of 56 ohm, 33 ohm, and 15 ohm resistors. a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items Assume that the number of S6 ohm resistors is m, the number of 33 ohm resis- tors is n, the number of 15 ohm resistors is p. d. Testthe algorithm,written for part c using the following sample data: m = 17, n = 24, and p 12. 2. Assume that a program is to be written to calculate the value of distance, in miles, given the relationship: distance rate" elapsed time a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the following sample data: rate is 55 miles per hour and elapsed time is 2.5 hours. e. How must the algorithm you determined in par c be modified if the elapsed 3. Assume that a program is to be written to determine the value of Ergies, given time were given in minutes instead of hours? the relationships: Ergies Fergies /Lergies a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the following sample data: 14.65, = 3.1416, 1.672, and 2.7818. Fergies 4. Assume that a program is to be written to display the following specifications: Voltage Amplification: 35 2.5 watts 15KHz ower output: Bandwidth: a. For this program problem how many lines of output are required b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items