Question
Design, code, and test a C++ program that helps a cashier make change. The program has two inputs: the amount due and the amount received
Design, code, and test a C++ program that helps a cashier make change. The program has two inputs: the amount due and the amount received from the customer. Display the number of dollars, quarters, dimes, nickels, and pennies that the customer should receive as change. You should give the customer the fewest number of bills/coins possible. Hint: Integer Division and Remainder will be helpful for this program. Your program should contain NO magic numbers. Make sure you prompt the user for the two inputs. Make sure your output is formatted properly and includes text that tells the user what the output represent.
Test your program with plenty of values to ensure that it's working properly, then submit output with the following values:
An amount due of $7.22 and amount received of $10.00.
An amount due of $1.11 and amount received of $5.00.
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