Visvesvaraya Technological University: "Car Rental Management System"
Visvesvaraya Technological University: "Car Rental Management System"
Certificate
Certified that the Database Management Systems mini project entitled “Car Rental Management
System” is a bonafide work carried out by Amogh S Kanade (1AY18CS142) of 5th semester in
partial fulfillment for the award of degree of Bachelor of Engineering in Computer Science &
Engineering of the Visvesvaraya Technological University, Belagavi, during the year 2020-
2021. It is certified that all corrections/ suggestions indicated for internal assessments have been
incorporated in the Report deposited in the departmental library. The Mini Project report has been
approved as it satisfies the academic requirements in respect of Mini Project work prescribed for
the Bachelor of Engineering Degree.
1.
2.
ABSTRACT
Our Aim is to design and create a data management System for a car rental company. This enables
admin can rent a vehicle that can be used by a customer. By paying the money during a Specified
Period of time. This system increases customer retention and simplify vehicle and staff
Management in an efficient way.
This software car Rental System has a very user friendly interface. Thus the
users will feel very easy to work on it. By using this system admin can manage their rental,
payment, employment issues and vehicle issues such as and insurance. The car information can be
added to the system. Or existed car information can be edited or deleted too by Administrator. The
transaction reports of the car rental system can be retrieved by the admin, when it’s required. Thus,
there is no delay in the availability of any car information, whenever needed, car information can
be captured very quickly and easily.
The customers can also use the system to get car rent. The customer should
create a new account before logging in or he / she can log into the System with his/her created
account. Then he/she can view the available cars in a branch and make a reservation for a Car.
This system will helpful to the admin as well as to the customer also.
ACKNOWLEDGEMENT
I express my gratitude to our institution and management for providing us with good
infrastructure, laboratory, facilities and inspiring staff whose gratitude was of immense help in
completion of this seminar successfully.
I express my sincere gratitude to our principal, Dr. Prakash M R for providing required
environment and valuable support for developing this mini project.
My sincere thanks to Dr. Prashanth C M, Head of the Department, Computer Science and
Engineering, Acharya Institute of Technology for his valuable support and for rendering us
resources for this mini project work.
My gratitude thanks should be rendered to many people who helped me in all possible ways.
Chapter 2: Specification 02
Chapter 4: Implementation 07
4.1 Introduction 07
4.6.1 Queries 13
4.6.3 Triggers 16
Chapter 6: Conclusion 25
Chapter 7: References 26
Car Rental Management System 2020-2021
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.
• Robustness: A program is robust if it does something plan for exceptional condition. A program
might encounter exceptional condition in such form as incorrect input the correct value of some
variable and over flow. A program should try to handle such situation. In general, a program should
check for validation where possible, and should check for possible overflow of data structure.
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
(2, 'Kiran', '[email protected]', 30073147, 705053484, 'nairobi', 'Male', 1, 'Approved',
'GTD45H7H6'),
(3, 'Sharan', '[email protected]', 27695131, 707403614, 'kisii', 'Male', 2, 'Approved',
'DJFL870FDK9'),
(4, 'amogh', '[email protected]', 1234567, 717056766, 'narok', 'Male', 2, 'Approved',
'HJHK678X');
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