You are on page 1of 29

A MINI PROJECT REPORT

ON
CAR RENTAL SYSTEM

Submitted to Mumbai University


In the partial fulfillment of the requirement for the award of the degree of

Bachelor of Engineering
In
COMPUTER ENGINEERING
By
Mr. / Mrs. SIDDIQUE ZEESHAN AZAM
(17CO50)

Under the guidance of


Mr. Shaikh Abdul Salam
Assistant Professor

Department of Computer Engineering


Anjuman-I-Islam’s Kalsekar Technical Campus
Affiliated to Mumbai University
KHANDA GOAN, NEW PANVEL, NAVI MUMBAI, MAHARASHTRA
2019-2020
Department of Computer Engineering
Anjuman-I-Islam’s Kalsekar Technical Campus
Affiliated to Mumbai University
KHANDA GOAN, NEW PANVEL, NAVI MUMBAI, MAHARASHTRA
2019-2020

DECLARATION BY THE CANDIDATE

SIDDIQUE ZEESHAN AZAM bearing Roll number: 17CO50, hereby declare that the
mini project report entitled “CAR-RENTAL SYSTEM”, is a record of bonafide work carried out
by me and the results embodied in this project have not been reproduced or copied from any source.
The results of this project report have not been submitted to any other University or Institute for the
award of any other Degree or Diploma.

Siddique Zeeshan Azam


( 17CO50 )
Department of Computer Engineering
Anjuman-I-Islam’s Kalsekar Technical Campus
Affiliated to Mumbai University
KHANDA GOAN, NEW PANVEL, NAVI MUMBAI, MAHARASHTRA
2019-2020

CERTIFICATE

This is to certify that the project report entitled “CAR-RENTAL SYSTEM”, submitted by Mr./
Mrs. SIDDIQUE ZEESHAN AZAM , bearing Roll. No.: 17CO50 in the partial fulfillment of the
requirements for the award of the degree of Bachelor of Computer Engineering is a record of
bonafide work carried out by him/her for the course WEB DESIGN LAB – CSL504.

Course Owner

(Prof. Shaikh Abdul Salam)


INDEX
CONTENTS

CHAPTER 1: INTRODUCTION
1.1 Introduction………………………………………….….….…00
1.2 Scope………………………...……………….…………..…..03
1.3 Problem Statement……..……….......................................03

CHAPTER 2 SYSTEM SPECIFICATION


2.1 System Requirement……………..…………….…….………26

CHAPTER 3: SYSTEM DESIGN


3.1 Relational Model…………...………………………………. 47
3.2 Modules in the System………...………….………………. 47

CHAPTER 4: IMPLEMENTATION
4.1 Code ………...………..…..……….…….……………...........50
4.2 Output / Screen Shots…...……………………………..……70

CHAPTER 5: CONCLUSION
5.1 Conclusion….…………………………………………….…..75

REFERENCES…………………………………………………………………….10
CHAPTER 1

INTRODUCTION
1.1 INTRODUCTION:

1. Project Overview
We aim to become a pioneer in the vehicle rental industry by completely
focusing on customers, our employees, growth, innovation and efficiency. All of these elements
will drive us towards success and show us as one company that can perform and give value for
money.

When it comes to cab rental services, Cool Service is the most trusted and reliable name in the
travel business. The most advanced travel agents offering cab rental and car hire in India, making
full use of information technology to improve the level of our efficiency. However, this is only one
aspect of services. And this project continually strive to offer the best of services - both in terms of
man and machine, to our clients
Moreover, this project has a fleet of cars ranging from luxury to budget cabs. While, it offers online
cab hire service for corporate houses. And this project claim to offer the best of rates, which are
tailor-made depending upon the facilities, availed and offer both intercity and intra-city cab
facilities. All cabs have proper permits and documentation so that the clients couldn't be hassled for
the lack of documents. However, this project has strategic backup system for any eventuality. Cab
drivers are educated, polite, and reliable and are trained to handle acute breakdowns. The cab
service includes all categories of cars from luxury to budget.
Further, this project’s utmost priority is quality. To achieve this, vehicles are well maintained and
tested for delivering optimum and uninterrupted performance. Team of professionals in the travel
business enables this system to design trips that suits to all budgets and preferences of the travelers.
In addition, workforce including drivers and administrative staff are well trained to discharge their
duties with a lot of efficiency.
Modules of the Projects:
 Admin module
 HR module
 Maintenance module
 Movement module
 Finance module
 Quality Assurance module

1.2 SCOPE:
CROP MANAGEMENT SYSTEM is a project developed to build a website which will help
farmers from to sell their products to different cities through online. Farmers can use this facility
and can learn how is it possible and how they can use e-farming to sell their products.
The agricultural information system provides its users and researches to get online information
about, the crop, statistical details and new tendencies. The trends of the crops act so that these will
be pretty important to the users who access these via the Internet. The main features of the
information system includes information retrieval facilities for users from anywhere in the form of
obtaining statistical information about fertilizer, research institutes and researches, land availability,
diseases, suitable soil concentration for the corresponding crops, statistical information about
exports and etc. In addition this provides individual information about Intercrops related to main
crops.

JDBC was used to create the connectivity for the system and MYSQL was used for the back

end. The back end MYSQL Server Database using embedded MYSQL Queries for the

insert,delete,retrieval and update.. They will be able to use this via Internet. Buyer & Farmer

will be give login name and password so that they can log-in to the database.
1.3 Problem Statement:
LooKBooK Car Rental System is an innovative thought to simplify the Transportation problems of
Employees of an organization. In the present System, Organization do maintain a person for the
allocating and proper functioning of transportation .The Person appointed needs to look after the
assigning and movement of cabs.Authorised person maintains the transportation details in papers,
which is a tedious task if any updations or changes need to be done.
 Details are stored in Papers.
 Maintenance is a huge problem.
 Updation, changes in details is a tedious task.
 Performance is not achieved up to the requirements.

CHAPTER 2
SYSTEM SPECIFICATION
2.1 System Requirement :

We aim to become a pioneer in the vehicle rental industry by completely focusing on


customers, our employees, growth, innovation and efficiency. All of these elements will drive us
towards success and show us as one company that can perform and give value for money. This
Service will make A manager to think of whether the transportation is expensive and
maintaining quality or not.

2.1.1) Hardware Requirements

 P4 2.8GB processor and above.


 Ram 512 MB and above.
 HDD 20 GB Hard Disk and above.

2.1.2) Software Requirements

 Microsoft .Net framework 2.0


 Microsoft ASP.Net, HTML
 AJAX Tool kit.
 Microsoft C#.Net language
 Microsoft SqlServer 2000 and above.
CHAPTER 3

SYSTEM DESIGN
3.1 Relational Model:

The relational model represents the database as a collection of relations. A relation is nothing but a
table of values. Every row in the table represents a collection of related data values. These rows in
the table denote a real-world entity or relationship.
The table name and column names are helpful to interpret the meaning of values in each row. The
data are represented as a set of relations. In the relational model, data are stored as tables. However,
the physical storage of the data is independent of the way the data are logically organized.

Fig. Relational model


3.2 Modules in the System:
1. Project Modules
1. Guest Users
2. Register Users
3. Admin
4. Car Details

1. Guest Users :
Guest user can view the website and checkout the information about rental cars.
Guest user can also enquiry through contact us page.

2. Register Users :
Anyone can register through the registration page.
After successful registration user can log in with valid email and password.
User can recover own password by providing some registered info.
After successful login user can do the following things–
 Car Booking
 View Car booking history
 Update His/Her profile
 Logout
3. Admin
Admin is the superuser of the website who can manage everything on the website. Admin can log in
through the login page
Admin Features–
 Manage Vehicle Brands(Edit, Delete)
 Post Vehicle
 Manage vehicle(Edit,Delete)
 Manage Booking(Admin can confirm and Cancel Booking)
 Manage Contact us Query
 Admin Can the details of registered users
 Admin can update the contact us details
 Manage Subscribers
 Admin Dashboard(Admin can view the count of reg users, total booking, total subscribers, total
queries etc)
 Change Password(admin can change own password)
 logout

4. Product Details:

 Renter insert the Car details.

 Car name,brand,color,milage,etc.
CHAPTER 4
IMPLEMENTATION
4.1 CODE:
package cropSystem;

import java.sql.*;
import java.util.*;

public class main {


public static void main(String[] args) throws SQLException, ClassNotFoundException{
Connection myConn = null;
Statement myStmt = null;
ResultSet myRs = null;

String dburl = "jdbc:mysql://localhost:3306/agro";


String user = "zeeshan";
String pass = "123456";
int choice;

@SuppressWarnings("resource")
Scanner sc= new Scanner(System.in);
Class.forName("com.mysql.jdbc.Driver");
getConnection(dburl, user, pass, myConn, myStmt, myRs);
oloop: do {
System.out.println("\n1. Admin\n2. Farmer\n3. Buyer\n4. Exit");
System.out.println("\nEnter Your Choice : ");
choice = sc.nextInt();
switch(choice){
case 1:
iloop: do {
int achoice;
System.out.println("\n1. Display Data\n2. Delete Data\n3. Exit");
System.out.println("\nEnter Your Choice : ");

achoice = sc.nextInt();
switch(achoice){

case 1:
System.out.println("\nThis is the detail of all farmers\n");
displayFarmer(myConn, myStmt, myRs, dburl, user, pass);
break;

case 2:

System.out.println("\nDetails of all farmer");


displayFarmer(myConn, myStmt, myRs, dburl, user, pass);

deleteFarmer(myConn, myStmt, myRs, dburl, user, pass);

System.out.println("\nDetails of all farmer");


displayFarmer(myConn, myStmt, myRs, dburl, user, pass);

break;

case 3:
System.out.println("\nByee Byee\n\n");

break iloop;

default:

System.out.println("\nPlease choose valid option\n\n");

break;

}while(true);

break;

case 2:

iloop: do {
System.out.println("\n1. Register as Farmer\n2. Login as Farmer\n3.
Exit\n");
System.out.println("\nEnter Your Choice : ");

int fchoice = sc.nextInt();

switch(fchoice) {

case 1:

fregister(myConn, myStmt, myRs, dburl, user, pass);

break;
case 2:

flogin(myConn, myStmt, myRs, dburl, user, pass);

break;

case 3:

System.out.println("\nByee Byee\n\n");

break iloop;
default:

System.out.println("\nPlease choose valid option\n\n");

break;
}
}while(true);

break;

case 3:

myConn = DriverManager.getConnection(dburl, user, pass);


myStmt = myConn.createStatement();
myRs = myStmt.executeQuery("select * from farmer");
System.out.printf("CROP DETAILS \n\n");
while(myRs.next())
{
String
fData = myRs.getInt(1) + " : " + myRs.getString(2);
System.out.println(fData);
}
break;

case 4:

System.out.printf("\n --------------Thanku for visting------------ ");

break oloop;

default:

System.out.println("\nPlease choose valid optrion\n\n");

break;

}while(true);
}

private static void flogin(Connection myConn, Statement myStmt, ResultSet myRs, String
dburl, String user, String pass) {
// TODO Auto-generated method stub

@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);

try {

myConn = DriverManager.getConnection(dburl, user, pass);


myStmt = myConn.createStatement();
myRs = myStmt.executeQuery("select fusername,fpassword from farmer");

String fuser = myRs.getString(1);


String fpass = myRs.getString(2);
System.out.println("\n1. Enter your username\n");
String funame=sc.next();
System.out.println("\n2. Enter your Password\n");
String fpwd=sc.next();

do
{
if(funame == fuser && fpwd == fpass)
{

System.out.println("\n Login Successful");

System.out.println("\n1. Enter your product\n");


String product=sc.next();
System.out.println("\n2. Enter your product category\n");
String pcat=sc.next();
System.out.println("\n3. Enter your product information\n");
String pinfo=sc.next();
System.out.println("\n4. Enter your product price\n");
String price=sc.next();

String query = "insert into fproduct values(?, ?, ?, ?)";

PreparedStatement stmt=myConn.prepareStatement(query);

stmt.setString(1, product);
stmt.setString(2, pcat);
stmt.setString(3, pinfo);
stmt.setString(4, price);
stmt.executeUpdate();

break;

else {
System.out.println("\n INVALID USERNAME OR
PASSWORD\n");
System.out.println("\n Try Again\n");

}
}while(true);

}catch (Exception exc) {


exc.printStackTrace();
}

private static void fregister(Connection myConn, Statement myStmt, ResultSet myRs,


String dburl, String user, String pass) {
// TODO Auto-generated method stub

@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);

try {

myConn = DriverManager.getConnection(dburl, user, pass);


myStmt = myConn.createStatement();

System.out.println("\n1. Enter your Name\n");


String fname=sc.next();
System.out.println("\n2. Enter your username\n");
String funame=sc.next();
System.out.println("\n3. Enter your Password\n");
String fpwd=sc.next();
System.out.println("\n4. Enter your Email\n");
String femail=sc.next();
System.out.println("\n5. Enter your Mobile number\n");
String fmobile = sc.next();
System.out.println("\n6. Enter your Address\n");
String faddr=sc.next();

try {

String query = "insert into


farmer(fname,fusername,fpassword,femail,fmobile,faddress) values(?, ?, ?, ?, ?, ?)";

PreparedStatement stmt=myConn.prepareStatement(query);

stmt.setString(1, fname);
stmt.setString(2, funame);
stmt.setString(3, fpwd);
stmt.setString(4, femail);
stmt.setString(5, fmobile);
stmt.setString(6, faddr);

int a = stmt.executeUpdate();
System.out.println(a+" no of rows updated");
}
catch(Exception e) {
System.out.println(e);
}
}
catch (Exception exc) {
exc.printStackTrace();
}

private static void deleteFarmer(Connection myConn, Statement myStmt, ResultSet myRs,


String dburl, String user, String pass){
// TODO Auto-generated method stub

@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);

try {
// 1. Get a connection to database
myConn = DriverManager.getConnection(dburl, user, pass);
myStmt = myConn.createStatement();

System.out.printf("ENTER FARMER ID : ");


int fid = sc.nextInt();

try {

String query = "delete from farmer where fid=?";


PreparedStatement stmt=myConn.prepareStatement(query);
stmt.setInt(1, fid);

int a = stmt.executeUpdate();
System.out.println(a + " no of rows updated");
}
catch(Exception e) {
System.out.println(e);
}
}catch (Exception exc) {
exc.printStackTrace();
}

private static void displayFarmer(Connection myConn, Statement myStmt, ResultSet myRs,


String dburl, String user, String pass) {
// TODO Auto-generated method stub

try {
// 1. Get a connection to database
myConn = DriverManager.getConnection(dburl, user, pass);
myStmt = myConn.createStatement();
myRs = myStmt.executeQuery("select * from farmer");

String fData = null;


while(myRs.next())
{
fData = myRs.getInt(1) + " : " + myRs.getString(2) + " : " + myRs.getString(3) + " :
" + myRs.getString(4) + " : " + myRs.getString(5) + " : " + myRs.getString(6) + " : " +
myRs.getString(7);
System.out.println(fData);
}
}catch (Exception exc) {
exc.printStackTrace();
}

private static void getConnection(String dbUrl, String user, String pass, Connection
myConn, Statement myStmt, ResultSet myRs) {
try {
// 1. Get a connection to database
myConn = DriverManager.getConnection(dbUrl, user, pass);
myStmt = myConn.createStatement();
System.out.println("CONNECTION ESTABLISHED");
}

catch (Exception exc) {


exc.printStackTrace();
}

}
}

4.2 OUTPUT/ SCREENSHORT:


CHAPTER 5

CONCLUSION
5.1 Conclusion:

5.1.1 Limitation:
LooKBooK Car-Rental Services is a Web application and it is restricted to only limited type of
users. In this application ,Different types of managers have been given access rights and they are
restricted up to their functionalities, so that the data is maintained securely and redundant data is
prevented. As the Data is stored electronically, it is necessary to have a Computer and Network
connection to access the Application. Here The Details of Employees and Drivers, cabs are
maintained but accounts to these people are not created. using this application mangers do assign or
update the batch,shift of cabs to drivers and employees. But employees are unable to view their
details .

5.1.2 Future Enhancement:

LooKBooK Car-Rental Services is a Web application and it is restricted to only limited type of
users. In this application ,Different types of managers have been given access rights and they are
restricted up to their functionalities, so that the data is maintained securely and redundant data is
prevented. As the Data is stored electronically, it is necessary to have a Computer and Network
connection to access the Application. Here The Details of Employees and Drivers, cabs are
maintained but accounts to these people are not created. using this application mangers do assign or
update the batch,shift of cabs to drivers and employees. But employees are unable to view their
details .

You might also like