Question: ****PYTHON PROGRAM: 2. Write a program to compute the number of pieces of each denomination needed to add up to a given amount of money.

****PYTHON PROGRAM:****PYTHON PROGRAM: 2. Write a program to compute the number of pieces

2. Write a program to compute the number of pieces of each denomination needed to add up to a given amount of money. Call your program file 'money_change.py'. Start by dividing the amount by 20 to find the number of $20 bills, then divide the remainder by 10 to find the number of $10 bills. Repeat with $5, $1,25c coins, 10c, 5c and 1c. Example usage: This program will compute the number of coins of each denomination Amount: $428.37 $20 x 21 $100 $5 x 1 $1 x 3 $0.25 x 1 $0.1 x 1 $0.05 x 0 $0.01 x 2

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!