Question: The is a Python Program 3. dollar.py (30 Points) Write a program that finds number of Dollars, quarters, dimes, nickels, pennies given an amount. Steps:

The is a Python Program

3. dollar.py (30 Points)

Write a program that finds number of Dollars, quarters, dimes, nickels, pennies given an amount.

Steps:

  1. Prompt user to enter an amount
  2. Find number of one dollars (remember to convert total amounts to pennies)
  3. Find umber of quarters in the remaining amount
  4. Find number of dimes in the remaining amount
  5. Find number of nickels in the remaining amount
  6. Find number of pennies in the remaining amount
  7. Display results

Sample Output:

Your amount 10.63 consists of

10 dollars

2 quarters

1 dimes

0 nickels

3 pennies

  1. 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

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