Question: C + + Write a program to determine what change a cashier should return to a customer. The program will ask how much an item
C 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:
Enter what customer paid:
The total number of cents to be returned is:
Change given should be
Number of
dollar bills:
Number of
dollar bills:
Number of
dollar bills:
Number of quarters:
Number of dimes:
Number of nickels:
Number of pennies:
qx
zqy
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
