Create a program that calculates the coins needed to make change for the specified number of cents.
Fantastic news! We've Found the answer you've been seeking!
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
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.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: