Question: Create a program that calculates the coins needed to make change for the specified number of cents. Change Calculator Enter number of cents (0-99): 99
Create a program that calculates the coins needed to make change for the specified number of cents.
Change Calculator
Enter number of cents (0-99): 99
Quarters: 3
Dimes: 2
Nickels: 0
Pennies: 4
Continue? (y/n): y
Enter number of cents (0-99): 55
Quarters: 2
Dimes: 0
Nickels: 1
Pennies: 0
Continue? (y/n): n
Bye!
Specs
- The program should display the minimum number of quarters, dimes, nickels, and pennies that one needs to make up the specified number of cents.
- Assume that the user will enter a valid integer for the number of cents.
- The program should continue only if the user enters "y" or "Y" to continue.
using python programming language.
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
Source Code Output Create a program that calculates the coins needed to make ... View full answer
Get step-by-step solutions from verified subject matter experts
