CAR RENTAL SYSTEM USING TECHNIQUE FOR ... - FIK

45
i CAR RENTAL SYSTEM USING TECHNIQUE FOR ORDER PREFERENCE BY SIMILARITY TO IDEAL SOLUTION (TOPSIS) AIN SHAFIQAH BINTI MOHD ISHAK BACHELOR OF COMPUTER SCIENCE (SOFTWARE DEVELOPMENT) WITH HONOURS UNIVERSITI SULTAN ZAINAL ABIDIN 2020

Transcript of CAR RENTAL SYSTEM USING TECHNIQUE FOR ... - FIK

i

CAR RENTAL SYSTEM

USING TECHNIQUE FOR ORDER PREFERENCE

BY SIMILARITY TO IDEAL SOLUTION (TOPSIS)

AIN SHAFIQAH BINTI MOHD ISHAK

BACHELOR OF COMPUTER SCIENCE

(SOFTWARE DEVELOPMENT) WITH HONOURS

UNIVERSITI SULTAN ZAINAL ABIDIN

2020

CAR RENTAL SYSTEM

USING TECHNIQUE FOR ORDER PREFERENCE

BY SIMILARITY TO IDEAL SOLUTION (TOPSIS)

AIN SHAFIQAH BINTI MOHD ISHAK

Bachelor of Computer Science (Software Development) with honours

Faculty Informatics and Computing

Universiti Sultan Zainal Abidin

2020

i

DECLARATION

I here by declare that this report is based on my original work except for quotations and

citations, which have been duly acknowledged. I also declare that it has not been previously

or concurrently submitted for any other degree at University Sultan Zainal Abidin or other

institutions.

_______________________________

Name: ...................................................

Date: ....................................................

ii

CONFIRMATION

This is to confirm that this project entitled Car Rental System Using TOPSIS was prepared

and submitted by Nur Ilya Najwa Binti Mohd Rusli (Matric Number: 051656) and has been

satisfactory in terms of scope, quality and presentation as partial fulfilment of the requirement

for the Bachelor of Computer Science (Software Development) with honours in Universiti

Sultan Zainal Abidin. The research conducted and the writing of this report was under my

supervisor.

_________________________________

Name: Prof. Madya Dr.Engku Fadzli

Hasan Syed Abdullah

Date: .......................................................

iii

DEDICATION

In the Name of Allah, the Most Gracious and the Most Merciful. Alhamdulillah all praise to

Allah s.w.t, I completely finish writing this thesis. This thesis could not have been finished

without the support, encouragement and cooperation of my friends, supervisor, parents and

other peoples. Here I would like to thank a lot to my dedicated supervisor, Dr Mumtazimah

binti Mohamad, who has always given ideas and help me a lot in developing this project

successfully despite of lack of time.

Last but not least, I want to thank all my friends that helped me through this project with their

moral support. Not forgetting those who have directly or indirectly helped me on this thesis

Thank you.

iv

ABSTRACT

Advancement of technology has influence the development in various fields including

booking system. For rental cars, it’s difficult to find application that provide the booking service.

Usually car rental owner not advertise their cars on internet but instead they only advertise it

among the resident. Problems occur when customer found that it is rarely application for car

renting. Renting a car through online and mobile is a need among people who does not have

their own transport especially students who needs to move around to do their business outside

campus. Usually they had to ask local for any available car to rent nearby and this manual

way consume a lot of time since current trend where everything available online. To solve this

problem, a platform is needed that can help both owner and rental person in this car rental

system. The owner can promote their car and help boost their advertising in this system. While

customer can search for any cars available for rent without having waste their time. The

expected result of this project are user can easily find a car that available in the system and

the management process of rental cars can be easier and efficiency. By using the Technique

for Order Preference by Similarity to an Ideal Solution (TOPSIS), this system can help user to

make decision based on criteria that has been set and it will show the result.

v

CONTENTS

DECLARATION i

CONFIRMATION ii

DEDICATION iii

ABSTRACT iv

LIST OF TABLE vii

LIST OF FIGURE i

CHAPTER 1 1

INTRODUCTION 1

1.1 Background 1

1.2 Problem Statement 2

1.3 Objective 3

1.4 Scope 4

1.41 Admin 4

1.4.2 Owner 4

1.4.3 User 4

1.5 Limitation of Work 5

1.6 Gantt Chart 6

1.6 Expected Result 7

CHAPTER 2 8

LITERATURE REVIEW 8

2.1 Introduction 8

