Anda di halaman 1dari 24

FOOD ORDERING SYSTEM USING MOBILE

NUR IZZAH BINTI ZAKARIA

A report submitted in partial fulfilment of the requirements for the award of the degree of Bachelor of Computer Science (Software Engineering)

Faculty of Computer Systems & Software Engineering University Malaysia Pahang

APRIL, 2010

vi

ABSTRACT

Mobile computing systems can be defined as a computing environment over physical mobility. Examples are personal digital assistants (PDAs), and mobile phone. Mobile computing systems is allows a user to perform a task from everywhere using a computing device in the public, corporate, and personal information. Nowadays, many restaurant in Malaysian still use manually, paper-based in food ordering system. The problem using manually are probability of paper lost is high and misinterpret the handwriting of order. FOSUM is design to overcome this problem. With using PDA, waiter can send the order to kitchen and cashier with fast and easier. Methodology that be used in this project is a Waterfall Model. This system will develop using Macromedia Dreamweaver 8. This system make the food ordering process easier.

VII

ABSTRAK

Mobile pengkomputeran didefinasikan sebagai pengkomputeran persekitaran lebih dari mobility fizikal. Contohnya pembantu digital peribadi dan telefon bimbit. Mobile pengkomputeran membolehkan pengguna melakukan tugas di mana-mana, menggunakan peranti pengkomputeran bagi masyarakat, syarikat korporat dan / makluinat penbadi. Path masa kim banyak restoran di Malaysia masth meggunakan secara manual, iaitu penggunaan kertas dalam sistem tempahan makanan. Penggunaan secara manual mi menyebabkan berlakunya beberapa masalah kertas pesanan hilang dan tulisan tangan disalahtafsir. Justeru itu, FOSUM direka untuk mengatasi masalah mi. Dengan menggunakan PDA, pelayan hanya menghantar pesanan kepada juruwang dan bahagian dapur dengan cepat dan mudah. Metodologi yang digunakan untuk melaksanakan projek mi ialah 'Waterfall Model' Sistem mi akan dibangunkan menggunakan Macromedia Dreamweaver 8. Sistem mi membuatkan proses tempahan makanan lebih mudah.

vu'

TABLE OF CONTENTS

CHAPTER TITLE PAGE DECLARATION

TITLE

PAGE j
II

SUPERVISOR'S DECLARATION DEDICATION ACKNOWLEDGEMENT ABSTRACT ABSTRAK TABLE OF CONTENTS LIST OF TABLES LIST OF FIGURES LIST OF ABBREVIATIONS LIST OF APPENDICES 1 INTRODUCTION 1.1 Introduction 1.2 Mobile Computing System 1.3 Current System 1.4 Problem Statement
1.5

ill iv y vi vii viii xi

xli
xv xvi

1 2 2 3 3 3

Objective

1.6 Scope 2 LITERATURE RIVIEW 2.1 Introduction 2.2 Existing Ordering System Using Mobile

4
5

ix 2.2.1 Electronic Booking & Ordering System (EBOS) 2.2.2 Executive Restaurant Order System (EROS) 2.2.3 Restaurant Pro Express (RPE) 2.3 Proposed System
5

7 8 9 9 10 11 12 12 13 13 14 14 14

2.3.1 Food Ordering System Using Mobile (FOSUM) 2.4 Scripting Language 2.4.1 Peripheral Hypertext Preprocessor (PHP) 2.5 Database 2.5.1 MySQL 2.6 Development Tools 2.6.1 Macromedia Dreamweaver 8 2.6.2 phpMyAdmin 2.7 Technology Used 2.7.1 Wireless

METHODOLOGY

3.1 Introduction

16 17 18 19 20 20 21 23 24
25

3.2 Waterfall Model

3.3 Requirement Specification

3.3.1 Software Requirement

3.3.2 Hardware Requirement 3.4 System Design 3.4.1 Use Case Design 3.4.2 Network Design 3.4.3 Database Design 3.4.4 Interface Design 3.5 Implementation 3.6 Testing 3.6.1 Black-box Testing 3.6.2 White-box Testing 3.7 Maintenance

28 28 29 29 30

IMPLEMENTATION 4.1 Introduction 4.2 Interface Design 4.2.1 Layout Design 4.3 Database System 4.3.1 Data Dictionary 4.3.2 Database Connection 4.4 Data Manipulation Language 4.4.1 Insert 4.4.2 Select 4.4.3 Implemented Javascript
4.5 PHP

31 31 34 35 35 36 37 37 38 38 38 39 39 40 40 41 41

4.5.lPHPsyntax
4.5.2 If Else Statement

4.5.3 Function 4.5.4 Form


4.5.5 $ POST

4.5.6 Variable 5 RESULT AND DISCUSSION 5.1 Introduction


5.2

42 43 43 44 45 46 46 47 49 49

Result Analysis 5.2.1 Login Module 5.2.2 Order Entry Module


5.2.3 Kitchen Application Module

5.2.4 Billing Module 5.3 Expected Result 5.4 Testing Result


5.5

Constraints
5.5.1 Development Constraints

xi

System Constraints 5.6 Future Research


5.5.2

50 50

CONCLUSION REFERENCES APPENDICES

51 52 54

xli

LIST OF TABLE

TABLE NO. 2.0 2.1 3.0 3.1 3.2 3.3 3.4


3.5

TITLE Comparison between existing system and FOSUM Comparison between wireless and LAN Software Requirement Hardware Requirement Table for Cashier Entity Table for Cook Entity Table for Waiter Entity Table for Ordniknn Entity Table for Ordmnm Entity Fosum Data Dictionary

PAGE 10 15 19 20 24 24 24 24 25 35

3.6 4.0

xlii

LIST OF FIGURES

FIGURE NO. 2.0 2.1 2.2 2.3 2.4 3.0 3.1 3.2 3.3 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 Booking System

TITLE

PAGE 6 6 7 8 9 17 21 22 23 25 26 26 27 27 27 27 32 32 33 33 34 36 37

Food Menu in Pocket I 'c Table Order Menu Schedule Configuration Menu Order Waterfall Models Flowchart Use Case Diagram Network Design Login Interface Taking Order for Drinks Interface Taking Order for Foods Interface View Food Interface View Drinks Interface Calculate Food Interface Calculate Drinks Interface Standard wording, labels and buttons Message Alert Error Message Minimalist Interface Design Cascading Style Sheet file code XAMPP server Database Declaration

xlv
4.7

Insert database Select database Javascnpt PHP syntax If Else Statement PHP function PHP form $_POST function Variable in PHP Login Module Error Message Message Box Order Entry Module Message box order have been save Kitchen Application Module Billing Module Expected Result for billing module Test 1 Test Test 3 Test Test 5 /

37 38 38 39 39 40 40 41 41 43 44 44 44 45 45 46 47 47 48 48 48 49

4.8 4.9 4.10 4.11 4.12 4.13 4.14 4.15


5.0 5.1 5.2

5.3
5.4 5.5 5.6 5.7 5.8 5.9

5.10 5.11 5.12

xv

LIST OF ABBREVIATIONS

LAN PDA EBOS EROS RPE FOSUM POS PHP J2ME P1W AP GUI PC HTML XML RDBMS SQL CSS

- - - - -

Local Area Network Personal Digital Assistant Electronic booking and ordering system Executive Restaurant Orde System Restaurant Pro Express Food Ordering System Using Mobile Point of Sale Peripheral Hypertext Preprocessor Java 2 Micro Edition Hypertext Preprocessor Access Point Graphical User Interface Personal Computer Hypertext Markup Language Extensible Markup Language Relational Database Management System Structured Query Language Cascading Style Sheet

xv'

LIST OF APPENDICES

APPENDIX A B C D Gantt chart User Manual for waiter User Manual for cook User Manual for cashier

/ TITLE

PAGE
54 55 58

60

CHAPTER 1 /

INTRODUCTION

1.1 Introduction

This chapter explains about conventional food ordering process using paperbased and current ordering system by using mobile. Besides that in this chapter also explains about problem statement in using manual system for ordering process, objectives and scope of the system that are going to develop.

1.2 Mobile Computing System Mobile computing systems can be defined as a computing environment over physical mobility. Examples are personal digital assistants (PDAs), and mobile phone. Mobile computing Systems is allows a user to perform a task from everywhere using a computing device in the public, corporate, and personal information. Mobile computing environment support one or more of the following characteristics[ I]: i) User Mobility User should be able to use the same service and move from one physical location to one location. II) Network Mobility User should be able to use the same service and move from one network to another networkiii) Device Mobility User should be able to use the same service and move from one device to another.

1.3 Current System There are a lot of ordering system using mobile have been developed such as Electronic booking and ordering system(EBOS). Another ordering system using mobile is Restaurant Pro Express owned by pcAmerica. Restaurant Pro Express is a Touch Screen restaurant Point of Sale (POS) system designed for easy order taking. Executive Restaurant Order System (EROS) is a prototype of taking order by using PDA simulation. The proposed system, Food Ordering System Using Mobile (FOSUM) is a system designed to enhance the current system which is manually in ordering food to computerized the ordering food. It has four modules which are Login, Order entry, Kitchen application and Billing.

1.4 Problem Statement Food Ordering System Using Mobile (FOSUM) is designed to overcome those problems using manual system such as the possibility the paper order is high. Many restaurants use conventional system which is on paper-based, for food ordering process. Using conventional system, the waiter must jot down the order at the paper and send to the cook. The probability to make mistake was high because sometimes the cook / misinterpret hand-writing order. Therefore FOSUM was developed to enhance the efficiency and accuracy of taking order in food ordering system. Besides that, conventional system cannot see the sales history therefore FOSUM was designed to view the sales history of the restaurant.

1.5 Objectives The objectives of developing Food Ordering System Using Mobile (FOSUM) are: i) To computerized the food ordering system process. ii) To display details of sales history. iii) To calculated price of order.

1.6 Scope The scope of Food Ordering System Using Mobile (FOSUM) are: i) The system was using Peripheral Hypertext Preprocessor (PHP). ii) The system is using MYSQL database. iii) The application operates within wireless.

CHAPTER 2

LITERATURE REVIEW

2.1 Introduction This chapter explains about the existing ordering system using mobile. Based on my study, there are three current systems using mobile which are Electronic Booking & Ordering System (EBOS), Executive Restaurant Order System (EROS), and Restaurant Pro Express (RPE). This chapter also explains about the overview of the proposed system Food Ordering Using Mobile (FOSUM).

2.2 Existing Ordering System Using Mobile There are many current ordering systems using mobile application nowadays. Such as:

2.2.1 Electronic Booking & Ordering System (EBOS) This system is design to reserved table and order food at the restaurant. There are two function in the system; booking system and ordering system. In booking system, there are two ways to register the customer via online booking and walk in. For online booking, the customer can booking through Internet. The system provide the identification when the user reserves a table through the system, a unique ticket number be generated for the customer. The online booking system is develop by using ASP.net. The ordering system need to receive the food order from a Pocket PC through the intranet by using TCP/IP protocol. The booking system will be the host on the server. A client PC will be located at the reception of the restaurant. The mobile phone application is created using J2ME for booking registration using mobile. There are four main functions in ordering system which includes Table Order, Food Order, Pay Order and Editing Food Menu. Ordering system provide client program for waiter to enter the order and a server program to chef to receive and process the order. The client program used in a Pocket C and provide interface for entering the order, in which the menu can be updated. For the ordering system, both client and server program for the booking system created by Microsoft Visual Basic.NET and Microsoft.Net Compact Framework 1.0[2]. The functions in table orders is to display the details of the order for each table.

