You are on page 1of 2

Project Name: Airline Reservation System

Description:

This C++ program simulates a basic airline reservation system. It offers the following functionalities:

Key Features:

 Flight Management:

o Stores flight information (flight number, departure city, departure time, arrival
city, arrival time).

o Maintains separate lists of flights departing from and arriving at each city.

o Allows searching for flights based on various criteria (e.g., departure city, arrival
city, flight number).

 Route Finding:

o Finds direct flights between cities.

o Finds connecting flights with layovers of at least a specified duration.

o Implements Dijkstra's algorithm to find the shortest path between two cities based
on flight travel times.

 Reservation Management:

o Allows users to make reservations for round-trip or one-way flights.

o Stores passenger information (name, trip type, routes).

o Maintains a sorted list of reservations based on passenger names.

 Data Display:

o Displays all available flights.

o Displays flights departing from or arriving at a specific city.

o Displays the shortest path between two cities.

o Displays all reservations.

Data Structures:

 FlightType: Stores details about individual flights (flight number, departure city, arrival city,
departure time, arrival time).

 RouteType: Represents a route, including flight numbers, number of hops, and day of travel.

 ReservationType: Holds information about a passenger's reservation (name, trip type,


routes).

 CityListType: Organizes flight information by city for efficient access.

 FlightNumberListType: Maintains a list of flights sorted by flight number.


Key Functions:

 ReadFlightData: Reads flight data from a source (not shown in the code).

 InitializeCityList: Sets up the city list structure.

 DisplayAllCities: Lists all cities served by the airline.

 DisplayDepartureList(cityName): Shows flights departing from a specific city.

 DisplayArrivalList(cityName): Shows flights arriving in a specific city.

 DisplayCitiesFrom(cityName): Lists cities reachable directly from a given city.

 DisplayShortestPath(startCity, endCity): Finds the shortest path between two cities using
Dijkstra's algorithm.

 MakeReservation: Creates a new reservation based on user input.

 FindRoute(startCity, endCity, route): Finds a route between two cities, considering both
direct and connecting flights.

 PrintAllReservations: Displays a list of all reservations.

 PrintPassengers(FlightNo): Shows passengers booked on a specific flight.

 PrintSchedule: Retrieves a passenger's reservation details by name.

 DeleteReserve: Cancels a reservation.

 DisplayAllFlightsData: Displays information about all flights in the database.

Main Menu:

 Guides users through available options, allowing them to interact with the system's features

Instructions for Use:

1. Compile the code using a C++ compiler.

2. Run the executable file.

3. The program will prompt you with options for various actions.

4. Follow the prompts and enter the required information to perform the desired tasks.

 It does not implement payment processing or ticketing.

Future Enhancements:

 Implement seat booking and availability checking.

 Store passenger contact information and preferences.

 Integrate with a payment gateway for online transactions.

 Provide a user-friendly graphical interface.

You might also like