Answered step by step
Verified Expert Solution
Link Copied!

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

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

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

Students also viewed these Databases questions

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago