The user enters a cost and then the amount of money given. The program will figure out the change and the number of twenty-dollar bills, ten-dollar bills, five-dollar bills, single-dollar bills, quarters, dimes, nickels, pennies needed for the change. You must have the maximum amount of higher denominations possible before allowing for lower denominations. For example, If your change is $18.88, You must have One Ten-dollar bill, One Five-dollar bill, Three singles, Three quarters, One dime and three pennies. There should be no nickels; Not three Five-dollar bills etc.
In Python
The user enters a cost and then the amount of money given. The
Please include Branching, Loops, Functions, Lists/Arrays, Tuples, Error Trapping/Exception Handling, Output, Classes, and Dictionary
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images