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

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class AirplaneSeating private static final int ROWS 5 private static f... View full answer

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 Programming Questions!