Question
using python write a program that: 1)asks user for an amount of money in dollars and cents (use input function) 2)Your code should print back
using python
write a program that:
1)asks user for an amount of money in dollars and cents (use input function)
2)Your code should print back the amount entered by the user
3)you should put your program in a file called change.py Your program should list the monetary equivalent of the amount entered in 100 dollar bills, 50 dollar bills, 20 dollar bills, 10 dollar bills, 5 dollar bills, 1 dollar bills, 25 cent coins, 10 cent coins, 5 cent coins, and 1 cent coins. Your program should report the maximum number of 100 dollar bills you can use, then the maximum numer of 50 dollar bils, 20 dollar bills, etc.
Here is an example:
enter amount: 589.66
589.66
5 100 dollar bills
1 50 dollar bills
1 20 dollar bills
1 10 dollar bills
1 5 dollar bills 4
1 dollar bills
2 25 cent coins
1 10 cent coins
1 5 cent coins
1 1 cent coins
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started