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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here