You are on page 1of 14

SEMESTER 2 SESI 2020/2021

SECJ1023 | PROGRAMING TECHNIQUE II

Dr. Mohamad Ashari bin Alias

Section 8

PROJECT REPORT

Restaurant Order System

GROUP 5

NAME MATRIC ID
MUHAMMAD LUQMAN BIN NAZAM A20EC0095
IRFAN MUSTAQIM BIN ABD MANAP A20EC0051

ABRAHAM LOH TZE LUNG A20EC0001

1
TABLE OF CONTENTS

Chapter Contents Page


- Dedication & Acknowledgements 3
1 Introduction 4
2 Problem Statement/Background 5
3 Objective 5
4 Project Design 6
5 Project Output/Results 7-11
5.1 Flow of the Program 7-10
5.2 Full Output/Result of the Program 11
6 Conclusion 12
7 Appendices 13-14
7.1 Proof of Discussion 13
7.2 Allocation of Tasks of Each Group Members 14
7.3 Full CPP Source Code 14
7.4 Misc 14

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: UML Class Diagram of our project and its flow

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

5.1 Flow of the program:

1. Customer is prompted to input his/her name

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

In the end, we successfully developed a C++ program regarding Summer Paradise’s


Restaurant Order System. We achieved the objective of the program and got the desired output of
the program. The OOP concepts were well-applied and every classes and its member functions
and variables in our UML diagram were implemented. The process of writing the source code did
not come easy, but in the end we did it and our reactions are priceless.

12
7.0 Appendices

7.1 Proof of discussion

Figure 2: Screenshot of meeting discussion via Discord (1)

Figure 3: Screenshot of meeting discussion via Discord (2)

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)

Group Member Tasks


MUHAMMAD LUQMAN BIN NAZAM Do some parts of the class and report writing
IRFAN MUSTAQIM BIN ABD MANAP Group Leader and compile coding
ABRAHAM LOH TZE LUNG Do some parts of class implementations and
report writing

7.3 Full CPP source code (double click to open them)

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

Figure 4: Summer Paradise Restaurant (Source: Google)

14

You might also like