Sie sind auf Seite 1von 53

Food Ordering System

Documentation
CT015-3.5-2
Design Methods
UC2F1410SE

Student Name

: Pyo Wai Lian Hla Khin

Student Id

: TP028536

Lecturer Name

: Ms. Salasiah Binti Sulaiman

Submission Date : 2nd July 2015

Acknowledgement
I would like to say thank you to my lecturers, Mr. Lee Kim Keong and Ms. Salasiah Binti
Sulaiman. Without their guidance and assistance, this assignment would be impossible to
achieve. Also I would like to thank my friends who support me and spend some time helping
on this assignment.

Table of Contents
1.

Introduction..................................................................................................... 4

2.

Assumptions.................................................................................................... 5

3.

Software development Model Used.................................................................6

4.

Analysis Model................................................................................................. 7

5.

4.1.

Use Case Diagram..................................................................................... 7

4.2.

Use Case Specification..............................................................................8

4.2.1.

Member Login......................................................................................... 8

4.2.2.

View Menu............................................................................................. 9

4.2.3.

Make Order.......................................................................................... 10

4.2.4.

Enter Contact Info.................................................................................. 11

4.2.5.

Get Special Deals................................................................................... 12

4.2.6.

Leave Feedback..................................................................................... 13

4.2.7.

Registration.......................................................................................... 14

4.2.8.

Update Menu........................................................................................ 15

4.2.9.

View Member Information........................................................................16

4.2.11.

View Customer Feedback.........................................................................17

4.2.12.

Manage Order....................................................................................... 18

4.3.

Class Diagram......................................................................................... 19

4.4.

Overall Activity Diagram.........................................................................20

Design Model................................................................................................. 21
5.1.

Activity Diagrams.................................................................................... 21

5.1.1.

Member Login...................................................................................21

5.1.2.

View Menu........................................................................................ 22

5.1.3.

Make Order....................................................................................... 23

5.1.4.

Enter Contact Info............................................................................. 24

5.1.5.

Get Special Deals.............................................................................. 25

5.1.6.

Leave Feedback................................................................................ 26

5.1.7.

Registration...................................................................................... 27

5.1.8.

Registration for new staf..................................................................28

5.1.9.

Update Menu.................................................................................... 29

5.1.10. View member information.................................................................30


5.1.11. View customer feedback...................................................................31
5.1.12. Manage Order...................................................................................32
5.2.

Sequence Diagrams................................................................................33

5.2.1.

Member Login...................................................................................33

5.2.2.

View Menu........................................................................................ 33

5.2.3.

Make Order....................................................................................... 35

5.2.4.

Enter Contact Info............................................................................. 36

5.2.5.

Get Special Deals.............................................................................. 37

5.2.6.

Leave Feedback................................................................................ 38

5.2.7.

Registration...................................................................................... 39

5.2.8.

Update Menu.................................................................................... 40

5.2.9.

View Member Information.................................................................41

5.2.10. View Customer Feedback..................................................................42


5.2.11. Manage Order...................................................................................43
5.3.

State Machine Diagram...........................................................................44

5.4.

Component Diagram............................................................................... 45

6.0.

Sample Code.............................................................................................. 46

7.0.

Conclusion.................................................................................................. 47

8.0.

Reference................................................................................................... 48

1. Introduction
In todays worlds, where technology is advancing than ever before, every businesses
should have some degree of existence online. According to adweek.com (2014), every 30
seconds, more than $1.2 million is being made in total by businesses around the world. At
this time, where technology can be accessed at any place around the world, and when they are
most affordable, there are still many business running offline.
With the ordering system running 24/7, the customers will be able to order food at any
time and from any place where ever they may be. On top of that, making an attractive and
creative own website provides a good opportunity to boost their businesss image online.
Customers no longer need to ask Whats New. An online menu gives the customers what is
available and they can pursue as long as they want on deciding what to order. An online
ordering system means less communication between people to people, hence it reduces some
instance of misunderstandings, such as various accents, which could lead to disputes and
customer dissatisfaction.
Many of the business are turning to ordering online as they are convenient to both
customers and themselves as well. The customers prefer to order online where things can be
rapidly and correctly dealt with than that of the traditional phone calls. Many of the
businesses are jumping on board, and it can be foreseen that there are more to come.

2. Assumptions
It is assumed that the system is working on 24/7 and will be working without any bugs or
glitches. Not all customers are needed to sign into the system to order food. There will be two
types of customers, guest and members. Guest have limited features compared to the
members. The features of each actors will be explained more in following chapter.

3. Features
The ordering system acts as a communication medium between two main actors,
customers and staffs. Customers can be divided into two users, guest and members. Guests
are customers who can log onto the system by entering their name, address and phone
number. Members need to sign in the system using their email address and password.
Both the customer will be able to view the menu and order as long as they log into the
system but special deals are only limited to members. Members can also leave a feedback,
and submit to the system. The system will then assign their number together with the
members ID and name, and send it to the staff. Payment can be made in either through credit
card, or PayPal, or by cash when the delivery arrives. If the user is paying through online, a
normal procedure of verification will occur.
The staff can sign into the system by using their ID and password. They can manage
orders, where they will be able to cancel orders or, sort the order and print out a list for
delivery. They can also update menu and view member information.

4. Software development Model Used


RAD or Rapid Application Development is a type model based on prototyping and
iterative development. The system is usually developed and delivered usually below 6 months
and are designed for small projects. This is done by the practice of using parallel
development of functions or components. The project is divided down to different sections
and developed at the same time, then complied before the prototype is created. Customers are
able to view the prototype system in a short time and give comments on the requirements and
functions. RAD isnt just a cost effective development model, but also saves in time.

Phases included in RAD model

The requirements from the customers are gathered in workshops or focus groups
together. The customer involvement and feedback is high throughout this type of model,
especially during prototyping, so that all the requirements and deliveries are met in the
final version. RAD are flexible with having changes. There are specific tools in
developing web based application using RAD and Object oriented languages such as
OpenXava.
This is why RAD is believed to be an appropriate Software Development to be used
for this ordering system.
8

5. Analysis Model
5.1. Use Case Diagram

5.2. Use Case Specification

5.2.1. Member Login


Primary Actors
Member
Priority
High
Preconditions
Working Internet Condition
Live Ordering System
User has an existing Account in the system database
Basic Flow of Events:
1. The user is asked to login or register a new password.
2. The user chooses to login.
3. The user inserts his username and password
4. System verifies with the information in database.
5. The system displays a message Login Successful
Alternative Flow
4) System displays message Invalid username/password. Please
of Events:
Post Condition

re-enter
The member is taken to the menu page.

10

5.2.2. View Menu


Primary Actors
Customer
Priority
High
Preconditions
Working Internet Condition
Live Ordering System
Member or guest logged into the system
Basic Flow of Events:
1. The customer clicks on the menu.
2. Various types of food according to their category, burgers, sandwiches, drinks,
etc., is displayed.
3. The user clicks on members deals.
4. The system takes user to a different page and displays deals.
Alternative Flow
4) The user is a guest.
1. The system displays message Please sign up for free
of Events:
and gain access to these deals. User can close and
continue or sign up for membership.
2. If user continues, deals are displayed without Add to
Cart button.
Post Condition

None.

11

5.2.3. Make Order


Primary Actors
Customer
Priority
High
Preconditions
Working Internet Condition
Live Ordering System
The actor, Member, should be logged in.
Basic Flow of Events:
1. The actor choses from the given menu.
2. The order is selected and proceeded to checkout.
3. A summary of order is printed.
4. The credit card number is entered.
5. The credit card number is cross referenced for verification.
6. The payment is made.
Alternative Flow
4) The actor wants to pay through PayPal.
1. A separate page pops up asking to sign into PayPal.

of Events:

2. The user enters his username and password.


3. The user clicks on make payment.
4. A summary of payment is shown on the screen.

Post Condition

4)
1.
2.
3.

The actor wants to pay by cash when the delivery arrives.


