0% found this document useful (0 votes)
41 views19 pages

JPR Rishi Microproject

The document describes an airline reservation system project built using Java. It discusses object-oriented design principles, database management, user interfaces, concurrency handling, data structures, security, and integration with external services. It also provides an overview of the classes and algorithms required to manage flights, passengers, reservations, and seat allocation.

Uploaded by

ranjeetkadam2003
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)
41 views19 pages

JPR Rishi Microproject

The document describes an airline reservation system project built using Java. It discusses object-oriented design principles, database management, user interfaces, concurrency handling, data structures, security, and integration with external services. It also provides an overview of the classes and algorithms required to manage flights, passengers, reservations, and seat allocation.

Uploaded by

ranjeetkadam2003
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/ 19

Airline Reservation System

K. E. SOCIETY’S
RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S
(POLYTECNIC)
LOHEGAON, PUNE-47

A PROJECT REPORT
ON
WRITE A REPORT ON
“Airline Reservation System”

SUBMITED TO
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
INPARTIAL FULFILLMENT OF THE REQUIRMENTS FOR THE AWARD OF
DIPLOMA IN COMPUTER ENGNEERING
BY
1.Rushikesh Kirde.
2. Yash Kalwaghe.
3. Amit Tavaskar.

UNDER THE GUIDANCE


Mrs. Monika Johare

RITP 1
Airline Reservation System

RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S


(POLYTECHNIC)
LOHEGAON PUNE -411047
CERTIFICATE

This is to certify that, the project entitled “Airline Reservation System” has been
successfully completed by Rushikesh Kirde, impartial fulfillment of the Requirement of
Engineering Diploma Program in Computer of Maharashtra State Board of Technical
Education during Academic Year 2023-2024.

Mrs. Monika Johare Mr. V. B. Jadhav DR. K. H. Munde

(Project Guide) (Head of Department) (Principal)

RITP 2
Airline Reservation System

RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S


(POLYTECHNIC)
LOHEGAON PUNE -411047
CERTIFICATE

This is to certify that, the project entitled “Airline Reservation System” has been
successfully completed by Yash Kalwaghe, impartial fulfillment of the Requirement of
Engineering Diploma Program in Computer of Maharashtra State Board of Technical
Education during Academic Year 2023-2024.

Mrs. Monika Johare Mr. V. B. Jadhav DR. K. H. Munde

(Project Guide) (Head of Department) (Principal)

RITP 3
Airline Reservation System

RAJARAMBAPU INSTITUTE OF TECHNOLOGY’S


(POLYTECHNIC)
LOHEGAON PUNE -411047
CERTIFICATE

This is to certify that, the project entitled “Airline Reservation System” has been
successfully completed by Amit Tavaskar, impartial fulfillment of the Requirement of
Engineering Diploma Program in Computer of Maharashtra State Board of Technical
Education during Academic Year 2023-2024.

Mrs. Monika Johare Mr. V. B. Jadhav DR. K. H. Munde

(Project Guide) (Head of Department) (Principal)

RITP 4
Airline Reservation System

Acknowledgement

We have an opportunity to express our deep sense of graduate to Mrs. Monika Jhohare
(project guide), Department of Computer, for her valuable guidance and suggestions during the
course of this project work. Her encouragement at all stages has contribution greatly to
complete this project

We thank you to Mr. V. B. Jadhav Head of Department for his continuous Support to
complete this project work.

We are also thankful to DR. K. H. Munde Principle of Rajarambapu Institute of


Technology’s (polytechnic) Lohegaon, Pune-411047, for allowing us to carry out this project.

RITP 5
Airline Reservation System

Index
Sr. Content Name
No
1 Abstract
2 Introduction
3 Algorithm
4 Flowchart
5 Source code
6 Output
7 Conclusion
8 Active Plan
9 Evaluation Sheet

RITP 6
Airline Reservation System

Abstract

The Airlines Reservation System in Java is a comprehensive software solution designed to


facilitate efficient management of airline bookings and reservations.
Utilizing Java programming language, the system offers a user-friendly interface for passengers
to browse flights, make reservations, and manage their bookings.
The system incorporates advanced features such as seat selection, real-time flight availability
updates, payment processing, and itinerary management.
Furthermore, it includes an administrative module for airline staff to manage flight schedules,
update fares, and monitor bookings.
By leveraging Java's versatility and object-oriented programming principles, the Airlines
Reservation System ensures scalability, reliability, and flexibility to meet the dynamic demands
of the airline industry.

RITP 7
Airline Reservation System

Introduction
An airline reservation system in Java typically involves designing a software application
that enables users to search, book, and manage flight reservations. Here's a brief overview
of the theoretical concepts involved:

Object-Oriented Design: The system will likely be built using object-oriented principles,
where classes represent real-world entities like flights, passengers, airports, etc. This
allows for modular, reusable, and maintainable code.

Database Management: The system needs a database to store information about flights,
passengers, bookings, etc. Concepts like relational database design, SQL queries, and
database management systems (e.g., MySQL, PostgreSQL) are essential.

User Interface (UI): A user-friendly interface is crucial for users to interact with the
system. Java Swing or JavaFX can be used to create GUI components such as buttons,
text fields, and menus.

Concurrency: Handling multiple user requests concurrently is essential for scalability and
performance. Concepts like multithreading and synchronization ensure that the system
can handle simultaneous requests from multiple users.

Data Structures and Algorithms: Efficient data structures and algorithms are needed for
tasks like searching for flights, sorting results, and managing bookings. Concepts like
graphs (for representing flight routes), searching algorithms (e.g., binary search), and
sorting algorithms (e.g., quicksort) are relevant.

Security: The system should implement security measures to protect user data and
prevent unauthorized access. This may involve concepts like authentication,
authorization, encryption, and secure communication protocols (e.g., HTTPS).

Error Handling and Validation: Proper error handling and input validation are crucial for
ensuring the reliability and stability of the system. Techniques like exception handling,
data validation, and error messages are essential.

Integration with External Services: The system may need to integrate with external
services like payment gateways, airline APIs, and third-party systems. Concepts like API
integration, web services, and asynchronous communication are relevant.

By incorporating these theoretical concepts into the design and implementation of the
airline reservation system in Java, you can create a robust, efficient, and user-friendly
application that meets the needs of both passengers and airline staff.

RITP 8
Airline Reservation System

Algorithm

Start
.
Define Classes:
.
 Flight: Represents a flight with attributes like flight number, departure city, arrival city,
departure time, etc.
 Passenger: Represents a passenger with attributes like name, age, contact details, etc.
 Reservation: Represents a reservation made by a passenger for a flight. Contains
references to the passenger and flight objects, along with reservation details like seat
number, booking status, etc.
 Seat: Represents a seat on a flight with attributes like seat number, availability status,
class (economy, business, first), etc.
 AirlineReservationSystem: Main class to manage flights, passengers, and reservations.
.
Flight Management:
.
 Methods to add new flights, remove flights, display available flights, etc.
.
Passenger Management:
.
 Methods to add new passengers, remove passengers, display passenger details, etc.
.
Reservation Management:
.
 Methods to make a reservation, cancel a reservation, display reservations, etc.
 Ensure that when a reservation is made, the corresponding seat is marked as booked.
.
Seat Allocation:
.
 Implement algorithms to allocate seats based on the class (economy, business, first),
availability, and passenger preferences.
 Ensure that seat availability is updated accordingly.
.
User Interface:
.
 Implement a user interface for interacting with the system. This could be a command-line
interface or a graphical user interface depending on the requirements.

RITP 9
Airline Reservation System

.
Data Persistence:
.
 Implement functionality to save and load flight, passenger, and reservation data to/from a
database or files.

RITP 10
Airline Reservation System

Flowchart

RITP 11
Airline Reservation System

Program
import java.util.ArrayList;
import java.util.Scanner;

class Flight {
private String flightNumber;
private String departure;
private String destination;
private int totalSeats;
private int bookedSeats;

public Flight(String flightNumber, String departure, String destination, int totalSeats) {


this.flightNumber = flightNumber;
this.departure = departure;
this.destination = destination;
this.totalSeats = totalSeats;
this.bookedSeats = 0;
}

public String getFlightNumber() {


return flightNumber;
}

public String getDeparture() {


return departure;
}

public String getDestination() {


return destination;
}

public int getTotalSeats() {


return totalSeats;
}

public int getAvailableSeats() {


return totalSeats - bookedSeats;
}

public boolean bookSeats(int numSeats) {


if (numSeats <= getAvailableSeats()) {
bookedSeats += numSeats;
return true;

RITP 12
Airline Reservation System

}
return false;
}

@Override
public String toString() {
return "Flight " + flightNumber + " from " + departure + " to " + destination +
", Available Seats: " + getAvailableSeats();
}
}

class AirlineReservationSystem {
private ArrayList<Flight> flights;

public AirlineReservationSystem() {
flights = new ArrayList<>();
}

public void addFlight(Flight flight) {


flights.add(flight);
}

public void displayAvailableFlights() {


System.out.println("Available Flights:");
for (Flight flight : flights) {
System.out.println(flight);
}
System.out.println();
}

public boolean bookSeat(String flightNumber, int numSeats) {


for (Flight flight : flights) {
if (flight.getFlightNumber().equals(flightNumber)) {
return flight.bookSeats(numSeats);
}
}
return false;
}
}