2.2 Research on existing system 9

2.2.1 economycarrentals.com 9

2.2.2 rentalscar.com 10

vi

2.2.3 drivr.my 11

2.3 research on different technique 14

2.3.1 techniques for order prefence by similarity to ideal solution (TOPSIS) 12

2.3.2 Analytic Hierarchy Process (AHP) 12

2.3,3 Weighted sum method (SUM) 13

2.4 Table of comparision 14

2.5 implementation of car rental system using TOPSIS method 16

2.6 Summary 18

CHAPTER 3 19

METHODOLOGY 19

3.1 Introduction 19

3.2 waterfall model 19

3.2.1 requirements phase 20

3.2.2 analysis phase 20

3.2.3 Desifn phase 21

3.2.4 Coding implementation phase 21

3.2.5 testing 21

3.2.6 Deployment phase 21

3.3 Project rewuirement 22

3.3.1 Project requirement 22

3.3.2 Hardware Requirement 23

3.4 Framework Design 24

3.5 Context Diagram 25

3.6 Data Flow Diagram 26

3.6.1 Data Flow Diagram Level 0 27

3.6.2 Data Flow Diagram Level 1 process manage profile 28

vii

3.6.3 Data Flow Diagram Level 1 Process 2.0 manage car 29

3.6.4 Data flow diagram level 1 for process 3.0 manage booking 30

3.6.5 Dta flow diagram level 1 for process 4.0 manage report 31

3.7 Entity Relationship Diagram (ERD) 32

3.8 Data Model 33

viii

LIST OF TABLE

TABLE TITLE PAGE

1.1 Gantt Chart 7- 8

2.1 Table of Comparison for Each Technique 14 - 15

2.2 Car with criteria 17

2.3 Normalised data 16

2.4 Weighted Decision Matrix 16

2.5 Calculated Euclidean Distance 18

2.6 Calculated Performance Score 18

3.1 Development Software Requirement 27

3.2 Development hardware requirement 28

3.3 User Table 32

3.4 Owner Table 32

3.5 Car Table 33

3.6 Admin Table 33

3.7 Booking Table 34

LIST OF FIGURE

FIGURE TITLE PAGE

2.1 Interface of RentalCars System 20

2.2 Interface of Speedhome System 21

2.3 Interface of EasyRentCars System 22

ix

3.1 Iterative Model 25

3.2 Framework Design 30

3.3 Context Diagram 31

3.4 Data Flow Diagram 32

3.5 Data Flow Diagram Level 1 Process 2.0 33

3.6 Data Flow Diagram Level 1 Process 3.0 34

3.7 Entity Relationship Diagram 35

1

CHAPTER 1

INTRODUCTION

1.1 Background

Car rental is a company which rent for a short period of time for a fee to their customer.

In Malaysia, car rental service increasingly becomes the preferred option for most people,

especially among students in campuses and universities. This because not all students can

afford having their own vehicle. Some car rental owner still use a manual system to manage

rental car operations by spreading of their available car to local resident. This method wasting

money and time for both rental person and car rental owner. Therefore, it is proposed to have

a system that can be used to provide booking and management to make easier for both of

them The system will help them by find the car rental base on the criteria that user given using

Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method.

2

1.2 Problem Statement

There are car owner may not be able to reply the message from the customer as soon

as possible and this situation can make their customer to find another rental car. Sometimes,

customer want choose which car is the best for them and car owner needs to serve them and

can cause the car owner to take a long time to reply to other customer messages. Besides

that, manual system does not allow user to booking online and hard to keep track on the record

of rental cars. User must contact a car rental owner and wait confirmation about contract out

for a vehicle and this will delay the process of renting car. This method consume time for

tenant and car rental owner.

3

1.3 Objective

The main objective of this project is to develop a system that allow the car rental owner

to advertise their cars and allow user to search any type of car in this system . In order to

achieve the above mentioned aim, below is the objectives of this project.

• To propose a system to manage the car rental business

• To apply technique for user’s criteria preference

• To test of system functionality of the proposed technique such as Software

Requirement specification.

4

1.4 Scope

The scopes for this project are identified to make the system development process easier.

The scope will be explained from user aspect of view.

1.4.1 Admin

• Manage and monitor the application

• Admin can view report

1.4.2 Owner

• Register and login profile

• Add, update, and delete car details

• Approve booking status

1.4.3 User

• Register and login profile

• Can search detail car

• Make a booking

5

1.5 Limitation of Work

There are several of limitation on this system. The limitatian and problem for this system is

