Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

My program needs too look like the one shown below. I\'ve been working on this a

ID: 3527025 • Letter: M

Question

My program needs too look like the one shown below. I've been working on this all weekend but can't seem to get my program to run like the one below. Please help me! Instructions below will explain what is needed.


Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with 6 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. You program will prompt the user to enter their ticket type, and then their userid (this will just be an arbitrary number picked by you). This will be implemented by using a two-dimensional array. Every element in the array will be initialized to zero. You will be able to tell if a seat is open if it has a value of 0. The program will then fill the seats from smallest to largest in the appropriate row per the ticket type. It will print to the user which seat they were given, or if all seats for that ticket type were full, it will print a message indicating all seats for that ticket type are full. If there is an open seat, the user

Explanation / Answer

arr2d[14][7] should be arr2d[13][6] 13 rows and 6 columns. Then you need to initialize it first. Then the desired seat is composed of row number and column number, ask them seperately to make it easier. int main () { string arr2d[13][6] tic, smok, set; int seatRowNum, seatColNum; int fromRow, endRow; string askUser = "C"; for(int row = 0; row
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote