Question: a program that will assign a passenger to a seat on the airplane. The user enters a row (1-5) and a seat (A-D). The seat
a program that will assign a passenger to a seat on the airplane. The user enters a row (1-5) and a seat (A-D). The seat entry should not be CASE SENSITIVE. If the seat is available, assign an X to that position in the array. If the seat is unavailable, display a message to the passenger. NOTE: Use the displaySeats method after each row/seat entry, so the program displays the entire array. Continue processing requests(entries) until all the seats are filled, or the user enters -1 for the program to stop.
Step by Step Solution
There are 3 Steps involved in it
import javautilScanner public class AirplaneSeating private static final int ROWS 5 private static f... View full answer
Get step-by-step solutions from verified subject matter experts
