Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions