Develop a small airline reservation system define a class


Question: Develop a small airline reservation system. Define a class Flight Record with the following components:

a. Flight number (including airline code)

b. City of departure

c. Destination

d. Date and time of departure

e. Date and time of arrival

f. Number of first-class seats still available

g. Number of first-class seats sold

h. Number of coach seats still available

i. Number of coach seats sold Define a class Flight Database that includes a component that is an array of Flight Record objects. The database of flight information should be kept in a file. Your program should define member functions make - Reservation, cancel Reservation, and find Flight Data for class Flight Database. Functions make Reservation and cancel Reservation should take data interactively from the user and modify the Flight Database object accordingly. Function f and Flight Data should also take data in interactively and should display the entire Flight Record object of the flight desired. Your program should also provide a facility for creating a Flight Database object from the data in a file and should overload the « and » operators for class Flight Record.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Develop a small airline reservation system define a class
Reference No:- TGS02578070

Expected delivery within 24 Hours