Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java beginner help, please dont make code overly complicated. thanks Example Output: ***Juice Bar!*** Here is our menu: ABC: Apple-Carrot-Beet ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber) 3C:

java beginner help, please dont make code overly complicated. thanks
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Example Output:
***Juice Bar!***
Here is our menu:
ABC: Apple-Carrot-Beet
ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber)
3C: Triple C (Carrot-Cantalope-Cucumber)
CO: Carrot-Orange
CB: Cold Buster (Orange-Ginger-Garlic)
HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon)
RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale)
TRP: Tropical (Pineapple-Kale-Orange)
Enter the juice code and quantity: CO10
10 Carrot-Orange coming right up!
Another juice? (y): yes
Here is our menu:
ABC: Apple-Carrot-Beet
ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber)
3C: Triple C (Carrot-Cantalope-Cucumber)
CO: Carrot-Orange
CB: Cold Buster (Orange-Ginger-Garlic)
HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon)
RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale)
TRP: Tropical (Pineapple-Kale-Orange)
Enter the juice code and quantity: RMP2
2 Red Mars Punch coming right up!
Another juice? (y): Y
Here is our menu:
ABC: Apple-Carrot-Beet
ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber)
3C: Triple C (Carrot-Cantalope-Cucumber)
CO: Carrot-Orange
CB: Cold Buster (Orange-Ginger-Garlic)
HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon)
RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale)
TRP: Tropical (Pineapple-Kale-Orange)
Enter the juice code and quantity: 3C123
123 Triple C coming right up!
Another juice? (y): yes
Here is our menu:
ABC: Apple-Carrot-Beet
ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber)
3C: Triple C (Carrot-Cantalope-Cucumber)
CO: Carrot-Orange
CB: Cold Buster (Orange-Ginger-Garlic)
HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon)
RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale)
TRP: Tropical (Pineapple-Kale-Orange)
Enter the juice code and quantity: XYZ50
Sorry! We don't carry that juice.
Another juice? (y): y
Here is our menu:
ABC: Apple-Carrot-Beet
ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber)
3C: Triple C (Carrot-Cantalope-Cucumber)
CO: Carrot-Orange
CB: Cold Buster (Orange-Ginger-Garlic)
HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon)
RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale)
TRP: Tropical (Pineapple-Kale-Orange)
Enter the juice code and quantity: HN12345
12345 Health Nut coming right up!
Another juice? (y): No
Have a Juicy Day!
Juice Bar In this assignment we will develop a program to simulate a juice bar where patrons can order juices using a code Below is the list of juices served along with the code that represents each juice: Juice Code Apple-Carrot-Beet ABC Antioxidant Supreme (Blueberry-Kale Lime Cucumber) ANT Triple (Carrot Cantalope Cucumber) 3C Carrot-Orange CO Cold Buster (Orange-Ginger Garlic CB Health Nut Kale Spinach. Cucumber - Beet - Lemon) HN Red Mars Punch (Beet Cranberry Red Apple-Red RMP Kale) Tropical (Pineapple - Kale - Orange) TRP The user will make an order by typing in one of the above codes, followed by the quantity of juice desired. For example: Enter the Juice code and quantity: HN2 The program should then display the full name and quantity of the juice the customer selected: 2 Bealth Nut coming right up! Use an indefinite do-while loop to allow multiple orders to be placed, and include the following prompt: Another juice? (y): 1 The user program should continue when the user types Y. y. yes, Yes, or YES and end when the user types one of the following: N, n, no, No, or NO Note that incorrect juice codes should lead the program to display the following error message: Sorry! We don't carry that juice. At the end of the program, print the following message: Have a Juicy Day! When your program works identically to the example output (except the user input may vary depending on the juices ordered), submit it to Canvas Example Output: *** Juice Bar!*** Here is our menu: ABC: Apple-Carrot-Beet ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber) 3C: Triple C (Carrot-Cantalope-Cucumber) CO: Carrot-Orange CB: Cold Buster (Orange-Ginger-Garlic) HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon) RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale) TRP: Tropical (Pineapple-Kale-Orange) Enter the juice code and quantity: 2010 10 Carrot-Orange coming right up! Another juice? [y): yes Here is our menu: ABC: Apple-Carrot-Beet ANT: Antioxidant Supreme (Blueberry-Kale-lime-Cucumber) 30: Triple C (Carrot-Cantalope-Cucumber) CO: Carrot-Orange CB: Cold Buster (Orange-Ginger-Garlic) HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon) RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Kale) TRP: Tropical (Pineapple-Kale-Orange) Enter the juice code and quantity: RMP2 2 Red Mars Punch coming zight up! Another juice? (y): Y Here is our menu: ABC: Apple-Carrot-Beet ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber) 3C: Triple C (Carrot-Cantalope-Cucumber) CO: Carrot-Orange Enter the juice code and quantity: XY250 Sorry! We don't carry that juice. Another juice? (y): Y Here is our menu: ABC: Apple-Carrot-Beet ANT: Antioxidant Supreme (Blueberry-Kale-Lime-Cucumber) 30: Triple (Carrot-Cantalope-Cucumber) CO: Carrot-Orange CB: Cold Buster (Orange-Ginger-Garlic) HN: Health Nut (Kale-Spinach-Cucumber-Beet-Lemon) RMP: Red Mars Punch (Beet-Cranberry-Red Apple-Red Rale) TRP: Tropical (Pineapple-Kale-orange) Enter the juice code and quantity: HN12345 12345 Health Nut coming right up! Another juice? (y): No Have a Juicy Day

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

More Books

Students also viewed these Databases questions

Question

8. Do the organizations fringe benefits reflect diversity?

Answered: 1 week ago