Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. C++ 1. Implement functions with two-dimensional arrays as input parameters. 2. Implement a function with a menu of options and switch/case 3. Implement a
3. C++
1. Implement functions with two-dimensional arrays as input parameters. 2. Implement a function with a menu of options and switch/case 3. Implement a loop to repeat the options menu. 4. Deploy your code Description of the problem: 1. (Malik) Airplane Seating Assignment Write a program that can be used to assign seats for a commercial airplane. the airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class, rows 3 through 7 are business class, and rows 8 through 13 are economy class. Your program must prompt the user to enter the following information: a. Ticket type (first class, business class, or economy class) b. Desired seat Output the seating plan in the following form: A B C D E F ROW 1 * * X * X X ROW 2 * X * X * X ROW 3 * * X X * X ROW 4 X * X * X X ROW 5 * X * X * * ROW 6 * X * * * X ROW 7 X * * * X X ROW 8 * X * X X * ROW 9 X * X X * X ROW 10 * X * X X X ROW 11 * * X * X * ROW 12 * * X X * X ROW 13 * * * * X * Here, * indicates that the seat is available; X indicates that the seat is occupied. Make this a menu-driven program; show the user's choices and allow the user to make the appropriate choices. Malik, D.S. (2017). C++ Programming: Program Design Including Data Structures, 8th Edition. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started