Professional Documents
Culture Documents
Section 8
PROJECT REPORT
GROUP 5
NAME MATRIC ID
MUHAMMAD LUQMAN BIN NAZAM A20EC0095
IRFAN MUSTAQIM BIN ABD MANAP A20EC0051
1
TABLE OF CONTENTS
2
Dedication & Acknowledgement
We dedicate this project to the God of Almighty, the source of wisdom, knowledge and
understanding. We appreciate the lessons as well as the guidance for this project given by our
lecturer throughout semester 2, Dr Mohamad Ashari bin Alias, our Programming Technique II
lecturer.
We would like to thank our group members, for giving full cooperation when doing this project.
We also appreciate some of our peers regardless of the same section or other section with us that
gave us motivation and support to settle this project. We exchanged information to get a better
idea.
We as well appreciate the comfortable environment offered by our family members and moral
support as our strong pillar to lean against. Without all these, our progress to the project will not
go this smooth.
3
1.0 Introduction
Our project is about building a simple program regarding restaurant management order
system using the C++ programming language. The compiler we used to write, compile, and run
the program is Dev-C++ 5.11 TDM GCC 4.9.2. We fully utilized the C++ OOP concepts (Object-
Oriented Programming) in writing the source code to achieve the desired objective of the program.
We implement the concepts we learned throughout the semester in this project. The concepts
included such as classes and objects, encapsulation (data hiding), inheritance, aggregation, and
composition. The UML (Unified modelling language) diagram and the class flows will be outlined
in section “Project Design” in the later chapter. A detailed description of our project will be
discussed in the next chapter “Problem Statement & Background”.
4
2.0 Background & Problem Statement
Summer Paradise Restaurant is located at Ipoh, Perak near Lumuk Beach Resort that serves
a variety of local and western food such as Nasi Lemak, Laksa, Chicken Porridge, Lasagna and
many more to local and foreign tourists.
A simple C++ program to include the list of food menu (labelled with a number) and its
corresponding price is implemented. The customers will be prompted to input his/her name before
ordering food.
The user(s) will then be prompted to make his/her order of food by inputting a number that
corresponds to the food they would like to order followed by quantity. After that, they are given
options as if they would like to dine in or a takeaway.
When this is done, he or she will be asked as if whether they own membership (Premium
member) or not (Regular member). If they possess membership, their payment of bills will go off
at discounted price. On the other hand, otherwise, they will be asked if they are willing to register
as a member or not. Customer(s) without membership are allowed to register on the spot. Both
premium and regular members (after registered) will then be prompted to input IDs and password
for authentication of membership. Regular member that insists not to register as membership will
go off with the standard price of payment. The bool data type is implemented here for the input of
membership or non-membership.
3.0 Objective
The program created by us was designed to be versatile yet simple, user-friendly, consisting
easy-to-understand texts. The customer(s) could order their favorite food in a more convenient
way with the use of this program without too much hassle by key in the relevant information
needed and the food that he/she would like to order.
5
4.0 Project Design
Figure 1 shows the blueprint, the UML Class Diagram of our project. Our program consists of five
classes, namely Display, Menu, Membership, Price and Discount, with their respective member
functions and member variables. Menu and Membership classes are derived classes of the base
class Display. Menu and Price classes are related by composition relationship whereas Price and
Discount classes are related by aggregation relationship.
6
5.0 Project Output & Results
7
2. Customer is then given a menu with a list of food and allowed to order his/her favourite food
by inputting corresponding number labelled. Prices of food were also displayed accordingly.
8
3. The flow will be followed by order quantity, asking the customer whether he/she would like to
dine in or take away and key in the table number (for the case of dine-in)
9
4. Customer who owns membership or registers on the spot are prompted to key in his/her
username and password for authentication as shown below and get a 10% discount afterwards.
Program will resume by confirmation of the order made.
5. Upon inputting 1 to CONFIRM, the program will be redirected to the final display as shown.
10
5.2 Full output/result of the program
11
6.0 Conclusion
12
7.0 Appendices
Meeting of discussion was carried out via Discord platform on 18th June at 2pm till 4pm about the
implementation of classes and its members. From Figure 2, Gemini as Abraham Loh Tze Lung,
HeyItsLuke as Muhammad Luqman bin Nazam and P A N K T as Irfan Mustaqim bin Abd Manap.
13
7.2 Allocation of Tasks of each Group Member (not sure if needed)
https://drive.google.com/drive/folders/1adeLsdmIt8Zua-tmwSQoPflauupFdxue?usp=sharing
*This is the link to our source code. The file SummerMenu.txt should be opened first in order to
run the program code.
7.4 Misc
14