Question: In this question, you will write a JAVA program to help the customer order food online and calculate the total price. Your program should follow
In this question, you will write a JAVA program to help the customer order food online and calculate the total price.
Your program should follow the following rules:
-
Prompt the user to enter the choice based on the menu and validates the information
-
The choice should be an integer number displayed on menu from 1 to 6.
-
A price to calculate the total expense of the user.
-
Please find the menu and price in the following table. You must use switch statement to
-
create the menu options.
-
Your program should be able to ask users new choice if the user enters Yes for more food.
-
If the total price is less than $50, the customer needs to pay $5 for delivery.
-
Your program should ask the amount of tips that the customer would like to pay.
-
Display welcome/closing messages.

Menu 1. Hamburger 2. Pizza 3. Noodle 4. Salad 5. Sandwich 6. Exit Price without Meat $7.5 $7.5 $7.5 $7.5 $7.5 Price with beef $25.5 $25.5 $25.5 $25.5 $25.5 Price with pork $17.5 $17.5 $17.5 $17.5 $17.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
