Create a program defining a class Flight that contains the following information: Flight number Destination Distance Fuel Create the constructor, a function that allows the user to input the data, and...


Create a program defining a class Flight that contains the following information:


Flight number


Destination


Distance


Fuel


Create the constructor, a function that allows the user to input the data, and a function that prints out the data to the screen.


The fuel should be calculated based on the distance, such that


fuel = 500 if distance


fuel = 1000 if distance


fuel = 2000 if distance


fuel = 2500 if distance > 2000 mi

Apr 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here