Question: using a 2 dimensional array Write a program that can be used to assign seats for a commercial airplane. The airplane has 1 3 rows,
using a dimensional array
Write a program that can be used to assign seats for a commercial airplane.
The airplane has rows, with seats in each row. Rows and are first class,
to are economy class.
Your program prompts the user to enter the following information:
a Ticket type first class, or economy class
b Desired seat
Output the seating plan in the following format:
A B C D E F
Row X
Row
Row X
Row
Row
Row
Row
Row X
Row
Row
Row X
Row
Row
Here, indicates that the seat is available; X indicates that the seat has been
assigned. Make this a menudriven program; show the users choices and
allow the user to make the appropriate choices.
do all necessary error checking
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
