Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please help I really don't understand how to start this program. My professor tells me to Make sure to use constants. Use command line for
please help I really don't understand how to start this program. My professor tells me to "Make sure to use constants. Use command line for both input and output". this is in java and I need to use eclipse. so please help step by step.
15. Ingredient Adjuster 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, then displays the number of cups of each ingredient needed for the specified number of cookies. FC *Ingredientadjuster.java X package ingredientadjuster; Z public class Ingredientadjuster 3 { final double CUPS_OF_SUGAR_= 1.5; 5 final double CUPS_OF_BUTTER = 1; 6 final double CUPS_OF_FLOUR = 2.75; int REGULAR_BATCH_OF_COOKIES = 48; int USER_NUMBER_OF_COOKIES; public static void main(String[] args) { 10 System.out.println(" How many cookies would he or she want to make ? "); 10 12 13 14 } 15 9Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started