How to do this exercise? COP2002: Programming Logic & Design with Python Project 5 Project: Create a program that calculates the amount of time and fuel for a 1980 Cessna 172N to fly a specified distance. The output of your program should look as shown: Sample Console Display: Specifications • Assume that a 1980 Cessna 172N can fly 120 nautical miles (knots) per hour. • Assume that a 1980 Cessna 172N burns 8.4 gallons of gas per hour. • For safety, add a half hour to the flight time when calculating the amount of required fuel. • Round the amount of required fuel to 1 decimal place. For safety, always round up, never down. • Assume that the user will enter valid data. • Save the file with the filename xxx_flights.py (where xxx = your initials) or as defined by your instructor.
How to do this exercise?
COP2002:
Project 5
Project: Create a program that calculates the amount of time and fuel for a 1980
Cessna 172N to fly a specified distance. The output of your program should look
as shown:
Sample Console Display:
Specifications
• Assume that a 1980 Cessna 172N can fly 120 nautical miles (knots) per hour.
• Assume that a 1980 Cessna 172N burns 8.4 gallons of gas per hour.
• For safety, add a half hour to the flight time when calculating the amount of
required fuel.
• Round the amount of required fuel to 1 decimal place. For safety, always
round up, never down.
• Assume that the user will enter valid data.
• Save the file with the filename xxx_flights.py (where xxx = your initials) or as
defined by your instructor.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images