Ricardo S.

asked • 01/22/20

Python Programming Logic Question

A cookie recipe calls for the following ingredients:

• 1.5 cups of sugar

• 1 cup of butter

• 2.75 cups of flour

The recipe produces 48 cookies with this amount of ingredients. Write a program

that asks the user how many cookies they want to make and then displays the number

of cups of each ingredient needed for the specified number of cookies in the following format:


You need 5 cups of sugar, 3 cups of butter, and 7 cups of flour.

1 Expert Answer

By:

Mushfique A. answered • 01/22/20

Tutor
5 (78)

Software Engineer Specializing in Python (3+ Years in ML and AI)

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.