A receipt is printed out.
The order is send to the staff.
The customer gets the delivery

12

5.2.4. Enter Contact Info


Primary Actors
Guest
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
Basic Flow of Events:
1. The user is asked to enter his/her address.
2. The system cross reference with their database if the entered address exist.
3. The user is asked to enter their contact number and name.
Alternative Flow
2) The system asks the user to re-enter the address.
of Events:
Post Condition

A summary of the personal information is printed out.

13

5.2.5. Get Special Deals


Primary Actors
Member
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
User signed in as member
Basic Flow of Events:
1. The user clicks on the menu.
2. The user clicks on members deals.
3. The system takes user to a different page and displays deals.
Alternative Flow
None
of Events:
Post Condition

None

14

5.2.6. Leave Feedback


Primary Actors
Member
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
User Signed in as Member
Basic Flow of Events:
1. The user clicks on the Leave Feedback tab.
2. The user is asked to fill a form on the feedback information and category of
the feedback.
3. The user clicks submit.
4. The system displays Feedback submitted. Thank You
Alternative Flow
None
of Events:
Post Condition

The user is taken to the main page.

15

5.2.7. Registration
Primary Actors
Guest
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
No user logged onto the system
Basic Flow of Events:
1. The system asks the user to enter the email address and password, or to
register a new account.
2. The user chooses to register for a new account
3. The system asks the user to add in his email address, first and last name, a
password. Etc.
4. The user enters the information, and clicks next
5. The system prompts the user to enter their address and contact number.
6. The user enters the information, and clicks next.
7. A User Account Successfully created message is displayed on the screen.
Alternative Flow
1) The user can cancel the registration.
of Events:

3) The system prompts why the password is not strong enough.


It must be at least 8 letters.

Post Condition

5) The user can cancel the registration.


The user is directed back to the main page.

16

5.2.8. Update Menu


Primary Actors
Staff
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
Staff signed into the system
Basic Flow of Events:
1. The user chooses option to edit menu.
2. The user chooses the desired food/price to update.
3. A new information is entered and saved.
4. The system displays Changes saved.
Alternative Flow
1) The actor wants to add in a new food item to the menu.
of Events:

1. The user is asked to choose category for the new item.


2. The user chooses to upload a new picture of the sample
food and inputs a price tag.
3. The user clicks on Add Item
4. The system displays Changes saved

Post Condition

2) The user cancel the changes.


The user is directed back to the food menu page with the saved
changes.

17

5.2.9. View Member Information


Primary Actors
Staff
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
Staff signed into the system
Basic Flow of Events:
1. The user clicks on the View Member Information tab.
2. The system displays two sections, recently logged in members and search
3.
4.
5.
6.
7.

members.
The user clicks on search member.
The systems prompts the user to input email address of the member.
The user inputs the information.
The system searches the databases.
The system displays the members information, together with the previous

logged in time stamps and date, and food orders.


Alternative Flow
2) The user wants to view recently logged in members.
1. The user clicks on Recently logged in members.
of Events:
2. The system displays a number of users logged in for the
day, sorted by ascending time stamps.
Post Condition

(None)

18

4.2.11. View Customer Feedback


Primary Actors
Staff
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
Staff signed into the system
Basic Flow of Events:
1.
2.
3.
4.

The user clicks on View Feedback button.


The system displays two sections, Solved and Newly Reported.
The user clicks on the Newly Reported.
The system displays a table containing a feedback, name and phone number of

the member.
5. The user enters the action taken and clicks on solved.
6. The current feedback is moved to the Solved section.
Alternative Flow
5. The user wants to see the Solved Section.
1. The user clicks on the Solved.
of Events:
2. The system displays a list of feedbacks together with the
name, phone number, and action taken.
Post Condition

(None)

19

4.2.12. Manage Order


