Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You must use Object Oriented Programming to design this project. Write a reservation system for an airline flight. Assume the airplane has 10 rows with

You must use Object Oriented Programming to design this project.

Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional array of strings to maintain a seating chart. In addition create a array to be used as a waiting list in case the plane is full. The waiting list should be "first come first serve" that is people who are added early in the list get the priority over those who are added later. Allow the user to add three options. Add a passenger to the list.

Request the passenger's name.

Display a chart of the seats in the airplane in a tabular form.

If seats are available let the passenger choose a seat. Add the passenger to the seating chart.

If no seats are available, place the passenger on the waiting list.

Remove a passenger from the list.

Request the passengers name.

Search the seating chart for the passenger's name and delete it.

If the waiting list is empty, update the array so that the seat is available, If the waiting list is not empty remove the first person from the list, and give him or her the newly vacated seat.

Quit You will need to use string methods defined in java.lang.String in the documentation reference.String comparision function names are as followsequal, equalIgnoreCase.You must use OOP Concepts


Requirements:

Apply most of the concepts below

OOP theory (minimum of 4 classes e.g. Reservation, Passenger, WaitList, SeatingChart)

File IO

Language constructs such as (Looping/Decision Making/Methods etc.)

Swing (Seating Chart)

Interfaces

Exception Handing

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

import javaxswing import javaawt import javaawtevent import javaxswingtext public class LoginPage extends JFrame Container c getContentPane JPanel PFlightTypes new JPanelnull JPanel PLogin new JPaneln... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Document Format ( 2 attachments)

PDF file Icon
608ff0ec87216_21383.pdf

180 KBs PDF File

Word file Icon
608ff0ec87216_21383.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis and Design

Authors: Kenneth E. Kendall, Julie E. Kendall

9th edition

133023443, 978-0133023442

More Books

Students also viewed these Programming questions