Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

*Please do not post non related answere* You are to design a program that implem

ID: 3552137 • Letter: #

Question

*Please do not post non related answere*


You are to design a program that implements a basic Airline Booking System. The System allows a client program to create airports, airlines, and flights. Each flight has an originating airport (origin) and a destination airport (destination). The origin and destination cannot be the same. Each flight consists of seats organized in rows. Each row has six seats (A, B, C, D, E, F). Your program should have the following functionality:

Your program must have the following classes:

This class has the following attributes:

Airports an arraylist of airport objects, initially empty.

Airlines an arraylist of airline objects, initially empty.

Flights an arraylist of flight objects, initially empty.

If required, add other attributes.

The class has the following methods:

createAirport(String n): Creates an airport objectand updates the appropriate arraylist. The airport willhave a name (code) n; n must haveexactly three alphabetic characters. No two airportscan have the same name.

createAirline(String n): Creates an airline objectwith name n and updates the appropriate arraylist. An airline has a name thatmust have a length less than 6.No two airlines can have the samename.

createFlight(String aname, String orig, String dest, String id): Creates a flightfor an airline named aname, from anoriginating airport (orig) to a destinationairport (dest). The flight has an identifier(id).

createSeats(String air, String flID, int rows): Creates seats with the given number of rows for a flight with identifier flID, associatedwith an airline, air.

findAvailableFlights(String orig, String dest): Finds all flights fromairport orig to airport dest.

bookSeat(String air, String fl, int row, char col): Books seat in given rowand column on flight fl of airlineair, if that particular seat is still available.

displaySystemDetails(): Displays attribute values for all objects (e.g., airports, flights) in the system.

Add appropriate methods.

Explanation / Answer

http://j2eetutorials.50webs.com/completejava.50webs.com/java_airline_project.html


hope this will hellp half of requirments are build