Answered step by step
Verified Expert Solution
Link Copied!

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++ ------------image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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: 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

3. Comment on how diversity and equality should be managed.

Answered: 1 week ago

Question

describe the legislation that addresses workplace equality

Answered: 1 week ago