Question: Airline seating Java assignment. Design and implement a program that assigns seats on an airplane. Assume the airline has 20 seats in the first class

Airline seating Java assignment.
Design and implement a program that assigns seats on an airplane. Assume the airline has 20 seats in the first class (5 rows of 4 seats each, separated by an aisle) and 180 seats in evonomy class (30 rows of 7 seats each, separated by an aisle). Your program should take three commands: add passengers, show seating and quit. When passengers are added, ask for the class (first or economy), and the seating preference (aisle or window in first class; aisle, center or window in economy). Then try to find a match and assign the seats. If no match exists, print a message. Java code please!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!