Requirement 2: Coding 2.1 Create Menu class which will have basic attributes as given in background information. This class will be super class for four classes which are Lunch, Breakfast, Dinner and Take Away.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

use java

The system that you will create is a Restaurant Menu Management System (RMMS). The RMMS is a tool used by a restaurant that manages multiple menus and for ordering meals. The menus may be used potentially at different venues and for different purposes like breakfast, lunch, dinner and take away.

Each Menu has a unique ID, name and is associated with a particular venue and session time. For each Restaurant menu, there are a number of available meals (menu items) available for ordering by guests. This IT system, RMMS, will enable the manager to customise and save menus to the system as well as view the stored list of menus. It will be possible to inspect details for each menu. The details will include specifics of the menu as well as specific details regarding discounts that may apply to certain meals. It will also be possible to categorise particular meals on each menu. The menu item categorisation will determine the way that prices are calculated for display on the menu. Each menu item will have a number, name, description and basic price associated with it, when the price for display on the menu is calculated, this calculation may involve increasing the price with surcharges (e.g. some special meals might have a surcharge due to the difficulty in sourcing their ingredients locally); or decreasing the price due to a special discount.

There can be a number of possible types of menu items incorporated into your system. Example menu item types are as follows:

  1. A standard menu item will have the price calculated based exactly on the price entered into the system.
  2. A premium menu item can be created with a mechanism to indicate that it is to have a surcharge added to the price. The surcharge will increase the price of the meal based on a constant percentage mark-up value specified by the manager;
  3. It is possible to create a discount menu item meal to apply a discount to the given price;
  4. Drinks menu item whose price will not have any surcharge and discounts.

Customer can order menu items from any one menu at one time. The RMMS will give discount to customers according to their status. When customer place order, system will ask the status of customer and discounts will be given according to following information.

  1. Active customers are the one who visits restaurant at least once a week and will get 5% discount on every order they made.
  2. VIP customers are the one who have been visiting restaurant from more than one year and will get 10% discount on all orders.
  3. New Customers will not get any discounts.

Once an order is placed, RMMS will calculate the total of order and will issue invoice to customer.

Requirement 1: Class Diagram

This section expects you to create a class diagram after reading the coding requirements. Your class diagram should have proper relationships between classes, all possible attributes, constructors and methods that your class files will have. You need to use correct notation which is discussed in class.

Requirement 2: Coding

2.1 Create Menu class which will have basic attributes as given in background information. This class will be super class for four classes which are Lunch, Breakfast, Dinner and Take Away.

  1. These sub classes will inherit the basic attributes and will have extra attributes representing their menu start time, end time and will have at least ten menu Items in it. (Hint: - There will be an array of menu Items in each of these classes).
  2. As these classes have array of menu Items so you need to add proper methods to add the items into the array, remove the items and retrieve the item from the array.
  3. You need to write proper toString() method to display the details of each menu and menu items in it.
  4. A default constructor which assigns each instance variable a default value.
  5. A constructor with parameters which assign values to each instance variable. Note that the values to initialise in the objects should be passed in using arguments when the constructor is called.
  6. Author get and set methods for your classes for instance variables where appropriate.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 11 images

Blurred answer
Knowledge Booster
Avoiding deadlock
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education