Question: Question 2 : Create a program that calculates the amount of time and fuel to fly a specified distance. ( 2 0 pts . )
Question : Create a program that calculates the amount of time and fuel to fly a specified distance. pts
Aircraft Fuel Calculator
Distance in nautical miles:
Flight time: hours and minutes
Required fuel: gallons
Continue? yn: y
Distance in nautical miles:
Flight time: hours and minutes
Required fuel: gallons
Continue? yn: n
Bye!
a Assume that an aircraft can fly nautical miles knots per hour. Assume that an aircraft burns gallons of gas per hour. Create two variables to represent these two constant values. pts
b For safety, add a half hour to the flight time when calculating the amount of required fuel. pts
c Round the amount of required fuel to decimal place. pts
d Create a loop structure. The program should continue only if the user enters y or Y to continue. pts
e Display the messages shown in the screenshot. Use fstring to format the output of Flight time and Required fuel. pts
Assume the user will enter valid data.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
