The is a Python Program 3. dollar.py (30 Points) Write a program that finds number of Dollars,
Question:
3. dollar.py (30 Points)
Write a program that finds number of Dollars, quarters, dimes, nickels, pennies given an amount.
Steps:
- Prompt user to enter an amount
- Find number of one dollars (remember to convert total amounts to pennies)
- Find umber of quarters in the remaining amount
- Find number of dimes in the remaining amount
- Find number of nickels in the remaining amount
- Find number of pennies in the remaining amount
- Display results
Sample Output:
Your amount 10.63 consists of
10 dollars
2 quarters
1 dimes
0 nickels
3 pennies
- cookies.py (30 Points)
Ingredients:
- 1. 5 Cups of sugar
- 1 cup of butter
- 2.75 cups of flour
The above ingredients produces 48 cookies. Write a program that asks the user to enter how many cookies they want, then display the number of cups of each ingredients needed for the specified number of cookies.
Steps:
1. Prompt user to get the number of cookies.
2. Calculate the cups of sugar needed to make the cookies.
3. Calculate the cups of butter needed to make the cookies.
4. Calculate the cups of flour needed to make the cookies.
5. Print the amount of butter, sugar, and flour needed to make the specified number of cookies.
Sample Output:
Enter the number of cookies: 99 To make 99.0 cookies, you will need: 3.09 cups of sugar 2.06 cups of butter 5.67 cups of flour