Question: Program 2 : change.py For your second program, you will write a program that converts a user entered number of cents into the fewest number
Program :
change.py
For your second program, you will write a program that converts a user entered number of cents into the fewest number of US coins of that amount. US currency has different types of coins: quarters cents dimes cents nickels cents and pennies cent You will need to use the floor division operator for this problem. Your program will need to prompt the user to enter a number of cents in the terminal. Hint: Start with the largest denominations first!
The output of this program should be counts of each type of coin that represents this value. Your solution must be the fewe'st set of coins that equal the number of cents.
Example Output
Your output should be formatted like the image below.
Please enter a number of cents:
coins: quarters, dimes, nickels pennies
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
