Answered step by step
Verified Expert Solution
Link Copied!

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.image text in transcribedimage text in transcribed

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 9

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

5. Arranging for the training facility and room.

Answered: 1 week ago

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago