Question: This exercise will be prompting the user for input. If you are using an IDE other than NetBeans, you may need to import java.util.scanner. A
This exercise will be prompting the user for input. If you are using an IDE other than NetBeans, you may need to import
java.util.scanner.
A cookie recipe calls for the following ingredients:
cups of sugar
cup of butter
cups of flour
The recipe produces cookies with these amounts of the ingredients. Write a program that asks the user how many cookies he
or she wants to make, and then displays the number of cups of each ingredient needed for the specified number of cookies.
Create a new NetBeans project called ExRecipe.
Code a solution that will let the user enter the number of cookies they would like to make, adjust, and display the
adjusted ingredient quantities.
Use appropriate variable names, constants and comments.
Be sure to test your work.
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
