Question: written in C + + . Airplane Fleet Application Program This project involves designing and creating a C + + program that contains three C

written in C++. Airplane Fleet Application Program This project involves designing and creating a C++ program that contains three C++ classes, as described below: The parent class is the Airplane class. The CargoPlane and PassengerPlane classes are sub-classes of the Airplane class. A UML diagram of this class relationship is shown below: The program must be organized as a "Command Loop" program, similar to the Command Loop sample program that we discussed during an earlier class. (Refer to the Ch06_sample_code_CommandLoop... resource in the Sample Code section of Moodle.) The program must implement the following interactive commands: [ a Add a new airplane to the fleet.; f Fly a plane in the fleet.; h print Help text.; p Print current fleet information.; q Quit (end the program).; r Remove airplane from the fleet. ](Specific requirements for each command are stated in the Requirements for Interactive Commands section of this document.) The program must create a vector of pointers to Airplane objects: the main function must have a local variable defined as shown here:
vector Airplane ^ fleet;
The fleet vector becomes an argument for the functions that process each of the user commands. Each Airplane object must be dynamically allocated when the user executes the "a" command.Requirements for Interactive CommandsSample Interactive Session In the sample data on the next several pages, what the user types is shown in bold. In actuality, what the user types would have the same text format as the rest of the output. 1|c| Sample Interactive Session
Removal complete: Airplane [ID#: 2, manufacturer: Lockeed, model : L-1011, year: 1992,
hours: 67450, max passengers: 160] has been removed.
Enter command (or 'h' for help) : P
Current fleet contains 2 airplane(s):
ID# : 1, manufacturer: Boeing, model: B747-400F, year: 1996, hours: 65300, max cargo: 95000
ID# : 3, manufacturer: Airbus, model: A-350, year: 2004, hours: 45634, max passengers: 205
Enter command (or 'h' for help) :
Are you sure that you want to exit the program?

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!