Question: Chapter 2 : Auto - Graded Programming Project 1 3 tries left A cookie recipe calls for the following ingredients: 1 . 5 cups of

Chapter 2: Auto-Graded Programming Project 1
3 tries left
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 rounding the numbers in the output.
 Chapter 2: Auto-Graded Programming Project 1 3 tries left A cookie

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!