Krunchy Krabcakes is a seafood restaurant which serves a very limited menu of sea-based delicacies. The menu consists of the following items with associated prices:
Crabcake $4.59
Shrimp Wrap $7.79
Lobster Soup $9.39
Write a Java program which displays a menu to the customer which allows them to place an order consisting of one or more of these menu items. The menu should use a simple numeric selection method to order an item. For example, '1' orders a crabcake, '2' orders an shrimp wrap, and '3' is an order of lobster soup, while '0' indicates the order is complete. To order more than one of an item, the customer selects the item again on the menu. Once a customer's order is complete, your program should display the total number of each item ordered and the total price for their order.
Your program must use a while loop to allow the customer to order multiple items (and complete their order by pressing 0), and it must use a switch statement to handle each possible type of input, as well as displaying an error message if an incorrect choice is selected. User input should be read as an integer (not a String or char).
Refer to the programming rubric for details on how this project will be graded. Remember to use consistent alignment and indentation, an identification header, and descriptive comments in your code (but don't overdo it). All user-facing output (i.e. prompts) must be spell-checked and proofread for correctness. You should use named constants with upper case names for your menu prices since those values will not change, for example you can declare the price of a crabcake as
final double PRICE_CRABCAKE = 4.59;
The menu numbers associated with ordering an item or completing an order should also be declared (and used) as named constants.
Sample Input/Output (user input is shown in red):
Welcome to Krunchy Krabcakes!
Please enter an item to order, or 0 to complete your order.
Enter 1 to order a crab cake for $4.59
Enter 2 to order an shrimp wrap for $7.79
Enter 3 to order lobster soup for $9.39
Order: 1
You have ordered a total of 1 crab cake(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order a crab cake for $4.59
Enter 2 to order an shrimp wrap for $7.79
Enter 3 to order lobster soup for $9.39
Order: 1
You have ordered a total of 2 crab cake(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order a crab cake for $4.59
Enter 2 to order an shrimp wrap for $7.79
Enter 3 to order lobster soup for $9.39
Order: 2
You have ordered a total of 1 shrimp wrap(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order a crab cake for $4.59
Enter 2 to order an shrimp wrap for $7.79
Enter 3 to order lobster soup for $9.39
Order: 3
You have ordered a total of 1 order(s) of lobster soup
Please enter an item to order, or 0 to complete your order.
Enter 1 to order a crab cake for $4.59
Enter 2 to order an shrimp wrap for $7.79
Enter 3 to order lobster soup for $9.39
Order: 4
Please enter a valid choice between 0 and 3
Please enter an item to order, or 0 to complete your order.
Enter 1 to order a crab cake for $4.59
Enter 2 to order an shrimp wrap for $7.79
Enter 3 to order lobster soup for $9.39
Order: 0
Your order is complete!
You have ordered
2 crab cakes
1 shrimp wraps
1 order(s) of lobster soup
Your total cost is $26.36

import java.util.*;
class Main
{
public static void main(String args[])
{
int crabCake=0,sW=0,lS=0,n=1;
double cost;
Scanner in = new Scanner(System.in);
System.out.println("Welcome to Krunchy Krabcakes!");
while(n!=0)
{
System.out.println("Please enter an item to order, or 0 to complete
your order. Enter 1 to order a crab cake for $4.59");
System.out.print("Enter 2 to order an shrimp wrap for $7.79
");
System.out.print("Enter 3 to order lobster soup for $9.39
Order:");
n=in.nextInt();
switch(n)
{
case 0:System.out.println("Your order is complete!");break;
case 1:crabCake++;
System.out.println("You have ordered a total of "+crabCake+" crab
cake(s)");break;
case 2:sW++;
System.out.println("You have ordered a total of "+sW+" shrimp
wrap(s)");break;
case 3:lS++;
System.out.println("You have ordered a total of "+lS+" order(s) of
lobster soup");break;
default:System.out.println("Please enter a valid choice between 0
and 3");
}
}
System.out.println("You have ordered:");
System.out.println(crabCake+" crab cakes");
System.out.println(sW+" shrimp wraps");
System.out.println(lS+" order(s) of lobster soup");
cost=(crabCake*4.59)+(sW*7.79)+(lS*9.39);
System.out.println("Your total cost is $"+cost);
}
}
Sample Output:


Krunchy Krabcakes is a seafood restaurant which serves a very limited menu of sea-based delicacies. The...
Babette's Bistro is a restaurant which sells delicious French bistro fare, although with a very limited selection. The menu consists of the following items with associated prices: Braised Rabbit $8.89 Crispy Duck $7.99 Grilled Steak $10.57 Write a Java program which displays a menu to the customer which allows them to place an order consisting of one or more items. The menu should use a simple numeric selection method to order an item. For example, '1' orders braised rabbit, '2'...
Your assignment is to create a restaurant ordering system where
the cashier can create the menu and then take in the order and
display the order back to the customer
Sample Execution – Level 1
Welcome to your Menu Creation system.
How many items would you like to have on your menu? 2
Create your menu!
Enter item #1: Coffee
Enter item #2: Tea
This is the menu:
Coffee
Tea
What would you like to order? Cake
That isn’t on...
Sample Execution – Level 3
Welcome to your Menu Creation system.
How many items would you like to have on your menu? 2
Create your menu!
Enter item #1: Coffee
Enter the number of toppings: 2
Enter topping #1: Whipped Cream
Enter topping #2: Cinnamon
Enter item #2: Tea
Enter the number of toppings: 2
Enter topping #1: Milk
Enter topping #2: Sugar
May I take your order?
This is the menu:
Coffee
Tea
Pop
How many items would you...
Problem 1 python A Chinese restaurant has two types of dinner combos for customers to choose. A regular dinner combo includes main dish and soup. A deluxe dinner combo includes main dish, soup and appetizer. There are three main dish choices: sweet and sour pork ($7), sesame chicken ($8) or shrimp fried rice ($9). There are two soup choices: egg drop soup ($1.25) or wanton soup ($1.50). There are two appetizer choices: spring roll ($1.25) or chicken wing ($1.50). They...
Assume that a restaurant offers the following breakfast items: Plain Egg $1.45 Bacon and Egg $2.45 Muffin $0.99 French Toast $1.99 Fruit Basket $2.49 Cereal $0.69 Coffee $0.50 Tea $0.75 Write a program that stores the following data about each menu item in a structure called MenuItem: • A description of the menu item • The price of the menu item • A count of the number of times the item has been ordered The program should keep an array...
Please write this code in JAVA lang., thank you! Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant. That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals. You have been approached to create a computer program that will accurately calculate bills for each customer. Kids, under 5, eat free. Teens and seniors get a 25% discount. Also, Food and beverage is taxed at 5%. No tax for anything...
Please write this code in JAVA lang., thank you! Your spouse's cousin's nephew's dog's trainer's best friend owns a restaurant. That person is very bad at math and recently discovered that most customers have been significantly undercharged for meals. You have been approached to create a computer program that will accurately calculate bills for each customer. Kids, under 5, eat free. Teens and seniors get a 25% discount. Also, Food and beverage is taxed at 5%. No tax for anything...
The code snippet below is part of the restaurant menu program you previously used in the lab. Add a choice for a drink. Add the necessary code to allow the program to calculate the total price of order for the user. Assume the following price list: Hamburger $5 Hotdog $4 Fries $3 Drink $2 The program should allow the user to keep entering order until choosing to exit. At the end the program prints an order summary like this: You...
INSTRUCTION AND PROBLEMS Create a Python project for each of the following problems. Zip each Python project into a zip file. Submit the zip files to Blackboard for credit. PROBLEM 1 A Chinese restaurant has two types of dinner combos for customers to choose. A regular dinner combo includes main dish and soup. A deluxe dinner combo includes main dish, soup and appetizer. There are three main dish choices: sweet and sour pork ($7), sesame chicken ($8) or shrimp fried...
Utilizing Menu Engineering Concept in a Restaurant Operation The purpose of this assignment is four fold: Step 1. To learn basic menu engineering principles Step 2. To learn menu engineering strategies Step 3. To use a spreadsheet program in generating two menu engineering reports Step 4. To evaluate the information found in the menu engineering reports using the menu engineering strategy model presented in this assignment. This will be accomplished by answering 9 questions found at the end of this...