Question
C++ Help. Please include comments. (Airplane Seating Assignment) : Write a computer program to convert seating assignments for a small 78 passenger jet aircraft to
C++ Help. Please include comments.
(Airplane Seating Assignment) : Write a computer program to convert seating assignments for a small 78 passenger jet aircraft to a Seating Map Report.
Use the following data file to input the seating assignment information.
The data file should be in the following format:
reservation.dat
1C 1E 1F 2B 2D 2F 3C 3D 3F 4A 4C 4E 4F 5B 5D 6B 6F 7A 7E 7F 8B 8D 8E 9A 9C 9D 9F 10B 10D 10E 10F 11C 11E 12C 12D 12F 13E |
Each data entry represents a passengers seating assignment. For example, 1C represents Row 1, Seat C and 12D represents Row 12, Seat D.
Use a user defined function to read the data into an array.
Use a user defined function to output the seating plan to an output file (Seating Map Report see below) reservation_table.dat.
HINT: Both user defined functions should be called from main( ) and absolutely no non-constant variables should be declared globally.
Output:
SEATING MAP REPORT
A B C D E F
Row1 * * X * X X
Row2 * X * X * X
Row3 * * X X * X
Row4 X * X * X X
Row5 * X * X * *
Row6 * X * * * X
Row7 X * * * X X
Row8 * X * X X *
Row9 X * X X * X
Row10 * X * X X X
Row11 * * X * X *
Row12 * * X X * X
Row13 * * * * X *
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