A C++ program is required that calculates the amount, in dollars, contained in a piggybank. The bank contains half dollars, quarters, dimes, nickels, and pennies.
a. For this programming problem, how many outputs are required?
b. How many inputs does this problem have?
c. Write an algorithm for converting the input items into output items.
d. Test the algorithm written for Exercise 1c using the following sample data: half dollars 0, quarters 17, dimes 24, nickels 16, and pennies 12.