Question: Code in Visual Studio C++ use beginner/intermediate code Assume that the reservation for an airplane flight have been stored in a file called flight. The

Code in Visual Studio C++ use beginner/intermediate code
 Code in Visual Studio C++ use beginner/intermediate code Assume that the
reservation for an airplane flight have been stored in a file called

Assume that the reservation for an airplane flight have been stored in a file called flight. The plane contains 38 rows and 6 seats in each row. The seats in cach row are numbered6 as follows: 1. Window seat, left side 2. Center seat, left side 3. Aisle seat, left side 4. Aisle seat, right side 5. Center seat, right side 6. Window seat, right side The file flight contains 38 lines of information corresponding to the 38 rows of the plane. Each line contains 6 values corresponding to 6 seats. The value for any seat is either 0 or , representing either an empty or an occupied seat. Write a complete C++ program to read the flight information into a two dimensional array called seat. Find and print all pairs of adjacent seats that are empty. Adjacent aisle seats should not be printed. If all three seats on one side of the plane are empty, then two pairs of adjacent seats should be printed. Print this information in the following manner: ROWS SEATS x,x If no pairs of seats are available, pri a appropriate message (like No Empty Pairs). Test your program using the following flight file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!