Question: c++ program 1- Airplane An airplane model can be described (highly oversimplified) by the following attributes name: String empty weight: double number of seats: int

c++ programc++ program 1- Airplane An airplane model can be described (highly oversimplified)

1- Airplane An airplane model can be described (highly oversimplified) by the following attributes name: String empty weight: double number of seats: int fuel Consumption: double a) Define a class AirplaneModel with the attributes defined above b) Your class should contain the following member functions: A default constructor that initializes the class's attributes. A constructor that sets the attributes. getName() to get the model's name getEmptyWeight() to get the model's empty weight getSeats() to get the number of seats getFuelConsumption() to get the fuel consumption setName() to set the model's name setEmptyWeight() to set the model's empty weight setSeats() to set the number of seats setFuelConsumption() to set the fuel consumption setSeats(int seats): to set the number of seats to an airplane AddSeats(int seats): to add seats to an airplane. of seats, and fuel Consumption. d) Call your class with a method main that constructs one airplane model and performs the following Initialize one airplane model. The airplane has 200 seats. Display the number of seats of the airplane Add 50 seats to the airplane Display the number of seats of the airplane. Display a report about the airplane

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!