Question: Written in Python Write a program that converts the number of cents that the user input. The program will ask the user for the number

Written in Python

Write a program that converts the number of cents that the user input. The program will ask the user for the number of cents then convert the change into the amount of 20 dollar bills, 10 dollars bills, 5 dollar bills, quarters, dimes, nickels, and pennies. Be sure to use functions such as if and else if in your code.

Hint: Single and multiple of a certain type of currency. example: 1x Penny vs 2x Pennies:

n = input ('Enter the amount') <-------- used to store the user input

Sample output for the input of 1158 cents.

The Change for 12 dollars and 168 cents

0x Twenty Dollar bills

1x Ten Dollar bills

0x Five Dollar bills

3x One Dollar bills

2x Quarters

1x Dime

1x Nickel

3x Pennies

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!