there are using internet connection if they want to make a booking car on this system , without

internet connection this system cannot be use.

6

1.6 Gantt Chart

Table 1.1 shows Gantt charts for the project proposed. Gantt charts were used as planning

and scheduling to make the project..

Table 1.1: Gantt Charts

ACTIVITY/WEEK 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Initiating

Discuss topic

with supervisor

Project title

proposal

Planning

Proposal writing : introduction

Proposal writing : literature review

Proposal progress

presentation

Proposal solution

methodology

Proof of concept

Analysis and design

Design system model

Design database

Design interface

Drafting report of proposal

Final presentation

Final report submission

7

1.6 Expected Result

The expected result of this system is user can use this system for search car for rental easily

in the application and the management process of rental cars can be easier and efficiency

without waste there time . Technique for Order Preference by Similarity to an Ideal Solution

(TOPSIS) is using on this system. This system can help user to make a decision based on

criteria that user want. Owner car also can be easier to manage their available car by update

information about that car into the system.

8

CHAPTER 2

LITERATURE REVIEW

2.1 Introduction

This chapter provide the literature review that is related with system that will be developed.

The review on that system must be described, evaluated and clarified. In this literature review,

this project will be discuss and revie about the method into a multiple criteria decision and the

implementation of TOPSIS that will be use in that system. This literature review can be a

guideline to develop that system. The source area referring from the book, articles, journals

and also sources from the internet.

9

2.2 Research on existing system

2.2.1 economycarentals.com

This website (www.economycarrentals.com) is used to ensure the customer can access to

worldwide car hire services at the lowest prices. Customer can search what type car they want

and must pickup point based on placed that car owned choose. Customer need input date

rental start and rental end in this system. Customer also can return car at another place in our

country but must inform where place that customer want to return on this website. Provide the

service that car can be return in different place from pickup point. Figured 2.1 shows the

interface of economycarrentals.com system.

Figure 2.1:Interface of economycarrentals.com

10

2.2.1 Rentalcars.com

Rental car ( www.rentalcars.com ) is a website that make a service at the lowest price. In this

system there are several characteristics for this website. Customer can search car and pickup

car based on customer selected location. Provide the service can sent the car to customer

according to designated area. Figure 2.2 shows the interface of Rentalcars system.

Figure 2.2:Interface of Rentalcars system

11

2.2.3 Drive.my

This system ( www.drive.my ) is dedicated to find car rental online as easy as possible and

providing onlines servis at location in Malaysia. Customer only input date pickup, return date

and location this system will be find what car was available at that time. Customer can find a

car to match that they needs based on their budgets. Figure 2.3 shows interface of Drive.my

system.

Figure 2.3:Interface of Drive.my

12

2.3 Research on Different Technique

Different technique in multi-criteria decision method has been analyse. Previous

research and articles that related to the specific technique were observe on their advantage

and disadvantages for implementation the suitable technique in the system. Three technique

were chosen for the literature review.

2.3.1 Technique for Order Preference by Similarity to Ideal Solution (TOPSIS)

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multi-

criteria decision analysis method, which was originally developed by Ching-Lai Hwang and

Yoon (1981) with further developments by Yoon (1987), and Hwang, Lai and Liu

(1993). TOPSIS is based on the concept that the chosen alternative should have the shortest

geometric distance from the positive ideal solution (PIS) and the longest geometric distance

from the negative ideal solution (NIS).

2.3.2 Analytic Hierarchy Process (AHP)

The analytic hierarchy process (AHP) is It was developed by Thomas L. Saaty in the 1970s

who partnered with Ernest Forman to develop Expert Choice in 1983, and has been

extensively studied and refined since then. It represents an accurate approach for quantifying

the weights of decision criteria is a structured technique for organizing and analyzing complex

decisions, based on mathematics and psychology. The application of AHP comprises the

following stages, structuring of criteria and alternative, collecting judgements, calculating

priorities, checking the consistency of judgements, and lastly, calculating the overall priorities

of the alternatives (Maria Celeste de Carvalho Ressiguier Ribeiroa, 2016).

13

2.3.3 Weighted Sum Method (WSM)

The weighted sum (WSM) also called weight linear combination (WLC) or simple additive

weighting (SAW). WSM is the best known and simplest multi-criteria analysis to make a

decision method for evaluating a number of alternatives in terms of a number of a decision

criteria. The current Weighted Sum Method helps the decision maker to choose when the

scenario is static.

14

2.4 Table of Comparison

Table 2.1:Table of Comparison for Each Technique

YEAR

AUTHOR

TITLE

OBJECTIVE

PROBLEM

STATEMENT

METHOD

USED

RESULT

FUTURE WORK

2010

R.Timothy Marler, Jasbir Singh Arora

The weighted sum method for multi-objective optimization : new insights

provide multiple solution points by varying the weights consistently. also to provide a single solution point that reflects preferences presumably incorporated in the selection of a single set of weights.

Not suitable to use for ranking.

The weighted sum method ( WSM ).

The weighted sum method ( WSM ).

Non-convex or potentially non-convex problems where it is critical to depict the complete Pareto optimal set thoroughly

2006

Omkarprasad S. Vaidya, Sushil Kumar

Analytic hierarchy process: An overview of applications

Analytic Hierarchy Process (AHP), since its invention, has been a tool at the hands of decision makers and researchers; and it is one of the most widely used multiple criteria decision-making tools.

AHP as a stand-alone tool. What it means is that AHP as a tool comes with a natural flexibility that enables it to be combined with so many different techniques effectively

Analytic Hierarchy Process (AHP),

The speciality of AHP is its flexibility to be integrated with different techniques like Linear Programming, Quality Function Deployment, Fuzzy Logic, etc.

AHP is going to be used widely for decision making. AHP use is rising in the developing countries

2018

Deny jollyta

TOPSIS Technique for

This is study maintain a customer satisfaction to conduct a

Topsis never considered the risk assessment for a decision maker

Technique Preference by Similarity to Ideal

Effective location selection for property

Testing using TOPSIS is highly determin

15

Selecting of Property Development Location

survey to find a strategic location before building a project. Six criteria were chosen such as land data, alternatives, weighting criteria, survey results and criteria values.

Solution ( TOPSIS )

development is a strategic decision that affects company performance

ed by the weight value given by the decision maker. This can give different preference results.

16

2.5 Implementation of Car Rental System using TOPSIS method

From the research, the best algorithm for this system is TOPSIS method. On this table show

how TOPSIS work to search for car in this system.

There are have four cars that was available for rent with three criteria in Table 2.2

Table 2.2: Car with criteria

ATTRIBUTE / CRITERIA

PRICE ( RM ) NUMBER OF SEAT RATING

EXORA 200 7 4

AXIA 120 3 3

SAGA 150 4 6

IRIZ 180 5 5

PERFORMANCE VALUE

330.61 9.95 9.27

This table show that criteria of the car. To get the performance value for all the data in

the criteria it need to calculate by using this formula √𝐸 𝑋𝑛2.

After get the performance value , next go to the data for criteria will be normalise. To

calculate normalised data need to divide data with the performance value.

Table 2.3: Normalised data

ATTRIBUTE / CRITERIA

PRICE ( RM ) NUMBER OF SEAT RATING

EXORA 0.46 0.70 0.43

AXIA 0.36 0.39 0.32

SAGA 0.45 0.40 0.65

IRIZ 0.54 0.50 0.54

PERFORMANCE VALUE

330.61 9.95 9.27

17

After get the normalised data we need to find weight decision matrix . Let weight for price,

rating and number of seat is 0.25. the data in normalised will be multiply with the weight to get

weight decision matrix.

Table 2.4: Weighted Decision Matrix

ATTRIBUTE / CRITERIA

PRICE ( RM ) NUMBER OF SEAT RATING

EXORA 0.115 0.175 0.108

AXIA 0.09 0.075 0.08

SAGA 0.45 0.1 0.163

IRIZ 0.113 0.125 0.135

Vj+ 0.09 0.1 0.163

Vj- 0.45 0.075 0.08

Calculate Eudlidean Distance (Sj) from ideal best (Vj+) and ideal worst (Vj-).

S+ = [Σ𝐽=1𝜂

(𝑉𝑖𝑗 − 𝑉+𝑗)2]0.5

S- = [Σ𝐽=1𝜂

(𝑉𝑖𝑗 − 𝑉−𝑗)2]0.5

Table 2.5: Calculated Euclidean Distance

ATTRIBUTE / CRITERIA

PRICE ( RM )

NUMBER OF SEAT

RATING Sj+ Sj-

EXORA 0.115 0.175 0.108 0.10 0.35

AXIA 0.09 0.075 0.08 0.09 0.36

SAGA 0.45 0.1 0.163 0.36 0.09

IRIZ 0.113 0.125 0.135 0.04 0.35

Vj+ 0.09 0.1 0.163

Vj- 0.45 0.075 0.08

18

Then, calculate the performance score (Pi). Pi = Sj-/(Sj+ (+) Sj-)

Table 2.6: Calculated Performance Score

Attribute/

Criteria

Sj+ Sj- Sj+ (+) Sj- Pi Rank

EXORA 0.10 0.35 0.45 0.7 3

AXIA 0.09 0.36 0.43 0.8 2

SAGA 0.36 0.09 0.45 0.2 4

IRIZ 0.04 0.35 0.39 0.9 1

2.6 Summary

This chapter discuss literature reviews that have been collected and reviewed along the

studies. Literature review can help developer to discover any problems of any existed system

or research that can be improve in future.

As a summary, the integration of Car Rental System with TOPSIS method is the most

suitable to use in this developing system. TOPSIS technique will help user to find car based

on criteria and the system will rank the result with the most ideal one on top while the worst

one on the bottom.

19

CHAPTER 3

METHODOLOGY

3.1 Introduction

This chapter describes the software development process are involving lots of steps

towards implementation and a standard life cycle steps are followed across this process. The

method that are commonly used as a guideline for solving the problem with certain

components such as phases, tasks, methods, techniques and tools. There are various type of

software development life cycle (SDLC) model. The SDLC that will be used on this project is

waterfall model.

3.2 Waterfall Model

Methodologies in general are defined as a guideline to solve problem with the specific

component such as phase, tasks, methods and technique. It can also be defined as a

systematic method that can be used in a single development designed to solve the problem.

There are various type of models that can be used in the development system such as

Iterative Model, V-Model, Spiral Model and others. In order to implementing this project, the

most suitable methodology is Waterfall Backflow Model which is commonly used in system

development life cycle (SDLC).

System development life cycle is a structured analysis technique that is used to plan

and manage the development system process. System development life cycle is a complete

development process which is includes six phases where the initial phase is planning and end

with the support phase. SDLC approach with more appropriate to the system that will be

developed. Figure 3.1 below shows the Waterfall Backflow Model.

20

Figure 3.1: Waterfall Model

3.2.1 Requirement phase

This is the first phase of development where all the requirements gathered and documented.

In this phase,the project was selected is Car Rental System. Potential requirements,

deadlines and guidelines for the project are analyzed and placed into a functional

specification. This stage handles the defining and planning of the project without mentioning

specific processes.

3.2.2 Analysis phase

In this phase we analyze all the gathered requirements whether the requirements are valid or

invalid.

21

3.2.3 Design phase

In this phase all the system design is analyzed and specified like hardware, system

configuration and architecture or the system. Context Diagram (CD), Data Flow Diagram

(DFD), Level 0, Entity Relationship Diagram (ERD) will show in this phase to develop the

system. These diagrams are designed as a guideline to develop the system. After that the

database and the interface of this system will be develop.

3.2.4 Coding./Implementation phase

At the implementation phase, system will be develop and all the development works are

performed. The diagram of the data flow and the data model will be implemented in this phase.

Programmer will create a coding code of interface. The source code is developed using the

models, logic and requirements designated in the prior stages.

3.2.5 Testing

Once the development completed, testing phase starts and in this phase we test the each unit

or component and make sure the developed components are working as expected. All the

testing activities are performed in this phase.

3.2.6 Deployment phase

Once testing is completed and make sure there is no bug or defect or any kind of issue, then

project is deployed to production. Once product is deployed to production the end users start

using the product.

22

3.2.7 Maintenance phase

We always keep eye on the product and provide all the necessary bug or issue fixes if occurs

in production or reported by end users. Also time to time we keep updated the product with

new updates or patches if developed or available.

3.3 Project requirement

There are two requirements that are needed to develop the system which are software

requirement and hardware requirement. It is important to ensure the development of the

project went well and for the future references.

3.3.1 Software Requirement

Table 3.1 shows the software requirements for the proposed system.

Table 3.1: Development software requirement

Software Description / Purpose

XAMPP Server to run localhost

Notepad++ Use to code the program of the project, especially

connection application to the database

PhpMyAdmin Programming language

Bootstrap Framework to develop system

Microsoft Word 2016 Documentation of application

MySQL For system database

To design CD, DFD and ERD

23

3.3.2 Hardware Requirement

Table 3.2 shows the hardware requirement for the proposed system.

Table 3.2: Development hardware requirement

Hardware Description / Purpose

Laptop HP DESKTOP- MD498TQ

Processor Intel ® Core ™ i3 – 4005U CPU @ 1.70 GHz 1.70

GHz

Random Access Memory (RAM) 4.00 GB

Operating system Windows 10 Pro

System type 64-bit Operating System, x64-based processor

24

3.4 Framework Design

Figure 3.2 show the flow of the process of what the user can do with Car Rental System. User

can register and login profile, search detail car and book car that available in the system.

Owner can register and login profile, manage car and approve the booking. Admin can monitor

system and view all the reports.

Figure 3.1: Framework Design

25

3.5 Context Diagram

Figure shows the Context Diagram for this system. This system involves three main entities

which is admin, owner and user. Admin can monitor the system and view details owner, user

and report. Owner can register details car to show on system and confirm booking from user

in this system. User can be able to see user detail and book detail to the system.

Figure 3.2: Context diagram

26

3.6 Data Flow Diagram

3.6.1 Data Flow Diagram Level 0

Figure shows that admin, owner and user must register to access the system. All the

users which are owner and user can manage their detail and all the information will be stored

in user and owner table respectively. Owner can manage their car and enter the details of the

car into the system and the details will be stored in data store car. When user book the car,

then every booking detail will be stored in booking data store and it will display to the owner

about the booking. Then, admin can view report from every car detail, booking detail and detail

of user and owner

Figure 3.3: Data flow diagram level 0

27

3.6.2 Data Flow Diagram Level 1 for process 1.0 manage profile

Figure 3.4: Data flow diagram level 1 process manage profile

28

3.6.3 Data Flow Diagram Level 1 for process 2.0 manage car

owner can register car. The car detail will be stored in table car and it will display the details

to owner after they register it. It also can be appear in the application for user to view. Owner

also can add, update, and delete the car detail.

Figure 3.5: Data Flow Diagram Level 1 for Manage Car Process

29

3.6.4 Data Flow Diagram Level 1 for process 3.0 manage booking

User can make booking. The booking detail will be stored in table booking and it will display

the details to user after they make a booking. user also can delete and cancel the booking

Figure 3.6: Data flow diagram level 1 manage booking

30

3.6.5 Data Flow Diagram Level 1 for process 4.0 manage report

Admin can view report . The report detail will be stored in table booking and it will display the

details to user after they make a booking. user also can delete and cancel the booking.

Figure 3.7: Data flow diagram level 1 manage report

31

3.7 Entity Relationship Diagram (ERD)

shows the ERD that represent the relationship among tables in the database. For this Car

Rental System it’s contains five entities which are tblOwner, tblCar, tblBooking and tblUser.

The primary keys are ownerID, carID, bookID and userID. Each entities have their own

attributes. Each user can only make many booking on a car in a time. One car can have many

booking. Each owner can add more than one car into the system.

Figure 3.8: Entity Relation Diagram

32

3.8 Data Model

show owner table data store that have 6 attributes with ownerID as the primary key.

Table 3.1: data dictionary for table tblowner

Name Type Null Comment

ownerID Varchar (100) No Primary Key

Name Varchar(100) No

Ic_no Int(12) No

Address Varchar(100) No

username Varchar (100) No

password Varchar (100) No

No_phone Int (15) No

email Varchar(100) No

shows user table that have 6 attributes with userID as the primary key.

Table 3.2: data dictionary for table tblUser

Name Type Null Comment

userID Varchar (100) No Primary Key

Name Varchar (100) No

ic_no Int(12) No

Address Varchar(100) No

no_phone Int (15) No

Password Varchar(100) No

email Varchar(100) No

33

shows that car table that have 6 attributes with carID as primary key.

Table 3.3: data dictionary for table tblCar

Name Type Null Comment

carID Int(100) No Primary Key

carname Varchar (100) No

price Int(100) No

No_seat Int (20) No

Type Varchar(100) No

Varchar (20) No

shows that admin table that have 2 attributes with username as primary key.

Table 3.4: data dictionary for table tblAdmin

Name Type Null Comment

username Varchar(100) No Primary Key

password Varchar(100) No

34

hows that booking table that have 8 attributes with bookID as primary key and contains 2

foreign key which is carID from table car and userID from table user.

Table 3.5: data dictionary for table tblBooking

Name Type Null Comment

bookID Int(100) No Primary Key

date_start Varchar (100) No

date_end Int(12) No

time_start Int (15) No

time_end Int (15) No

carID Varchar (100) No Foreign key

reference car

userID Varchar (100) No Foreign key

reference user