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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started