Professional Documents
Culture Documents
Sistema Reserva Veiculo (Bom)
Sistema Reserva Veiculo (Bom)
UNIVERSITY
INSTITUTE OF
TECHNOLOGY
School of computing and Electrical
Engineering
Computer Science Program
Industrial Project I
Car Rent and Online Reservation System
For Budget Car Rent (BRC) Bahir-Dar
Branch
Group Members
NAME
IDNO
Nesredin Idris
1035/2001
Yonas Engida
1444/2001
Advisor: Worku K.
February 06, 2012
Acknowledgements
We would like to express our gratitude to our advisor for his insightful
comments and technical support to accomplish this paper successfully.
Table of Contents
Listoffigures..................................................................................................................................4
ListofTables..................................................................................................................................5
Abbreviations.................................................................................................................................6
Chapter1:Introduction................................................................................................................7
1.1.
Background..................................................................................................................................7
1.2.
ExistingSystem............................................................................................................................8
1.3.
1.4.
1.5.
ProposedSystem..........................................................................................................................9
ProjectScope...............................................................................................................................9
ObjectiveoftheProject................................................................................................................9
1.6.
Methodology................................................................................................................................9
2.1.
User Requirement......................................................................................................................11
2.2.
SystemRequirement...................................................................................................................14
2.3.
AnalysisModel...........................................................................................................................22
3.1.
3.2.
3.2.1.
3.3.
3.4.
DeploymentDiagram.................................................................................................................38
ArchitecturalDesign..................................................................................................................39
Class Diagram.......................................................................................................................39
UserInterface(UI)Design........................................................................................................40
Data Structure Design................................................................................................................45
1.1.1. Backgroundoftheorganization....................................................................................7
1.1.2. MissionandVisionoftheorganization.........................................................................7
1.2.1. Existingsystemfunction................................................................................................8
1.2.2. Problemsinexistingsystem...........................................................................................8
1.5.1. GeneralObjective..........................................................................................................9
1.5.2. SpecificObjective..........................................................................................................9
1.6.1. Datagatheringmethods................................................................................................9
1.6.2. DesignMethod.............................................................................................................10
Chapter2:SystemFeatures........................................................................................................11
2.1.1. FunctionalRequirement..............................................................................................11
2.1.2. NonFunctionalRequirements.....................................................................................13
2.2.1.UseCaseDiagram......................................................................................................14
2.2.2.UsecaseDescription...................................................................................................15
2.3.1. ActivityDiagram..........................................................................................................22
2.3.2. SequenceDiagram(SD)..............................................................................................31
3. Introduction.............................................................................................................................38
3.5AlgorithmDesign............................................................................................................................51
References.....................................................................................................................................54
AppendixA...................................................................................................................................55
Questionsaskedduringrequirementelicitationusinginterview...................................................55
AppendixB...................................................................................................................................56
List of figures
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
List of Tables
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Abbreviations
Chapter 1: Introduction
1. Introduction
This chapter of the project document which provides a general introduction about the
industrial project. The chapter contains and describes about background of the organization,
existing system functions and problems.
This chapter also describes about the proposed system, objective including the general and
specific objectives of the project, as well as the methodologies the we used for data gathering,
analysis and design.
1.1.Background
1.1.1. Background of the organization
Budget Rental car (BRC) organization is a private limited organization established under the
commercial law of Ethiopia and its head office is located in the capital city of Ethiopia. Owned
and Managed by an Ethiopian, with a great experience by working in Ethiopia.
This organization through time has extended its branches. Nowadays, it has four branches in
Ethiopia; these branches are located in Harar, Hawassa, Jimma, Bahir-Dar.
The organization has a total number of 52 employees, 28 in Addis Ababa, 8 in Bahir-Dar, 6 in
Hawassa, 5 in Harrar and 5 in Jimma. The organization has around 40 cars such as Pick up,
Cruiser, Mini Buses and Coasters.
We will consistently deliver a quality product, friendly service and great value that make
customersconfidentthatBudgetistheirbestcarrentalchoice.
1.2.Existing System
1.2.1. Existing system function
Budget Car Rental (BRC) organization gives car rental service for both foreign and local
customers. This organization carries out its daily work by providing; their service to the
customers using manually system. The organization uses a manual system for reserving,
renting, register and to keep record of all the rental activities and customer information. the
detailed existing system functions are listed as follows: During vehicle reservation the customers reserve a vehicle by making a phone
call to the organization; otherwise he/she is expected to go to the organization to
make reservation.
During renting a vehicle the customer personal information, payments status and
rent agreements are filled in the car rent agreement form(Appendix B); in order
to hold legal contract between the customer and organization for renting the
vehicle.
The organization normal work time schedule is from 1:30am 6:00pm; therefore
the organization gives services for ten and half hours a day.
The organization makes a general report about the rented vehicles once at the end
of the month and generates a report.
1.3.Proposed System
This car rent and online reservation system is developed to provide the following services.
1. Customer can reserve a vehicle online form anywhere in the world.
2. Every work process activity is done by computer means no need of hardcopy.
1.4.Project Scope
ThescopeofthisprojectisdevelopingwebbasedsystemforBRCcarrentorganization
onlyforBahirDarbranch.Thefunctionswhichcoverinthisprojectarewearefocusing
onmakingrentvehicleandonlinereserve.Customersaswellastheorganizationsstaff
willbeabletousethesystemeffectively.
1.6.Methodology
1.6.1. Data gathering methods
The method used for achieve the development of the project based on the exact need of the
organization and to meet their business procedure; we had applied or used two types of data
gathering methodologies. These methodologies are introspection and Interview.
1. Introspection
This method has been the primary base for the project. Therefore Using the current or
background knowledge and experience of the team, the team was able be to identify
and list out the common functionalities and requirements for the project. These helped
9
the team to proceed to the next level. Furthermore, it had been a bridge or cause for
other methodology to conduct them in proper method.
2. Interview
This methodology encapsulates two types of methods. These methods are closed and
open interview. So the team has selected an open interview for interviewing the
manager and employees for recognizing the existing working procedure of the
organization. So the team was able be to gather more information about the
organization and requirements (see appendix A).
10
2.1.1.
Functional Requirement
Functional requirements These are statements of services the system should provide, how the
system should react to particular inputs, and how the system should behave in particular
situations. It specifies the software functionality that the developers must build into the product
to enable users to accomplish their tasks. (Sawyer I. a.)
Reservation
1.
2.
3.
4.
11
Log in
13. The system should allow manager to login to the system using their username and
password.
14. The system should allow staff to login to the system using their username and password.
15. The system shall allow the manager to create new user account.
16. The system shall allow manager to change account password.
17. The system shall allow staff to change account password.
18. The system shall allow staff to logout.
19. The system shall allow manager to logout.
Vehicle
20. The system should allow staff to register new vehicles.
21. The system shall allow staff to select vehicles in the list.
22. The system shall allow customer to select vehicles in the list.
23. The system shall allow staff to Search vehicles by specific record.
24. The system shall allow customer staff to Search vehicles by specific record.
25. The system shall allow staff to update information of the vehicle in need of modification.
26. The system shall allow staff to display all lists of vehicle.
27. The system shall allow staff to display all available vehicle.
28. The system shall allow customer to display all available vehicle.
29. The system shall allow staff to display all rented vehicle.
30. The system shall allow staff to display all off duty vehicles.
Rent
31. The system shall allow staff to register customers into rental list.
32. The system shall allow staff to update about customer rent record details in the rental list.
33. The system shall be able to save all changes made on the customer rent list.
34. The system shall allow staff to select customer rent record by specific search category.
35. The system shall allow staff to search rent record of customers using specific categories.
36. The system shall allow staff to display customers, who rent vehicles.
37. The system shall allow staff to display all customers rent record
38. The system must provide printable summary for successful committed rent.
12
2.1.2.
Non-Functional Requirements
Introduction
Non-functional requirements, as the name suggests, are requirements that are not directly
concerned with the specific services delivered by the system to its users. They may relate to
emergent system properties such as reliability, response time, and store occupancy.
Alternatively, they may define constraints on the system implementation such as the
capabilities of I/O devices or the data representations used in interfaces with other systems.
Non-functional requirements, such as performance, security, or availability, usually specify or
constrain characteristics of the system as a whole. .
Usability
The system provides a help and support menu in all interfaces for the user to
interact with the system.
The user can use the system by reading help and support.
Security
The system provides username and password to prevent the system from
unauthorized access.
The staffs password must be greater than eight characters.
Performance
The system response time for every instruction conducted by the user must not
exceed more than a minimum of 10 seconds.
The system should have high performance rate when executing users input and
should be able to provide response with in a short time span usually 50 second for
highly complicated task and 20 to 25 seconds for less complicated task.
Availability
The system should always be available for access at 24 hours, 7 days a week. Also
in the occurrence of any major system malfunctioning, the system should be
available in 1 to 2 working days, so that business process is not severely affected.
13
2.2.System Requirement
Figure1Usecasediagram
14
1. Use-case Login
Table1:UseCaseLogin
Use-case
UC-01
Number
Use-Case Name Log in
Priority
High
Actor
Staff
Description
This use case describes how Staffs to login into the BRC System.
Precondition
None
Post-condition
If the use case was successful, the actor is now logged into the BRC
system. If not, the system state is unchanged.
Basic course of
User Action
System Response
Action
1. The staff is on the home page to 2. The system promotes the staff to
login to the system.
enter Username, Password.
4. The system verifies that all the
3. The staff enters username and
filled have been filled out and
password, Click on Login
valid.
Button.
5. The system successfully logged in
the system.
6. Use case Exit
Alternate course 6.1 If all fields are not filled out and not matched to the username and
of Action
password the system notifies the actor a message Verify Username or
Password and then goes back or returns to step 4 of basic course of Action
to enter again.
15
Action
Alternate course
of Action
4. Rent Registration
Table 3: Use Case - Rent Registration
Use-case Number
Use-Case Name
Priority
Actor
Description
Precondition
Post-condition
Basic course of
Action
Alternate
UC-03
Rent Registration
High
Staff
This use case permits to register rental information of the customers and
the vehicle that the customer rents.
UC-1
Customer rent information
User Action
System Response
1. The customer wants to take the
3. The system displays a form
reserved vehicle.
to be filled out for renting the
2. The staff open rent page.
vehicle.
4. The system prompts to enter
4.The staff enters Full name,
the following information.
Nationality, Country, City,
6. The system verifies that
Identification Number, Phone, Plate
basic fields have been filled
No, Down Payment, Daily Price, Rent
out.
Date, Return Date, Total Rent Day,
7. The system displays
Total Payment, Refund
successful rent summary
5. The staff clicks on rent button.
8. Use case Exit.
6.1 If Full name, Nationality, country, City, Id/Passport, Phone, Car Plate
16
course of
Action
No, Down Payment, Price/day, Rent Date, Return date and Total Payment
this fields are not filled out system goes back or returns to step 4 of basic
course of Action. To fill invalid field.
5.Vehicle Registration
Table4:UseCaseVehicleRegistration
Use-Case Number UC-04
Use-Case Name
Vehicle Registration
Priority
High
Actor
Staff
Description
These use case permits staff to register New Vehicles to the system with
detail descriptions about the Vehicle such as condition, Model, Brand,
fuel type, Number of sits and amount of price per day.
Precondition
New vehicle Purchased
Post-condition
New Vehicle information stored successfully.
Basic course of
Action
Alternate course
of Action
User Action
System Response
1. The staff wants to add a new vehicle 3. The system response or
2. The staff requests add new vehicle
displays a form to be filled out
form page.
for vehicle registration.
6. The system verifies that the
4. The staff enters the following
fields have been filled out
information in the form.
correctly.
Vehicle Brand, Vehicle Type, Vehicle
7. The system displays a
Model, Fuel Type, Plate Number,
successfully stored message to
Number of Sits, Condition, Price per
the employee.
day
8. Use case Exit
5. The staff clicks or presses on the
save or insert button.
6.1 If all fields are not filled out the system goes back or returns to step 4
of basic course of Action. To fill the invalid or the empty field.
17
6. Search Vehicle
Table5:UseCaseSearchVehicle
Use-Case
Number
Use-Case Name
Priority
Actor
Description
Precondition
Post-condition
Basic course of
Action
Alternate course
of Action
UC-05
Search Vehicle
Medium
Staff and customer
This use case permits staff and customer to search vehicle from the
vehicle list in order to display.
UC-3, UC-2
Display
User Action
System Response
1. The staff or Customers clicks on 2.The system displays combo box to
search vehicle link.
select search to a vehicle.
3. The staff or customers select one 4. Then the system display all
of the following lists from the information about the vehicle based
combo Box, Vehicle Brand. Vehicle on selected list.
Type. Vehicle Model or default is 6. Use case End.
All.
Clicks on search button.
4.1 If any lists are not selected from the combo box system goes back or
returns to step 3 of basic course of Action to select from the combo box.
7. Update Vehicle
Table6:UseCaseUpdateVehicle
Use-Case Number
Use-Case Name
Priority
Actor
Description
Precondition
Post-condition
Basic course of
Action
Alternate course of
Action
UC-06
Update Vehicle
High
Staff
This use case permits staff to update or modify vehicle information.
UC-1, UC-5,
updated vehicle information
User Action
System Response
1. The user wants to update vehicle 3. The system will display all
information.
information about the vehicle.
2. Search vehicle by plate number.
6. The system successfully updates
4. The staff enters update
information in to database.
information of vehicle.
7. Use case Ends.
5. The employee click on update
button.
3.1 If vehicle is not found back to basic course of action 2
18
8. View Vehicle
Table7:UseCaseViewVehicle
Use-Case Number
Use-Case Name
Priority
Actor
Description
Precondition
Post-condition
Basic course of
Action
Alternate course of
Action
UC-07
View Vehicle
Medium
Staff and customer
This use case allows staff and customer to view or display all vehicles
with their detail description about the vehicle.
Vehicle Rent, Reserve
Views all vehicles
User Action
System Response
1. The staff or Customer wants
3. The system retrieves all
view vehicle.
information about the vehicles.
2. The staff or customer click on
4. Use case exit.
view vehicles button.
3.1 If in the database no matched vehicle available or empty go to
Basic course action of 4.
9. Update Rent
Table8:UseCaseUpdateRent
Use-Case Number
Use-Case Name
Priority
Actor
Description
Precondition
Post-condition
Basic course of
Action
Alternate course of
Action
UC-08
Update Rent
High
Staff
This use case permits employee to update or modify Rent information
incase when there is a need for editing
Need to Change information
Successful Update Message
User Action
System Response
1. Staff wants to update rent.
4. The system displays the rent
2.Open the rent page
information.
3. Search by unique attribute which
7. The system validates updated
is give to customer during rent.
information and saves updated
5.The Staff update the information
information in to database.
6. Click on update button.
8. Exit use case.
4.1 If match is not found go back to basic course of action 3.
7.1if the entered information is invalid the system back to basic course
of action 5
19
10.
Cancel Reservation
Table9UsecaseCancelReservation
Use-Case
Number
Use-Case Name
Priority
Actor
Description
Precondition
Post-condition
Basic course of
Action
Alternate course
of Action
11.
UC-09
Cancel a Reservation
Medium
Customer
This use case permits a customer to cancel a reservation.
Customer already has reserved and wants to cancel the reservation
Customer successfully cancel a vehicle
User Action
System Response
1. The customer wants to cancel
3.The system displays a form
reservation
5. The system verifies the field
2. The customer opens reservation
has been filled out correctly and
page and clicks cancel reservation
checks validity of confirmation
link
number, then popup a message to
verify the canceling.
4. The customer enters reservation
7. The system cancels the
confirmation number and clicks
reservation and display a message
cancel reservation button.
the reservation is canceled.
6. Are you sure you want to cancel,
8.use case Exit
the customer clicks Yes button.
5.1 If the customer enters invalid number system goes back or returns to
step 4 of basic course of Action. To fill invalid or the empty field again.
6.1 If the customer clicks NO reservation canceling will be terminated.
View Reservation
Table10:UseCaseViewReservation
Use-Case Number
Use-Case Name
Priority
Actor
Description
Precondition
Post Condition
Basic Course of
Action
UC-10
View Reservation
Medium
Staff
These use case allow staff to view or display customer reservation.
UC-1
Display all reservations
User Action
System Response
1. The staff wants to view
3. The system responds the requested
reservation.
page.
2. The staff requests the
5. The system puts on view or
reservation Page.
displays all reservation information
4. Then on reservation page the
to the employee.
employee clicks view button. 6. Use case ends
Alternate course of 5.1 If reservation not found system goes to basic course of action 6.
Action
20
12.
Generate Report
Table11:UseCaseGenerateReport
Use-Case Number
Use-Case Name
Priority
Actor
Description
UC-11
Generate Report
High
Manager
These use case allow Manager of the organization to generate a report
about the renting information of a month.
Precondition
Manager wants to see report
Post Condition
Generate monthly Report Information
Basic Course of
User Action
System Response
Action
1. The Manager wants to generate report.
3. The system responds
2. The Manager clicks rent pages.
the requested page.
5. Then on the rent page the Manager specifies 7. Use case ends
the month and then clicks on the generate
button.
Alternate course of
7.1 If the reservation information is empty or not found go to 8.
Action
13.
Logout
Table12:UseCaseLogout
Use-Case Number
Use-Case Name
Priority
Actor
Description
UC-12
Log out
High
Staff
These use case allow Staff to log out from the system at a time of
accomplishing their work.
Precondition
UC-1
Post Condition
System logs out
Basic Course of Action
User Action
System Response
1. The Staff or
3. The system responds to the requested
manager wants to
action.
log out
4. The system displays a message that the
2. The Staff or
Staff or manager logged out from the
manager clicks the
system.
log out button
5. Use case Ends
21
2.3.Analysis Model
2.3.1.
Activity Diagram
An activity diagram is a variation of a state machine in which the states represent the
performance of actions or sub activities and the transitions are triggered by the completion of
the actions or sub activities. It represents a state machine of a procedure itself.
Figure2:ActivityDiagramLogin
22
Figure3:ActivityDiagramReserveaVehicle
23
Figure4:ActivityDiagramRentRegistration
24
Figure5:ActivityDiagramVehicleRegistration
25
Figure6:ActivityDiagramSearchVehicle
26
Figure7:ActivityDiagramUpdateVehicle
27
Figure8:ActivityDiagramViewVehicle
28
Figure9:ActivityDiagramUpdateRent
29
Figure10:ActivityDiagramCancelReservation
30
2.3.2.
Figure11:SequenceDiagramLogin
31
Figure12;SequenceDiagramVehicleReservation
3. Sequence Diagram Rent Registration
Figure13:SequenceDiagramRentRegistration
32
Figure14:SequenceDiagramVehicleRegistration
5. Sequence Diagram Search Vehicle
BRC: Database
Staff, Customer
Figure15:SequenceDiagramSearchVehicle
33
Figure16:SequenceDiagramUpdateVehicle
34
Figure17:SequenceDiagramViewVehicle
8. Sequence Diagram Cancel Reservation
Figure18:SequenceDiagramCancelReservation
35
Figure19:SequenceDiagramUpdateRent
36
10.
Figure20:SequenceDiagramViewReservation
11.
Figure21:SequenceDiagramGenerateReport
37
3.1.Deployment Diagram
Deployment diagrams show the configuration of run-time processing elements and the
software components, processes, and objects that live on them. Software component instances
represent run-time manifestations of code units.
Figure22:DeploymentDiagram
38
3.2.Architectural Design
Asoftwaresystemisasetofcommunicatingentitiesthatcollaboratestoperformtask.The
architecturalDesignisatopleveldesignwhichshowstheseentities,theirrelationships.
Andweusetodescribeorshowarchitecturaldesignusingclassdiagram.
3.2.1.
Class Diagram
This section discusses classes and their variations, including templates and instantiated
classes, and the relationships between classes association and the contents of classes
(attributes and operations).
Class diagrams show the static structure of the model, in particular, the things that exist (such
as classes and types), their internal structure, and their relationships to other things.
Figure23:ClassDiagram
39
Figure24:UIHome
40
(B) UI-Reservation
These is the external user interface for reserving vehicle, the customers prompt to fill
their Full name, Nationality, Mobile Number and after filling personal information
they prompt to select the vehicle type, Pick up date and Return date.
41
Figure25:UIReservation
Figure26:UIViewVehicle
\
42
Figure27:VehicleRegistration
43
Figure28:UIRentRegistration
(F) UI- Search Vehicle
44
Figure29:UISearchVehicle
3.4.
DatastructuredesigndescribesaboutdatamodelingandinthispartEntityRelational
Diagram,relationalmapping,andnormalizationaredescribed.
3.4.1.
Theentityrelationshipdiagramdescribestherelationshipbetweenentities,cardinalityand
theirattributes.
Figure30:EntityRelationshipDiagram(ERD)
45
3.4.2.
Entity Description
Inhereweprovideadescriptionofentitieswithalltheirattributes.Describingentityname,
businessdefinitionfortheentitiesandthereattributeanddomain.
Table13:EntityDescription
EntityName
Employee
Customer
Vehicle
Reservation
Rent
Businessdefinition
ThisentityisresponsibletostoreEmployeeinformationinthedatabase.
Attributestorescustomersdetailsinformationinthedatabase,inorderto
identifythecustomer.
Thisentityisstorestheinformationofthevehicleinthedatabase.
Thisstoresinformationaboutthereservationsmadebyacustomer.
Thisstoresrentalinformationofthevehicle,payments
46
3.4.3.
Relational schema
Employee
EmpI
d
Fname
Mname
Lname
Country
City
ResPhone
MobileNumbe
r
Salary
HireDate
Responsiblity
MEMPID
Customer
CustomerId
Fname
Mname
Lname
IdentificationNumber
Nationality
Country
City
MobileNumbe
r
Vehicle
PlateNumbe
r
Brand
Type
Model
SeatQuantity
FuelType
Condition
DailyPrice
EMPID
Reservation
ReservationId
ReservationDate
PickupDate
ReturnDate
PN
CID
Rent
RentI
d
RentDat
e
ReturnDat
e
TotalRentDa
y
DailyRentalFe
e
FuelProvidedB
y
FuelCharg
e
DownPaymen
t
TotalPai
d
Refun
d
P
N
CI
D
EI
D
Figure31:RelationalMapping
47
RSI
D
3.4.4.
Normalization
Normalization is a process that aims at achieving better designed relational database schemas
through the user of semantic information given by Functional dependencies and Primary keys,
Normalization process takes a relational schema through a series of tests to certify whether it
satisfies conditions. The schemas that satisfy certain condition are said to be in a given
NORMAL FORM and unsatisfied schema are decomposed by breaking up their attributes
into smaller relations that posses desirable properties. Normalization allows us to organize
data that it allows fast access and reduced space. (Elmasri; FUNDAMENTALS OF
DATABASE SYSTEMS, 2003).
Employee
Table14:NormalizationTables
EmpI
d
Fnam
e
Mnam
e
Lnam
e
Countr
y
Cit
y
ResPhon
e
MobileNumbe
r
Mname
Lname
IdentificationNumber
Salar
y
HireDat
e
Responsiblit
y
MEMPID
Customer
CustomerId
Fname
Nationality
Country
City
Customer_Info
CustomerId
Mobile Number
Vehicle
PlateNumber
Bran
d
Type
Model
SeatQuantity
FuelType
Condition
DailyPrice
EMPID
Reservation
ReservationI
d
ReservationDat
e
PickupDat
e
ReturnDat
e
PN
CID
Rent
RentI
RentDat
ReturnDat
TotalRentDa
DailyRentalFe
FuelProvidedB
FuelCharg
DownPaymen
TotalPaid
Refun
CI
48
EI
RSI
Employee
Data type
Varchar
Varchar
Varchar
Varchar
Varchar
Varchar
int
int
float
Date
Varchar
Varchar
Length
50
50
50
50
50
50
50
50
Type of attribute
Primary Key
Foreign key
Table16:PDMCustomerTable
Table Name
Attribute
CustomerId
Fname
Mname
Lname
Country
City
Nationality
IdentificationNumbe
r
Customer
Data type
Varchar
Varchar
Varchar
Varchar
Varchar
Varchar
Varchar
Varchar
Length
50
50
50
50
50
50
50
50
Type of attribute
Primary Key
Table17PDMCustomerInfoTable
Table Name
Attribute
CustomerId
MobileNumber
CustomerInfo
Data type
Varchar
int
Length
50
Type of attribute
Foreign Key
Primary Key
49
Table18:PDMVehicleTable
Table Name
Attribute
PlateNumber
Brand
Type
Model
NumberofSeat
FuelType
Condition
DailyPrice
EMPID
Vehicle
Data type
Varchar
Varchar
Varchar
Varchar
int
Varchar
Varchar
float
varchar
Length
50
50
50
50
Type of attribute
Primary Key
10
20
50
Foreign Key
Table19:PDMReservationTable
Table Name
Attribute
ReservationId
ReservationDat
e
PickupDate
ReturnDate
PN
CID
Reservation
Data type
Varchar
Date
Date
Date
varchar
Varchar
Length
50
50
50
Type of attribute
Primary Key
Foreign Key
Foreign Key
Table20:PDMRentTable
Table Name
Attribute
RentId
RentDate
ReturnDate
TotalRentDay
DailyRentFee
FuelProvidedB
y
FuelCharge
Rent
Data type
varchar
Date
Date
int
int
varchar
varchar
Length
50
Type of attribute
Primary key
10
10
30
10
50
DownPayment
Total paid
Refund
PN
CID
RSID
Float
Float
Float
varchar
Varchar
Varchar
10
10
10
50
50
50
Foreign Key
Foreign Key
Foreign Key
Pseoudocodereservingvehicle
Steps/procedure
Methodname=reservevehicle
Begin
Variablesplatenumber
pickupdate
reservationdate
reservationid
customerid
If(*variablesarevalid*)
Then
Addtotablereserve(platenumber,pickupdate,reservationdate,reservationid
customerid)
Otherwise
Displaytheinputsareinvalid!
Endif
Displaytheconformationnumber
End
Pseoudocodeforrentvehicle
Steps/procedure
Methodname=rentvehicle
Begin
Variablesplatenumber
rentdatetotalpaid
returndaterefund
totalrentdayrentid
dailyrentfeecustomerid
fuelprovidedbyemployeeid
downpayment
If(*variablesarevalid*)
Then
51
Addtotablerent(rentdate,totalpaid,returndate,refund,totalrentday,rentid,
dailyrentfee,customerid,fuelprovidedby,employeeid,downpayment)
Otherwise
Displaytheinputsareinvalid!
Endif
End
Pseoudocodeemployeeforregistration
Steps/procedure
Methodname=employeeregistration
Begin
Variablefullname
address
employeeid
username
password
If(*inputsarevalid*)
Then
Addtotableemployee(fullname,address,employeeid,username,password)
Otherwise
Displayinputsarenotvalidtryagain!
Endif
End
Pseoudocoderegistervehicle
Steps/procedure
Methodname=registervehicle
Begin
Variablesbrand
model
platenumber
numberfeat
fueltype
condition
dailyprice
If(*variablesarevalid*)
Then
Addtotablevehicle(brand,model,platenumber,numberfeat,fueltype,condition,
Dailyprice)
Otherwise
Displayinputsareinvalid
Endif
End
52
Pseoudocodeforlogin
Steps/procedure
Methodname=login
Begin
Variables:username
password
If(*inputsarevalid*)
(*selecttheprevioususernameandpasswordfromdatabaseandcomparewithentered*)
Ifusername=enteredusernameand
Password=enteredpassword
(*gotologinpage*)
Otherwise
Displayloginerror!
Endif
Otherwise
Displayinputsareinvalidtryagain!
Endif
End
53
References
Elimasir.(3343).database.azxa.
Elmasri,R.
FUNDAMENTALSOFDATABASESYSTEMS.(2003).
jacobson,G.i.(2003).Applyingusecases.
Sawyer,I.a.RequirementEngineeringagoodPractice.
Sawyer,S.&.RequirementEnginering.
Will,T.(2009).SSD.
54
Appendix A
Questions asked during requirement elicitation
using
interview
Q1.Whatmakesyourorganizationdifferentfromotherorganizationwhorentsacar?
Q2.Whatistheobjectivesofyourorganization?
Q3.Whatisthemissionofyourorganization?
Q4.Howmanybranchesdoesyourorganizationhave?
Q5.Howmanyemployeesdoyouhave?
Q6.Howdoesyourcurrentsystemwork?
A.Isitmanual?
B.isitcomputerized?
C.isitsemicomputerized?
Q7.Ifyouranswerforquestionnumber6ischoiceborcwhatcomputerapplicationsdo
youuse?
Q8.Howmanycarsdoyouhave?
Q9.Whatkindsofcarmodelsdoyouhave?
Q10.Whatistheproceduresorstepswhenacustomerrentsacar?
Q11.Whatqualificationsareexpectedfromacustomerwhowantstorentacar?
Q12.Wheredoyoukeepcustomerandrentalinformations?
Q13.Howdoyoukeeptrackofwhichcarsarerentedandwhicharenot?
Q14.Howmanycarsaclientcanrentatatime?
Q15.Howdoyougeneratecustomerandrentalinformations?
55
Appendix B
56