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 137.37 for the amount received and 13.70 for the amount due, your program's output should look XACTLY like this:
Please enter the amount received: 137.37
Please enter the amount due: 13.70
dollars: 123
quarters: 2
dimes: 1
nickels: 1
 Change Calculator Write a program that directs a cashier on how

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!