public class Main {


public static void main(String[] args) {
AirlineReservationSystem airlineSystem = new AirlineReservationSystem();
// Adding some sample flights

RITP 13
Airline Reservation System

airlineSystem.addFlight(new Flight("ABC123", "New York", "Los Angeles", 200));


airlineSystem.addFlight(new Flight("DEF456", "London", "Paris", 150));

Scanner scanner = new Scanner(System.in);


int choice;
do {
System.out.println("1. Display available flights");
System.out.println("2. Book a seat");
System.out.println("3. Exit");
System.out.print("Enter your choice: ");
choice = scanner.nextInt();
scanner.nextLine(); // Consume newline

switch (choice) {
case 1:
airlineSystem.displayAvailableFlights();
break;
case 2:
System.out.print("Enter flight number: ");
String flightNumber = scanner.nextLine();
System.out.print("Enter number of seats to book: ");
int numSeats = scanner.nextInt();
boolean success = airlineSystem.bookSeat(flightNumber, numSeats);
if (success) {
System.out.println("Seat(s) booked successfully!");
} else {
System.out.println("Booking failed. Not enough available seats.");
}
break;
case 3:
System.out.println("Exiting...");
break;
default:
System.out.println("Invalid choice. Please enter a number between 1 and
3.");
}
} while (choice != 3);

scanner.close();
}
}

RITP 14
Airline Reservation System

Output

RITP 15
Airline Reservation System

Conclusion

In conclusion, the Airlines Reservation System developed in Java offers a robust and efficient
solution for managing airline bookings and reservations.
Through the use of Java's object-oriented programming paradigm, the system provides a scalable
and flexible platform capable of adapting to the evolving needs of the airline industry.
By incorporating advanced features such as real-time flight availability updates, seat selection,
and payment processing, the system enhances the overall user experience for both passengers
and airline staff.
Furthermore, the system's modular architecture and adherence to best practices ensure
maintainability and extensibility for future enhancements and updates.
Overall, the Airlines Reservation System in Java represents a significant advancement in
streamlining airline operations and improving customer satisfaction in the modern era of air
travel.
Airline reservation systems (ARS) are systems that allow an airline to sell their inventory
(seats). It contains information on schedules and fares and contains a database of reservations (or
passenger name records) and of tickets issued (if applicable). ARSs are part of passenger service
systems (PSS), which are applications supporting the direct contact with the passenger.
ARS eventually evolved into the computer reservations system (CRS). A computer reservation
system is used for the reservations of a particular airline and interfaces with a global distribution
system (GDS) which supports travel agencies and other distribution channels in making
reservations for most major airlines in a single system.

Action Plan
RITP 16
Airline Reservation System

Sr.no Details of Activity Planned Start Planned Name of team


Date finished Date members

1 Create the group 1.Rushikesh Kirde.

2.Yash Kalwaghe.
12/03/2024 13/03/2023
3.Amit Tavaskar.

2 Discussion about the topic 1. Rushikesh Kirde.


of the project 2. Yash Kalwaghe
15/03/2024 16/03/2024
3. Amit Tavaskar.

3 1.Rushikesh Kirde.

2.Yash Kalwaghe.
Searching information 17/03/2024 18/03/2024
3.Amit Tavaskar.

4 Preparation of abstract and 1.Rushikesh Kirde.


introduction 2.Yash Kalwaghe.
19/03/2024 20/03/2024
3.Amit Tavaskar.

5 Preparation of main project 1.Rushikesh Kirde.

2.Yash Kalwaghe.
21/03/2024 22/03/2024
3.Amit Tavaskar.

RITP 17
Airline Reservation System

6 Correction as per 1.Rushikesh Kirde.


suggestion 2.Yash Kalwaghe.
26/03/2024 27/03/2024
Correction as per 3.Amit Tavaskar.
suggestion

7 Preparation of Final project 1.Rushikesh Kirde.

2.Yash Kalwaghe.
29/03/2024 30/03/2024
3.Amit Tavaskar.

8 Submit with hard copy to 1.Rushikesh Kirde.


guide 2.Yash Kalwaghe.

3.Amit Tavaskar.

Sign of Faculty

RITP 18
Airline Reservation System

Evaluation Sheet

Academic Year: 2023-24 Name of faculty: Mrs. M. Jhohare

Course: CO Course code:22412

Semester: III

Title of project:Airline Reservation System

Roll no Student's Name Marks for Marks for Total out of 10


performance in performance in
group activity oral/presentation
(out of 6) (out of 4)

39 Rushikesh Kirde

26 Yash Kalwaghe

01 Amit Tavaskar

RITP 19

You might also like