Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
The main objective of the application car Rental System require a temporary vehicle, for
example those who do not own their own car, or owners of damaged or destroyed vehicles who
are awaiting repair or insurance compensation or travelers who are out of town.
A car rental, hire car, or car hire agency is a company that rents
automobiles for short periods of time, generally ranging from a few hours to a few weeks. It is
often organized with numerous local branches (which allow a user to return a vehicle to a
different location), and primarily located near airports or busy city areas and often complemented
by a website allowing online reservations. Car rental agencies primarily serve people who
require a temporary vehicle, for example, those who do not own their own car, travelers who are
out of town, or owners of damaged or destroyed vehicles who are awaiting repair or insurance
compensation. Car rental agencies may also serve the self-moving industry needs, by renting
vans or trucks, and in certain markets, other types of vehicles such as motorcycles or scooters
may also be offered. Alongside the basic rental of a vehicle, car rental agencies typically also
offer extra products such as insurance, global positioning system (GPS) navigation systems,
entertainment systems, mobile phones, portable Wi-Fi and child safety seats.
CHAPTER 2
SPECIFICATIONS
Client side:
Server side:
Client side:
Server side:
● View all available rental cars: Connects with the database through php to call all car objects
and display them accordingly
● Select their desired rental cars: Click on the desired car for booking
● Allow the user select and provide a payment type: Display form - with options for typical card
information - type, number, code on back, month, year etc.
● Authenticate any user logging in: communicates with the database to verify the inputted
username and password is correct
● Allow administrators to change what cars are available for rent: Administrators will log in
through the log in display form such as customers would, but would have a different looking
interface to allow for them to add and remove options.
● Allow administrators to add cars: Administrators can add new cars through admin login
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. The subsystem should provide
a high level of security and integrity of the data held by the system, only authorized personnel of
the company can gain access to the company’s secured page on the system and only users with
valid password and username can login to view user’s page.
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 user’s
input and should be able to provide response within 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.
CHAPTER: 3
SYSTEM DESIGN
E-R DIAGRAM
SCHEMA DIAGRAM
CHAPTER: 4
IMPLEMENTATION
4.1 Introduction:
The goal of coding or programming phase is to translate the design of the system. Produced
during the design phase into code in a given programming language, which can be executed by a
computer and that performance the computation performed by the Design.
It is impossible to provide an exhaustive list of what to do and not to do produce simple readable
code. List some general rules that usually apply.
• Names: Selecting module and variable name is often not considered as important by invoice
programmers. Most variable in program reflect some process. Variable name should be closely
related to the entity they represent and module name should be reflected by their activity.
• Control construct: It is desirable to use a few standards control construct rather than using a
wide variety of constructs, just because of their available in the language.
• User defined types: Modern languages allow user to define types like enumerate type. When
such facilities are available, they should be exploited where applicable.
• Module size: A programmer should examine any routine with very few statements or too many
statements. Large modules often will not be functionally cohesive, and too small modules might
incur unnecessary overhead.
• Indentation: Indentation styles assist in identifying control flow and blocks of code. In some
programming languages, indentation is used to delimit logical blocks of code; correct indentation
in these cases is more than a matter of style. In other languages, indentation and white space do
not affect function, although logical and consistent indentation makes code more readable.
INSERT INTO `admin` (`admin_id`, `uname`, `pass`) VALUES (1, 'admin', 'admin');
INSERT INTO `cars` (`car_id`, `car_name`, `car_type`, `image`, `hire_cost`, `capacity`, `status`)
VALUES
(1, 'Mercedes Benz', 'Mercedes Benz', 'car1.jpg', 20000, 5, 'Available'),
(2, 'Range Rover', 'LandRover', 'car2.jpg', 30000, 6, 'Available'),
(3, 'Harrier', 'Toyota', 'car3.jpg', 20000, 6, 'Available'),
(5, 'LandCruiser V8', 'LandCruiser ', 'images (2).jpg', 20000, 5, 'Available'),
(6, 'Security Vehicles', 'Hammar Cars', 'sonkort2.png', 30000, 8, 'Available'),
(7, 'Wedding Limousine', 'Wedding Limousine', 'images (3).jpg', 50000, 10, 'Available');
INSERT INTO `client` (`client_id`, `fname`, `email`, `id_no`, `phone`, `location`, `gender`,
`car_id`, `status`, `mpesa`) VALUES
4.6.1 QUERIES
2. Retrieve all the details of cars with car id less than 9 sort by car id.
4. Retrieve the car id, name and type having car id=3.
<?php
$host = "127.0.0.1:3307";
$user = "root";
$pass = "";
$db = "cars";
$conn = new mysqli($host, $user, $pass, $db);
if($conn->connect_error){
echo "Failed:" . $conn->connect_error;
}
?>
XAMPP server
Language Used
Front End(User Interface) HTML 5 , AJAX,JQUERY,JAVASCRIPT, BOOTSTRAP
Server Language PHP 5.5
4.6.3 Triggers
A database trigger is procedural code that is automatically executed in response to certain events
on a particular table or view in database. The trigger is most used for maintaining the integrity of
the information on the database. For example, when a new record is added to the patient table, if
he needs room, room table is automatically updated. Triggers can also be used to log historical
data, for example keeping track of patient and their medical history.
{CREATE | RECREATE | CREATE OR ALTER} TRIGGER name FOR {table name | view
name}
{ACTIVE | INACTIVE}
{BEFORE | AFTER}
{INSERT [OR UPDATE] [OR DELETE] | UPDATE [OR INSERT] [OR DELETE] |
[POSITION n] AS BEGIN
…….
END
The below code explains the trigger concept which has been used in our project Create trigger if
any client is inserted , deleted or updated automatically their client_id is inserted into another
table called logs.
4. After inserting new values into client automatically client_id is stored in logs table.
Chapter 5
CHAPTER 6
CONCLUSION
Thus we have studied about aps.net by performing project on online car booking in which we
have studied various controls available in aps.net such as label buttons list box etc. This project
is very useful for getting information about the car of different manufacture because now a day’s
no one have time to visit that places so visiting this website we get information about the
different cars and get the value for money. This project is designed in such way that normal
person means not a computer literature person can also handle it easily.
CHAPTER 7
REFERENCES
4. Triggers : https://stackoverflow.com/