Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Cab you please answer this in java and please create a UML You are asked to create a Restaurant program that provides several menus such

Cab you please answer this in java and please create a UML
image text in transcribed
image text in transcribed
image text in transcribed
You are asked to create a Restaurant program that provides several menus such as breakfast, lunch, dinner, kids, and drinks menus. All these menus are derived from a super class named Menu. - Project Description A restaurant has information about its menu and its prices stored in several files: Breakfast Menu : "BreakfastM.txt". Lunch Menu : "LunchM.txt" Dinner Menu: "DinnerM.txt" Kids Menu: "KidsM.txt" Drinks menu: "Drinks.txt" In each file there are lines where each line contains information on the meal. The provided meal informations in that line are: Meal ID Meal Name Meal Ingredients Price Availability Each of those information is separated with a comma, and the ingredients are separated with a semi-colon. There is an order text file "Order.txt" that contains Meal IDs Meal Names. Order amounts. Of each meal Ingredients special request. Price of each meal Total price. Added: Menu super Class that the other menus extends : Menu IDs Menu Name. Meals - Further details on the system: 1. A method to show the menus for Dine in: The user must be able to view all the menus, and call the methods for the other Menus (method 4) 2. A method to edit the meal ordered: The user must be able to pick one of the options (None, Regular, and Extra) for each meal ingredient. - Extra option should add 1% to the meal price. - A list should be returned where the options should be in the same order as the ingredient list. 3. A method to calculate the price of a meal. 4. A method to show the chosen menu and to be recreated for each menu: This method takes the selected menu the user chose and upon that open the menu and ID List, Meal name list, nested list of ingredients, list of prices, Meal Availability (can the meal be ordered or not) list. I. Breakfast menu II. Lunch Menu III. Dinner Menu IV. Kids Menu V. Drinks Menu Once one of them is chosen, 5 lists should be populated with the file information, after that the user needs to choose a meal and then the meal should be added to the order. 5. A method to show the order. - Project Requirements: - Your program should provide a text-based menu, where the user will be asked to choose a certain option and the program should continue to show the menu again as long as the user does not choose to exit. Restaurant, Meal, Order, Breakfast, Lunch, Dinner, Kids, and Drinks (the menu's extend a Menu class) are the main classes that you need to have in the project. - Other classes may be added as necessary. - Deliverables: Each team should submit: A UML diagram for the whole project. A compressed folder that contains all the project files from NetBeans and all the reports and screenshots of sample runs. A report that contains: - A description of how the members of the team approached this solution. - A table stating the contribution of each team member. - Descriptions of any extra class and method created. - Screenshots of the running code

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

Students also viewed these Accounting questions