Question: Chapter 2 : Auto - Graded Programming Project 1 3 tries left A cookie recipe calls for the following ingredients: 1 . 5 cups of
Chapter : AutoGraded Programming Project
tries left
A cookie recipe calls for the following ingredients:
cups of sugar
cup of butter
cups of flour
The recipe produces 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 cups of sugar, cups of butter, and cups of flour.
Where is the number of cups of sugar, is the number of cups of butter, and is the number of cups of flour. Don't worry about rounding the numbers in the output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
