Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The system that you will create is a Restaurant Menu Management System ( RMMS ) . The RMMS is a tool used by a restaurant
The system that you will create is a Restaurant Menu Management System RMMS The RMMS
is a tool used by a restaurant that manages menu and for ordering meals. The menus may be used
potentially at different venues and for different purposes like breakfast, lunch, dinner and take
away. Menu has a unique ID name, purpose 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 eg 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:
A standard menu item will have the price calculated based exactly on the price entered
into the system.
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;
It is possible to create a discount menu item meal to apply a discount to the given
price;
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.
Active customers are the one who visits restaurant at least once a week and will get
discount on every order they made.
VIP customers are the one who have been visiting restaurant from more than one year
and will get discount on all orders.
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 : 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 : Coding
Create Menu class which will have basic attributes as given in background information.
a This class has 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.
b You need to write proper toString method to display the details of menu and
menu items in it
c A default constructor which assigns each instance variable a default value.
d 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.
e Author get and set methods for your classes for instance variables where
appropriate.
Create menu Item class which will have attributes mentioned in background information.
As there are different types of menu Items to create sub classes to represent menu Items
which are Standard, Premium, Discounted and Drinks. You must provide the following in
each particular specialised menu type class.
a All MenuItems have at least the following attributes: itemNumber int
itemName String Description String itemPricedouble which will be
inherited from super class and one additional attribute of your own choice.
b A default constructor which assigns each instance variable a default value. The
String variables eg itemName should be initialised to unknown the price
should be initialised to a minimum default price and any object fields initialised
to null.
c A constructor with parameters which assign values to each instance variable.
Note that the values to initialise in objects should be passed in using arguments
when the constructor is called.
d Author get and set methods for your classes for instance variables where
appropriate.
e Write a toString method in eac
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