Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ ------------ The aim of this project is to implement a seat reservation system for a passenger airplane. We assume a small airplane with 10
C++ ------------
The aim of this project is to implement a seat reservation system for a passenger airplane. We assume a small airplane with 10 rows and 4 seats per row. We assume that the seat chart is initially stored in a file "chartln.txt" in the following format: 1 ABC D 2 ABC D 3 A B C D 4 A B C D 5 A B C D 6 ABC D 7 ABC D 8 ABC D 9 ABC D 10 A B C D The example given above means that seats 1A, 1B, 1C, 1D, 2A, 2B, 2C, 2D, 3A,... are all available. Note that the number 1,2, 3 also belong to the file. Below is another example of data stored in the file "chartIn.txt": 1 AX C D 2 ABC D 3 A B C D 4 A B C D 6 ABC D 7 ABC D 8ABC D 9 ABX D 10A X X D This second example demonstrates that the following seats marked with 'X' are reserved: 1B, 5B, 9C, 10B, 10C. The program must use a function to initially read the seat chart from the file "chartIn.txt" and fill out a 2-dimentional array called seatChart. The main program then calls a function to display the following menu
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