Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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++ program
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 airplaneStep 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