Question
Create a restaurant ordering system. The program should allow for: Variable # of customers Choices of: Appetizer Entree Dessert Beverage *Each category must have a
Create a restaurant ordering system.
The program should allow for: Variable # of customers Choices of: Appetizer Entree Dessert Beverage *Each category must have a minimum of four items* Totaling of Bill Apply a tip percentage to add the tip.
A helper class called 'Customer' should be used for this purpose.
The helper class should: 1. Hold the prices of the menu items. 2. Do the calculations for totaling the bill and applying the tip.
The main class should: 1. Allow for different customers (i.e different bills, etc) 2. Display the menu so the user can choose from. 3. Accept the choices from the user. 4. Display the total cost of the meal, tip, and grand total.
For output, the minimum the user should see is: The total cost of the meal Tip Grand Total
Design:
Using simple loops and conditions:
1. The program should first identify the first user as the first customer. When the first customer has received their bill, the program should ask if there is another customer to be served and if there is the program is looped and that customer is identified as the second customer and so on.
2. After the user is identified as a customer, a food menu is displayed so that user can make choices from - The user should be able to make multiple choices from this menu, even if its more than one of the same thing.
3. Finally, after the user makes their decision, the total cost of the meal is displayed, then the program should apply a tip percentage and finally, the grand total is displayed, ending the program if there is no other customer.
*Important* Since there is a variable for the number of customers, they will multiple customers as there are in restaurants. Therefore, the program should be able to allow for multiple customers (the program loops every time there is a new customer and stops until there is no more).
Programming language: Java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started