Primary Actors
Staff
Priority
Medium
Preconditions
Working Internet Condition
Live Ordering System
Staff signed into the system
Basic Flow of Events:
1. The system asks the user to enter the email address and password, or to
register a new account.
2. The actor logs in using an ID for email address and a password.
3. The system verifies the user as staff.
4. The user chooses the on the option Manage Order.
5. The user chooses option to view recently ordered.
6. The user chooses which order to deliver first.
7. The user prints delivery order
Alternative Flow
4) The staff wants to cancel the order
1. The user chooses a desired order to delete.
of Events:
2. A confirmation message, Are you sure?, is displayed.
3. If the user chooses Yes, a message Order Deleted is
displayed and the page is refreshed with a new list of
order, if the user chooses No, the confirmation
message disappears.
Post Condition

A list of delivery order is printed.

20

5.3. Class Diagram

21

5.4. Overall Activity Diagram

22

5. Design Model
5.1. Activity Diagrams

5.1.1. Member Login

23

5.1.2. View Menu

24

5.1.3. Make Order

25

5.1.4. Enter Contact Info

26

5.1.5. Get Special Deals

27

28

5.1.6. Leave Feedback

29

5.1.7. Registration

30

5.1.8. Update Menu

31

5.1.9. View member information

32

5.1.10.

View customer feedback

33

5.1.11.

Manage Order

34

5.2. Sequence Diagrams

5.2.1. Member Login

35

5.2.2. View Menu

36

5.2.3. Make Order

37

5.2.4. Enter Contact Info

38

5.2.5. Get Special Deals

39

5.2.6. Leave Feedback

40

5.2.7. Registration

41

5.2.8. Update Menu

42

5.2.9. View Member Information

43

5.2.10.

View Customer Feedback

44

5.2.11.

Manage Order

45

46

5.3. Component Diagram

47

6.1. Sample Code

Sample Code from Customer.h

Sample Code from PayPal.h showing


inheritance

48
Sample Code from

49

7.1. Conclusion
The usage of technology in business boosts its efectiveness, able to connect
to it at any given time and from anywhere. The system is designed to have all
the main features in an ordering system. It depends much on the development
and the design of the actual system. If the development went well, this system
would be suitable to integrate into the business.

50

8.0. Reference

Adweek.com, (2014). How Much Online Business Is Done Every 30 Seconds? Incredible ECommerce Statistics! [INFOGRAPHIC]. [online] Available at:
http://www.adweek.com/socialtimes/real-time-ecommerce/499958 [Accessed 25 Jun. 2015].
Agilemodeling.com, (2015). UML 2 Class Diagram Guidelines. [online] Available at:
http://agilemodeling.com/style/classDiagram.htm [Accessed 29 Jul. 2015].
Agilemodeling.com, (2015). UML 2 Class Diagram Guidelines. [online] Available at:
http://agilemodeling.com/style/classDiagram.htm [Accessed 1 Jul. 2015].
Agilemodeling.com, (2015). UML 2 Component Diagramming Guidelines. [online] Available
at: http://agilemodeling.com/style/componentDiagram.htm [Accessed 29 Jun. 2015].
Agilemodeling.com, (2015). UML 2 Component Diagrams: An Agile Introduction. [online]
Available at: http://agilemodeling.com/artifacts/componentDiagram.htm [Accessed 29 Jun.
2015].
Communications, E. (2013). Benefits of Online Ordering Go Beyond Increased Sales.
[online] Hospitalitytechnology.edgl.com. Available at:
http://hospitalitytechnology.edgl.com/news/Benefits-of-Online-Ordering-Go-BeyondIncreased-Sales84718 [Accessed 28 Jun. 2015].
Flow Chart Maker & Online Diagram Software, (2012). Activity Diagram - UML. [online]
Available at: https://www.lucidchart.com/pages/uml/activity-diagram [Accessed 29 Jun.
2015].
Ibm.com, (2015). Activity Diagrams: What They Are and How to Use Them. [online]
Available at: http://www.ibm.com/developerworks/rational/library/2802.html [Accessed 29
Jun. 2015].
Istqbexamcertification.com, (2015). What is RAD model- advantages, disadvantages and
when to use it?. [online] Available at: http://istqbexamcertification.com/what-is-rad-modeladvantages-disadvantages-and-when-to-use-it/ [Accessed 30 Jun. 2015].

