Question: Write a C + + program that prompts the user to enter some number of pennies cent coins ) , dimes ( 1 0 -
Write a program that prompts the user to enter some number of pennies cent coins dimes cent coins quarters cent coins half dollars cent coins and onedollar coins cent coins Query the user separately for the number of each size coin, eg "How many pennies do you have?" Then your program should print out something like this:
You have pennies.
You have nickels.
You have dimes.
You have quarters.
You have half dollars.
The value of all your coins is cents or $
Also, report the sum in dollars and cents, ie $ instead of cents.
If there are no coins of a certain type, do not print anything for that type.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
