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:
1.5 cups of sugar
1 cup of butter
2.75 cups of flour
The recipe produces 48 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.
1. Create a new NetBeans project called Ex5Recipe.
2. 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.
3. Use appropriate variable names, constants and comments.
4. Be sure to test your work.

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 Programming Questions!