51

McKay, V. (2015). Rapid Application Development (RAD) | Analysis and Design | Solutions.
[online] Selectbs.com. Available at: http://www.selectbs.com/analysis-and-design/rapidapplication-development-rad [Accessed 28 Jun. 2015].
Msdn.microsoft.com, (2015). UML Class Diagrams: Reference. [online] Available at:
https://msdn.microsoft.com/en-us/library/dd409437(VS.100).aspx [Accessed 30 Jun. 2015].
Msdn.microsoft.com, (2015). UML Class Diagrams: Reference. [online] Available at:
https://msdn.microsoft.com/en-us/library/dd409437.aspx [Accessed 31 Jun. 2015].
Msdn.microsoft.com, (2015). UML Class Diagrams: Reference. [online] Available at:
https://msdn.microsoft.com/en-us/library/dd409437.aspx [Accessed 1 Jul. 2015].
Msdn.microsoft.com, (2015). UML Class Diagrams: Reference. [online] Available at:
https://msdn.microsoft.com/en-us/library/dd409437(VS.100).aspx [Accessed 1 Jul. 2015].
Msdn.microsoft.com, (2015). UML Component Diagrams: Guidelines. [online] Available at:
https://msdn.microsoft.com/en-us/library/dd409393.aspx [Accessed 29 Jun. 2015].
Msdn.microsoft.com, (2015). UML Component Diagrams: Reference. [online] Available at:
https://msdn.microsoft.com/en-us/library/dd409390.aspx [Accessed 28 Jun. 2015].
My-project-management-expert.com, (2015). The Advantages and Disadvantages of RAD
Software Development, RAD Development, RAD Methodology from www.My-ProjectManagement-Expert.com. [online] Available at: http://www.my-project-managementexpert.com/the-advantages-and-disadvantages-of-rad-software-development.html [Accessed
30 Jun. 2015].
Openxava.org, (2015). AJAX Java Web Framework for Rapid Application Development of
Enterprise Applications - OpenXava. [online] Available at: http://www.openxava.org/
[Accessed 1 Jul. 2015].
SearchSoftwareQuality, (2015). What is rapid application development (RAD) ? - Definition
from WhatIs.com. [online] Available at:
http://searchsoftwarequality.techtarget.com/definition/rapid-application-development
[Accessed 1 Jul. 2015].
SearchSoftwareQuality, (2015). What is rapid application development (RAD) ? - Definition
from WhatIs.com. [online] Available at:

52

http://searchsoftwarequality.techtarget.com/definition/rapid-application-development
[Accessed 29 Jun. 2015].
Sparxsystems.com, (2015). Sparx Systems - UML 2 Tutorial - Component Diagram. [online]
Available at:
http://www.sparxsystems.com/resources/uml2_tutorial/uml2_componentdiagram.html
[Accessed 30 Jun. 2015].
Testingfreak, (2015). What is RAD Model in software testing and what are advantages and
disadvantages of RAD Model. [online] Available at: http://testingfreak.com/rad-modelsoftware-testing-advantages-disadvantages-rad-model/ [Accessed 1 Jul. 2015].
Tutorialspoint.com, (2015). SDLC - RAD Model. [online] Available at:
http://www.tutorialspoint.com/sdlc/sdlc_rad_model.htm [Accessed 29 Jun. 2015].
Tutorialspoint.com, (2015). UML - Activity Diagrams. [online] Available at:
http://www.tutorialspoint.com/uml/uml_activity_diagram.htm [Accessed 1 Jul. 2015].
Uml-diagrams.org, (2015). UML component diagram shows components, provided and
required interfaces, ports, and relationships between them.. [online] Available at:
http://www.uml-diagrams.org/component-diagrams.html [Accessed 29 Jun. 2015].
Webopedia.com, (2015). What is Rapid Application Development? Webopedia. [online]
Available at: http://www.webopedia.com/TERM/R/Rapid_Application_Development.html
[Accessed 1 Jul. 2015].

53