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.
![Aircraft Fuel Calculator
Distance in nautical miles: 180
Flight time: 1 hour (s) and 30 minute (s)
Required fuel: 16.8 gallons
Continue? (y/n): y
Distance in nautical miles: 121
Flight time: 1 hour (s) and 0 minute (s)
Required fuel: 12.7 gallons
Continue? (y/n): n
Bye!
>>> |](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbb3240ae-2005-40b3-8459-0cf194c4fc3f%2F2755c70e-837e-4258-a167-c68435607cf1%2Fr7o797_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)