Question: Write a program which prompts a user for the amount of sale and amount tendered, reads the values and calculates the total change, and the

Write a program which prompts a user for the amount of sale and amount tendered, reads the values and calculates the total change, and the denominations of dollars, quarters, dimes, nickels and pennies in the total change.
For examples,
Enter the amount of sale: 8.27
Enter the amount tendered by customer: 10.00
The total change is: $1.73
Denominations are
Dollars: 1
Quarters: 2
Dimes: 2
Nickels: 0
Pennies: 3
____________________________________________________________________________
Enter the amount of sale: 3.01
Enter the amount tendered by customer: 5.00
The total change is: $1.99
Denominations are
Dollars: 1
Quarters: 3
Dimes: 4
Nickels: 1
Pennies: 4

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!