Question: 10.4 Spring 2021 Making Change Write a program to determine what change a cashier should return to a customer. The program will ask how much

10.4 Spring 2021 Making Change

Write a program to determine what change a cashier should return to a customer. The program will ask how much an item being purchased costs, and then how much the customer paid. The program will return what change should be given. (see output below)

Sample Output

Enter the item cost: 7.12 Enter what customer paid: 20.00 The total number of cents to be returned is: 1288 Change given should be Number of 10 dollar bills: 1 Number of 5 dollar bills: 0 Number of 1 dollar bills: 2 Number of quarters: 3 Number of dimes: 1 Number of nickels: 0 Number of pennies: 3

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!