0% found this document useful (0 votes)
10 views15 pages

03 Java

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

03 Java

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

A

Micro project

On

“Car Rental System”

Submitted By

Avinash Giri (45)


Avinash Lokhande (22)
Harshdeep Pawar (50)

Guided By
Ms.V.M.Bodhankar

Diploma Course in Computer Technology

(As per directives of I Scheme, MSBTE)

Sinhgad Institutes

Sinhgad Technical Education Society’s


SOU.VENUTAI CHAVAN POLYTECHNIC
PUNE - 411041
ACADEMIC YEAR 2023-2024
Maharashtra State Board of Technical
Education
Certificate
This is to certify that Mr. Avinash Giri with Roll No. 45 of Semester IV of Diploma in
Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code: 0040) has
successfully completed the Micro-Project in Java Programming (22412) for the
academic year 2023-2024 as prescribed in the curriculum.

Program Code: CM Course Code: CM/4/I


Place: SVCP, Pune Enrolment No: 2200400369

Date: Exam Seat No: 173080

Ms.V.M. Bodhankar Mrs A.V.Kurkute Dr.(Mrs.)M.S.Jadhav

Course Teacher Head of Department Principal


Maharashtra State Board of Technical
Education

Certificate
This is to certify that Mr. Avinash Lokhande with Roll No. 22 of Semester IV of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code:
0040) has successfully completed the Micro-Project in Java Programming (22412) for
the academic year 2023-2024 as prescribed in the curriculum.

Program Code: CM Course Code: CM/4/I


Place: SVCP, Pune Enrolment No: 2200400335

Date: Exam Seat No: 173049

Mrs.V.M. Bodhankar Mrs A.V.Kurkute Dr.(Mrs.)M.S.Jadhav

Course Teacher Head of Department Principal


Maharashtra State Board of Technical
Education

Certificate
This is to certify that Mr. Harshdeep Pawar with Roll No. 50 of Semester IV of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic
(Code: 0040) has successfully completed the Micro-Project in Java Programming
(22412) for the academic year 2023-2024 as prescribed in the curriculum.

Program Code: CM Course Code: CM/4/I


Place: SVCP, Pune Enrolment No: 2200400428

Date: Exam Seat No: 173095

Ms.V.M. Bodhankar Mrs A.V.Kurkute Dr.(Mrs.)M.S.Jadhav

Course Teacher Head of Department Principal


Java Programming (22412) Car Rental System

SR NO CONTENTS PAGE NO

1 Aim of the Micro-Project 1

2 Rationale 3

3 Course Outcomes Achieved 3

4 Actual Methodology Followed 4

5 Actual Resources Used 2

6 Skills Developed 9

7 Applications of Micro Project 9


Java Programming (22412) Car Rental System

Annexure–I
Micro-Project Proposal

“Car Rental System”

1.0 Aim of the Micro-Project:

The aim of the Micro-project is to create Car Rental System using Java.

2.0 Intended Course Outcomes:

• Develop java program for Car Rental System.


• Develop java program using Java Classes.

3.0 Proposed Methodology:

• Study classes and objects in java and its uses.


• Study the various syntaxes of java language.
• Study to read and write into files, by file operations.
• Study the Car Rental System.
• Design structure of System.
• Implement program to create Car Rental System.
• Prepare the final report.

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

4.0 Action Plan


Sr. Details of Activity Planned Planned Name of
No Start Finish Responsible
Date Date Team Members
1 Identify the requirements of Avinash Lokhande
the project.
2 Design the structure of the Avinash Giri
project.
3 Develop the program Harshdeep Pawar
4 Debug code and eliminate
errors occurred during Avinash Giri
compilation and execution.
5 Test the project. Harshdeep Pawar
6 Create final report Avinash Lokhande

5.0 Resources Required


S. Resources Specifications
No. required
1 Computer system Intel(R) Pentium CPU, RAM 8 GB
2 OperatingSystem Windows 11, 64 Bit Operating System

3 Software’s Java Compiler

6.0 Team Members


Sr.No Student Name Roll No.
1. Avinash Giri 45
2. Avinash Lokhande 22
3. Harshdeep Pawar 50

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

Annexure–II
Micro-Project Proposal
“Car Rental System”

1.0 Rationale:
This is a simple project where the system is used for handling car rental
transactions using JAVA code, in which user can enter his details like name,
address, mobile number. Then he/she gets choice for selecting car from available
one, and then enter for how many days he/she will rent car. After this process
he/she will get bill Receipt for Transaction.

2.0 Aim of the Micro-Project:

To Develop Car Rental System using JAVA.

3.0 Course Outcomes Addressed:

• Develop java program for Car Rental System.


• Develop java program using JAVA Classes.

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

4.0 Actual Methodology Followed:


I. Study the concept of JAVA Programming.
II. Study various syntaxes and functions of JAVA.
III. Study to create small programs using JAVA.
IV. Study to defining classes and functions in it.
V. Study to calling functions of different classes using objects.
VI. Make the program of given criteria.
VII. Prepare the final report.

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

5.0 Source Code of Program:


import java.util.Scanner;

// Base class for the Person


class Person {
String name;
String address;
String mobileNumber;

public Person(String name, String address, String mobileNumber)


{
this.name = name;
this.address = address;
this.mobileNumber = mobileNumber;
}
}

// class Car
class Car
{
String carName;
double rentalCostPerDay;

public Car(String carName, double rentalCostPerDay) {


this.carName = carName;
this.rentalCostPerDay = rentalCostPerDay;
}
}

// class Rental for handling rental transactions


class Rental
{
Person person;
Car car;
int rentalDays;

public Rental(Person person, Car car, int rentalDays)


{
this.person = person;
this.car = car;
this.rentalDays = rentalDays;
}

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

public double calculateRentalCost() {


return car.rentalCostPerDay * rentalDays;
}
}

public class CarRentalSystem {


public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

// Input user details


System.out.println("Enter your name:");
String name = scanner.nextLine();

System.out.println("Enter your address:");


String address = scanner.nextLine();

System.out.println("Enter your mobile number:");


String mobileNumber = scanner.nextLine();

// Creating Person object


Person person = new Person(name, address, mobileNumber);

// Available cars
Car[] availableCars =
{
new Car("Toyota Camry", 50.0),
new Car("Honda Civic", 40.0),
new Car("Ford Mustang", 70.0),
new Car("Scarpio N", 10.0)
};

// Displaying available cars


System.out.println("Available Cars:");
for (int i = 0; i < availableCars.length; i++) {
System.out.println((i + 1) + ". " + availableCars[i].carName);
}

// Selecting a car
System.out.println("Select a car (enter the number):");
int selectedCarIndex = scanner.nextInt() - 1;
Car selectedCar = availableCars[selectedCarIndex];

// Input rental duration

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

System.out.println("Enter rental duration (in days):");


int rentalDays = scanner.nextInt();

// Creating Rental object


Rental rental = new Rental(person, selectedCar, rentalDays);

// Calculating rental cost


double totalCost = rental.calculateRentalCost();

// Displaying rental details


System.out.println("\nRental Details:");
System.out.println("Name: " + person.name);
System.out.println("Address: " + person.address);
System.out.println("Mobile Number: " + person.mobileNumber);
System.out.println("Car: " + selectedCar.carName);
System.out.println("Rental Duration: " + rentalDays + " days");
System.out.println("Total Cost: $" + totalCost);

scanner.close();
}
}

Output:
Enter your name:
Tony
Enter your address:
NY
Enter your mobile number:
6384010134

Available Cars:
1. Toyota Camry
2. Honda Civic
3. Ford Mustang
4. Scarpio N
Select a car (enter the number):
3

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

Enter rental duration (in days):


7

Rental Details:
Name: Tony
Address: NY
Mobile Number: 6384010134
Car: Ford Mustang
Rental Duration: 7 days
Total Cost: $490.0

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

5.0 Skills Developed :


• We learnt various new syntaxes of java language and syntaxes of file operations,
• We also learnt classes and objects in java.

6.0Applications of Micro Project :


This micro-project finds its application in:
• Car Rental System for Handling Car Rental Services.

Diploma in Computer Technology 2023-24


Java Programming (22412) Car Rental System

7.0. Conclusion:
Thus, we learnt to develop a JAVA Car Rental System.

8.0 References:
• Codecademy.
• Udemy.
• Coursera.
• Java Code Geeks

Diploma in Computer Technology 2023-24

You might also like