The chefs at the kitchen can manage the order item of each order by changing the status of Processing, Finished or Cancel. Food Orders function to display the details of the food that have been ordered and status that can be applied to the ordered food. The pry order function is to display the details of each order. The manager in the restaurant can use the system to calculate the total amount of each bill for the customer to pay it and change the status of the order to 'paid'.

/
CdrItem(s): Bo; 1;14$ 123 f; 2; I-I<$ 123 ; 3.: Hq J2 4 14<0 123
Phone No. 91234567

An Thn y

ew (e.. 21S1) JO7

Month (I1-12 05 Day(I1-31) Kni. (ft-fl: 1137

Ill El
TbII7
MICou

I -Delete

1 I
I I

Added 4: cofee;4;i23
FlIP

Figure 2.0:

Booking system

Figure 2.1:

Food Menus in Pocket PC

TMOd. lFo3rewo.rJM..4 dnI Ud,D


In Ii

[IOd..ifle
I 3 I F F

42 43 44
42

2317i1I5 i(n 225(1&42 J7 ff7 22'5/W%'"41(8 260/?18InIB IC9 2IF7i1d01:01 f1I42ZI

I Ford

T..9.... hood.. koC..... kono

I 2 2 E

3 0 0 P

22 i2 123

Roc...

_______

Odr.

88rs /

Figure 2.2 Table Order

2.2.2 Executive Restaurant Order System (EROS)

This system is a prototype of taking order by using FDA simulation. The system is developed by using Microsoft Visual Studio.Net 2003. There are three interface in this system; PDA application, cashier application, and kitchen application. The application interfaces developed by using Visual Basic.Net . In EROS system, workstation, switch and Access Point (AP) will be going use in developing the system. All these equipment installed in lab FSK6B. There are many disadvantages of the system. The system cannot automatically display the order in a kitchen application. It needs staff to manually click the button to get new order from customer. The kitchen application also cannot remove the order from the list after the particular order finished to deliver to the customer. It can be removed by cashier application after the customer paid their bills. Besides that, EROS system only can take one delivery order only. The waiter cannot add new order for the same person once he sent the data to the kitchen application.

The database that used in the system is only for temporary. After Customers paid their bill, the record for the particular table was deleted[3]. 2.2.3 Restaurant Pro Express (RPE) Restaurant Pro Express(RPE) is a touch screen restaurant Point of Sale (POS) system designed for easy order taking[l 1]. RPE is a complete point of sale and management solution designed for table service restaurant. This system provides integrated tools to manage table seating, ingredients, employee time tracking, labor scheduling, deliveries, gift cards, customer loyalty and more. The built in reporting is flexible and generates the key features needed to make smarter business decisions. RPE is ideal for both independent restaurants and chains of restaurants. RPE train the server in as little as 60 seconds to place order and close out checks and to speed up the operations in the restaurant. RPE prints orders clearly in the kitchen. Orders send to the kitchen printer include each item ordered. The other features of RPE is customize touch screen, exportable report information, user defineable menus and detailed customer history.

Dndine w [J Use Date Range

Fb..d

BREAKFAST
0

SInS Date

End Date This is a special event or holiday menu Sunday 6:00 AN-12:00PM Monday 600 AM-10:30 AM Tuesday 600 AM-10:30 AM Wednesday 6:00 AM-10:30 AM Thursday 6:00 AM-10:30 AM Friday 6:00 AM-10:30 AM Saturday 1 6:00 AM-1200 PM

ResetThnea Pr.1lun

Delete lime

BREAKFAST

L_Add1__UpdateQelete

____

Figure 2.3 Menu schedule configuration

c...o
,corlso Eroa..s PLA CMCO . .
WSTPE 10M4T0 SOPW

TCTO$READI I coal ci.sa,c cia fliNcH 01uS$ 1 $0.01 SCO1101I$$1u01 I $10.00


ME'TRM I HISS

1 ....r

$3210

TA
Figure 2.4 : Menu Order 2.3 Proposed System

EMS

2.3.1 Food Ordering System Using Mobile (FOSUM) There are four modules in Food Ordering System Using Mobile; Login, Order entry, kitchen application and billing. The user for order entry is waiter, the user for kitchen application is cook, while the user of billing module is cashier. All the user must login to the system. The waiter takes order from the customer using mobile and the data will transmitted to the PC in the kitchen and PC at the cashier for billing. The function of order entry module is select order, quantity of order, and number of table. The function of kitchen application is to view the order while the function of billing module to calculate the price of order. FOSUM is develop by using Peripheral Hypertext Preprocessor(PHP) and Macromedja Dreamweaver as a development tools. The system is using database MySQL and phpMyAclmjn as development tools for database. The function for order entry module is take input order such as table number, menu order and quantity of the order. The system will display details of sales history and calculate the order.

10

The system operates within wireless. Wireless connect to the networks via wireless Access Point (AP).

Electronic Booklng& Order System (EBOS) Develop by using ASP.net and J2ME software

Executive Restaurant Order System (EROS) Developed by using Microsoft Visual Studio.Net 2003

Food Ordering System Using Mobile (FOSUM) Develop by using and Macromedia Dreamweaver and MySQL database. Operates within wireless

Operates within WiFi and intranet Can add order

Operates within LAN and wireless Cannot add order for customer who has already order

Can add order

Automatically display order

Cannot automatically display the order

Automatically display order

iaoie h.0 uompanson between existing system and FOSUM

2.4 Scripting Language A scripting language allows control of one or more software applications. "Script" are distinct from the core code of the application, which is usually written in different language, and are often created of at last modified by the end-user. There are several types of scripting language that can be used to develop the system such as PHP, C++, Java Script, and Visual Basic.

11

2.4.1 Peripheral Hypertext Preprocessor (PHP) Peripheral Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. PHP is available as a processor for most modem web servers and as standalone interpreter on most operating systems and computing platforms. PHP is a generalpurpose scripting language that is especially suited to server-side web development where PHP generally runs on a web server. Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content. It can also be used for command-line scripting and client-side GUI applications[ 19]. The advantages of PHP are: i) PHP code is inserted directly into the HTML that makes up a website. Because PHP is a server side technology, the user does not need any special browser or plug-ins to see the PHP in action. ii) PHl is easy to understand and learn, especially for those with backgrounds in programming such C, Javascript and HTML iii) PHP also runs on every platform including most UNIX, Macs and Windows versions. iv) PHP runs fast because does not use a lot of the systems resources and does not tend to slow other processes down. v) PHP is connective abilities. PHP uses a modular system of extensions to interface with a variety of libraries such as graphics, XML, encryption, etc.

12

2.5 Database

A database is a collection of information that is organized so that it can be easily be accessed, managed, and updated. In one view, database can be classified according to types of content bibliographic, full-text, numeric, and images. In additional, new information and changes should also be fairly easy to input. Database systems are designed to manage large bodies of information. Management of data involves both defining structures for storage of iiformation and providing mechanisms for the manipulation of information. The applications to develop the database are likes MySQL, Phyton and Oracle.

2.5.1 MySQL MySQL is a freely available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). SQL is the most popular language for adding, accessing and managing content in a database. It is most noted for its quick processing, proven reliability, ease and flexibility of use. MySQL is an essential part of almost every open source PHP application[lO]. The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. Several other third-party proprietary and free graphical administration applications are available that integrate with MySQL and enable users to work with database structure and data visually such as phpMyAdmin; a free Web-based fronted widely installed by Web hosts worldwide, since it is developed in PHP.