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

1 Expert Approved Answer
Step: 1 Unlock

Source Code Output Create a program that calculates the coins needed to make ... View full answer

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 Programming Questions!