Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 subclasses 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 ChsamplecodeCommandLoop... 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. c Sample Interactive Session
Removal complete: Airplane ID#: manufacturer: Lockeed, model : L year:
hours: max passengers: has been removed.
Enter command or h for help : P
Current fleet contains airplanes:
ID# : manufacturer: Boeing, model: BF year: hours: max cargo:
ID# : manufacturer: Airbus, model: A year: hours: max passengers:
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
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