Question: This is intended to be a c++ program: Write a program that prompts the user to enter some number of pennies (1-cent coins), nickels (5-

This is intended to be a c++ program:

Write a program that prompts the user to enter some number of pennies (1-cent coins), nickels (5- cent coins), dimes (10-cent coins), quarters (25-cent coins), and half-dollar coins (50-cent coins).

Query the user separately for the quantity of each type of coin, e.g., "How many pennies do you have?" Then your program should print out the quantity of each coin that was entered and compute the total in cents. Then take the total number of cents and either convert or format your output to display your results in dollars and cents as shown within the sample run section.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!