0% found this document useful (0 votes)
7 views

Java E7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Java E7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

IT DEPT CMREC

PROJECT WORK
On
CAR RENTAL MANAGEMENT SYSTEM
Submitted to CMREC(UGC Autonomus)
In Partial Full filment of the requirements for the Award of Degree
of
BACHELOR OF TECHNOLOGY
IN
INFORMATION TECHNOLOGY

Submitted By

G MD REHAN 238R1A12E7
Under the guidence of

Mr.K.ANIL KUMAR
Assistant Professor,Department of IT

DEPARTMENT OF INFORMATION TECHNOLOGY


CMR ENGINEERING COLLEGE
UGC AUTONOMOUS

(Approved by AICTE-New Delhi & J.N.T.U, Hyderabad) Kandlakoya(v),


1
IT DEPT CMREC

Medchal Road, Hyderabad-501 401, Telangana State, India.

CERTIFICATE

This is to certify that the project entitled "CAR RENTAL MANAGEMENT SYSTEM " is a
work carried out by:

G MD REHAN 238R1A12E7

In the part of individual project report of Microprocessor based ECG recorder


laboratory under the guidance and supervision

Project coordinator Head of the department


Mr.K ANIL KUMAR Dr. Madhavi Pingili
Assistant professor, Assoc Professor and HOD,
Department of IT, Department of IT,
CMREC, Hyderabad CMREC, Hyderabad

2
IT DEPT CMREC

TABLE OF CONTENTS:

1) ABSTRACT 4

2) INTRODUCTION 5

3) CODE 6-9

4) IMPLEMENTATION 10

5) CONCLUSION 11

3
JAVA LAB PROJECT

ABSTRACT:

The Car Rental Management System (CRMS) is an advanced, integrated software solution designed

to cater to the diverse needs of car rental businesses of all sizes. With the increasing demand for

flexible transportation options, CRMS effectively addresses the complexities involved in managing

a fleet of vehicles, ensuring customer satisfaction, and optimizing operational efficiency. By

automating and streamlining various processes, the system significantly reduces manual effort and

minimizes errors, thus enhancing overall productivity.

One of the core features of CRMS is its robust user management module, which allows

administrators to create and manage user profiles for both customers and employees. This module

incorporates role-based access control, ensuring that sensitive information is protected while

enabling staff to perform their tasks efficiently. This level of organization is crucial for maintaining

security and ensuring that each user has the appropriate access to the system’s functionalities.

The vehicle inventory management feature offers a comprehensive solution for tracking and

managing the fleet in real-time. Users can add, update, and monitor vehicles, including detailed

information such as specifications, rental rates, availability status, and maintenance schedules.

Alerts for upcoming maintenance or inspections can be configured, ensuring optimal fleet

performance and reducing the risk of unexpected breakdowns, which can lead to customer

dissatisfaction.

4
IT DEPT CMREC

INTRODUCTION:
The car rental industry has become an integral part of the global transportation ecosystem,
providing individuals and businesses with flexible mobility solutions. As urbanization and travel
demand continue to rise, car rental services are increasingly sought after for their convenience and
accessibility. However, managing a car rental business involves a myriad of challenges, including
vehicle management, customer service, billing, and operational logistics. To address these
complexities, a comprehensive Car Rental Management System (CRMS) is essential.

The CRMS is designed to automate and streamline the various processes involved in car rental
operations, enabling businesses to enhance efficiency and improve customer satisfaction. By
integrating multiple functionalities into a single platform, the system allows rental agencies to
manage their fleets, track reservations, and handle billing seamlessly. This not only reduces the
administrative burden on staff but also minimizes the potential for human error, leading to a more
reliable service.

5
IT DEPT CMREC

CODE:
import java.util.ArrayList;
import java.util.Scanner;

class Car {
private String id;
private String model;
private boolean isAvailable;

public Car(String id, String model) {


this.id = id;
this.model = model;
this.isAvailable = true;
}

public String getId() {


return id;
}

public String getModel() {


return model;
}

public boolean isAvailable() {


return isAvailable;
}

public void rent() {


isAvailable = false;
}

public void returnCar() {


isAvailable = true;
}

6
IT DEPT CMREC

@Override
public String toString() {
return "Car ID: " + id + ", Model: " + model + ", Available: " + (isAvailable ?
"Yes" : "No");
}
}

public class CarRentalSystem {


private ArrayList<Car> cars;
private Scanner scanner;

public CarRentalSystem() {
cars = new ArrayList<>();
scanner = new Scanner(System.in);
}

public void addCar() {


System.out.print("Enter Car ID: ");
String id = scanner.nextLine();
System.out.print("Enter Car Model: ");
String model = scanner.nextLine();
cars.add(new Car(id, model));
System.out.println("Car added successfully!");
}

public void displayCars() {


if (cars.isEmpty()) {
System.out.println("No cars available.");
return;
}
System.out.println("Available Cars:");
for (Car car : cars) {
System.out.println(car);
}
}

public void rentCar() {


System.out.print("Enter Car ID to Rent: ");
7
IT DEPT CMREC

String id = scanner.nextLine();
for (Car car : cars) {
if (car.getId().equals(id)) {
if (car.isAvailable()) {
car.rent();
System.out.println("Car rented successfully!");
} else {
System.out.println("Car is already rented.");
}
return;
}
}
System.out.println("Car ID not found.");
}

public void returnCar() {


System.out.print("Enter Car ID to Return: ");
String id = scanner.nextLine();
for (Car car : cars) {
if (car.getId().equals(id)) {
if (!car.isAvailable()) {
car.returnCar();
System.out.println("Car returned successfully!");
} else {
System.out.println("Car is not currently rented.");
}
return;
}
}
System.out.println("Car ID not found.");
}

public void menu() {


while (true) {
System.out.println("\nCar Rental Management System");
System.out.println("1. Add Car");
System.out.println("2. Display Cars");
System.out.println("3. Rent Car");
System.out.println("4. Return Car");
8
IT DEPT CMREC

System.out.println("5. Exit");
System.out.print("Enter your choice: ");
int choice = scanner.nextInt();
scanner.nextLine(); // Consume newline

switch (choice) {
case 1:
addCar();
break;
case 2:
displayCars();
break;
case 3:
rentCar();
break;
case 4:
returnCar();
break;
case 5:
System.out.println("Exiting system. Goodbye!");
return;
default:
System.out.println("Invalid choice! Please try again.");
}
}
}

public static void main(String[] args) {


CarRentalSystem system = new CarRentalSystem();
system.menu();
}
}

9
IT DEPT CMREC

IMPLEMENTATION

10
IT DEPT CMREC

CONCLUSION :

The Car Rental Management System (CRMS) stands as a transformative solution for car rental

agencies striving to navigate the complexities of modern transportation services. By integrating a

wide array of functionalities into a single platform, the CRMS not only streamlines operations but

also enhances the overall customer experience. The automation of key processes—ranging from

vehicle management and reservation handling to billing and customer support—significantly

reduces administrative burdens and minimizes the potential for errors, ultimately leading to more

efficient service delivery.

Moreover, the emphasis on data-driven decision-making through advanced reporting and analytics

empowers rental agencies to gain valuable insights into their operations. By understanding trends in

vehicle utilization, customer preferences, and revenue patterns, businesses can make informed

strategic decisions that foster growth and innovation. This analytical capability is essential for

staying competitive in an industry characterized by rapid change and evolving consumer

expectations.

11

You might also like