Question: Change Calculator Write a program that directs a cashier on how to give change. The program has two inputs: the amount due and the amount
Change Calculator
Write a program that directs a cashier on how to give 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. Assume that the amount the customer paid is in fact, greater than or equal to the amount due.
If the user enters for the amount received and for the amount due, your program's output should look XACTLY like this:
Please enter the amount received:
Please enter the amount due:
dollars:
quarters:
dimes:
nickels:
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
