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:
7
.
1
2
Enter what customer paid:
2
0
.
0
0
The total number of cents to be returned is:
1
2
8
8
Change given should be
Number of
1
0
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
5
4
1
4
4
0
.
3
9
2
0
1
2
4
.
qx
3
zqy
7

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!