Using C++, write a class that has the following properties and represents an airline flight from City A to City B. The class name must be Flight. * Flight no. it can be changed as the fleet grows (fleet information is not required for this class) * Departure city * Landing city o take - off and landing city can be changed depending on weather conditions (weather conditions information is not required for this class) * Take-off and landing city cannot be the same * Number of passengers it depends on the reservations * Aerial view distance between two cities * Enter a method that prints flight information on the screen * Flight time it can be changed depending on the route change (route information is not required for this class) O write the necessary methods for other variables that may change depending on them

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

Using C++, write a class that has the following properties and represents an airline flight from City A to City B. The class name must be Flight.
* Flight no.
it can be changed as the fleet grows (fleet information is not required for this class)
* Departure city
* Landing city
o take - off and landing city can be changed depending on weather conditions (weather conditions information is not required for this class)
* Take-off and landing city cannot be the same
* Number of passengers
it depends on the reservations
* Aerial view distance between two cities
* Enter a method that prints flight information on the screen
* Flight time
it can be changed depending on the route change (route information is not required for this class)
O write the necessary methods for other variables that may change depending on them

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning