Question: PLEASE USE C++ LANGUAGE ONLY Option 4 (Save Seat Chart to File): The program calls a function that prompts users for a file name. Then

 PLEASE USE C++ LANGUAGE ONLY Option 4 (Save Seat Chart toPLEASE USE C++ LANGUAGE ONLY
Option 4 (Save Seat Chart to File): The program calls a function that prompts users for a file name. Then it saves the chart to that file in the format shown in page 1.
Option 5 (statistics): The program calls a function that displays the following statistics: Number of available seats, percentage of seats that are reserved, list of window seats that are available, list of aisle seats that are available. Option 6 (Help): the program calls a function that displays a detailed message on how to use the program.

The aim of this project is to implement a seat reservation system fora 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 "chartIn.txt" in the following format: A B C D 2 ABCD 3 A B C D A B C D 5 A B C D 6 A B C D A B C D A B C D ABCD 10 ABCD The example given above means that seats 1A, 1B, 1C, ID, 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 store in the file "chartIn.txt": A X C D A B C D 3 A B C D A B C D 5 A X CD 6 A B C D 7 A B C D A B C D 9 ABX D 10 A XX D This second example mentions that the following seats marked with X' are reserved: l B, 5B, 9C, 10B, 10C

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!