Question: The language is java. The only allowed import is java.util.Scanner the menu is as it follows Chick-fil-1331 Sandwich $4.98/$7.49 Double Fries $1.98 Java Coke $1.49

 The language is java. The only allowed import is java.util.Scanner the

menu is as it follows Chick-fil-1331 Sandwich $4.98/$7.49 Double Fries $1.98 Java

The language is java.

The only allowed import is java.util.Scanner

the menu is as it follows

Chick-fil-1331 Sandwich $4.98/$7.49 Double Fries $1.98 Java Coke $1.49

Thank you!

Solution Description You will be writing a Java class called Menu.java that prints out a menu and then allows the user to order 2 items from the menu. We will provide you with the specific menu items and their prices. All of your code should execute within the main method of the Menu class. You should only create a single Java class called Menu.java with a main method. Requirements Ask the user What would you like to order? If the user asks for a sandwich, the program should prompt: Would you like a combo?" If the user enters an invalid input or something not on the menu, you do not need to change the total or prompt again, they have lost a chance to order. Just continue on with the program as follows. Ask the user Would you like to order anything else? If they respond no, output their total by saying: Your total is (total). Have a great day! o The total should only be outputted with 2 decimal points and should have 5% tax added to it If they respond yes, ask again: What would you like to order? . If they ask for a combo, the same steps as above apply . After the order is finished, output the final total Provided Menu Chick-fil-1331 Sandwich Double Fries Java Coke $4.98/$7.49 $1.98 $1.49 Make sure that the user input matches the menu item exactly. If it does not, it is considered an invalid item. Sample Output $ java Menu Chick-fil-1331 Sandwich Double Fries Java Coke $4.98/$7.49 $1.98 $1.49 What would you like to order? Chick-fil-1331 Sandwich Would you like a combo? Yes Would you like to order anything else? Yes What would you like to order? Java Coke Your total is $9.43. Have a great day

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