Question: solve please submit only the answer A cookie recipe calls for the following ingredients: - 1.5 cups of sugar - 1 cup of butter -

solve please submit only the answer
solve please submit only the answer A cookie recipe calls for the

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. When the program asks the user for the number of cookies, it should display the following string as a prompt: 'Enter number of cookies:' When the program displays the number of cups of ingredients, it should display a message in the following format: You need x cups of sugar, y cups of butter, and z cups of flour. Where x is the number of cups of sugar, y is the number of cups of butter, and z is the number of cups of flour. Don't worry about formatting the numbers in the output. The following sample run shows an example of the program's output. The user's input is shown in bold

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!