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' orders crispy duck, and '3' orders grilled steak, 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 overall for their order.
Your program must use a do-while loop to allow the customer to order multiple items (and complete their order by selecting 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. Include break statements for each case in your switch (including the default case). User input should be read as an integer (not a String or char).
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. Use named constants with upper case names for your menu prices, menu options, and repeated strings since those values will not change, for example declare the price of the braised rabbit as
final double PRICE_RABBIT = 8.89;
Do not write custom methods or use other Java language features in your program that have not been covered in class yet.
Remember to use a do-while loop! 10 points will be deducted if you use a while loop or for loop instead.
Expected Output (user input is shown in red)
Welcome to Babette's Bistro!
Please enter an item to order, or 0 to complete your order.
Enter 1 to order braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
Order: 1
You have ordered a total of 1 rabbits(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
Order: 1
You have ordered a total of 2 rabbits(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
Order: 2
You have ordered a total of 1 ducks(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
Order: 3
You have ordered a total of 1 steaks(s)
Please enter an item to order, or 0 to complete your order.
Enter 1 to order braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
Order: 0
0
You have ordered
2 order(s) of rabbit
1 order(s) of duck
1 order(s) of steak
Your total cost is $36.34
Invalid Input Example:
Welcome to Babette's Bistro!
Please enter an item to order, or 0 to complete your order.
Enter 1 to order braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
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 braised rabbit for $8.89
Enter 2 to order crispy duck for $7.99
Enter 3 to order grilled steak for $10.57
Order: 0
0
You have ordered
0 order(s) of rabbit
0 order(s) of duck
0 order(s) of steak
Your total cost is $0.00
Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries
import java.io.*;
import java.util.*;
public class calculateOrderValue{
public static void main(String []args){
final double PRICE_RABBIT = 8.89;
final double PRICE_DUCK = 7.99;
final double PRICE_STREAK = 10.57;
int choice = 1;
double sum = 0;
int rabbits = 0,ducks = 0,steaks = 0;
System.out.println("Welcome to Babette's Bistro!");
Scanner sc = new Scanner(System.in);
do {
System.out.println("Please enter an item to order, or 0 to
complete your order.");
System.out.println("Enter 1 to order braised rabbit for
$8.89");
System.out.println("Enter 2 to order crispy duck for $7.99");
System.out.println("Enter 3 to order grilled steak for
$10.57");
System.out.print("Order: ");
choice = sc.nextInt();
switch(choice) {
case 1:
rabbits = rabbits + 1;
sum = PRICE_RABBIT + sum;
System.out.println("You have ordered a total of "+ rabbits +"
rabbits(s)");
break;
case 2:
ducks = ducks + 1;
sum = PRICE_DUCK + sum;
System.out.println("You have ordered a total of "+ ducks +"
ducks(s)");
break;
case 3:
steaks = steaks + 1;
sum = PRICE_STREAK + sum;
System.out.println("You have ordered a total of "+ steaks +"
steaks(s)");
break;
case 0:
System.out.println("Your order is complete! You have
ordered");
System.out.println(" "+rabbits+" rabbits(s)");
System.out.println(" "+ducks+" ducks(s)");
System.out.println(" "+steaks+" steaks(s)");
System.out.println("Your total cost is $"+sum);
break;
default:
System.out.println("Please enter a valid choice between 0 and
3");
}
}while(choice != 0);
}
}

Kindly revert for any queries
Thanks.
Babette's Bistro is a restaurant which sells delicious French bistro fare, although with a very limited...
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'...
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...
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...
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: Selecting Menus You need to know what to order for your dinner party, they return a card that has an appetizer, the main dish, and the desert that they would like to have for their meal. The following is the list of appetizers sent to guests from which they choose their selection: Escargots a la Bourguignonne Provençal Stuffed Squid Duck Pâté en Croûte Black Olive Tapenade (vegan) Tartare de Filet de Boeuf For each of appetizers users enter...
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...
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...
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...
Overview JAVA LANGUAGE PROBLEM: The owner of a restaurant wants a program to manage online orders that come in. This program will require multiple classes. Summary class, customer class, order class and the driver class. Summary class This class will keep track of the cost of the order and output a summary, which includes the total for the order. The methods in this class are static. There are no instance variables, and instead uses an Order object that is passed...