Need to write a python program that can

When flying, you should assume an average speed of 550mph, and I’ll only fly if the distance is equal to or over 1000 miles.
Driving speed is an average of 50mph and I will only drive if the distance is at least 50 miles but less than 1000 miles.
Walking speed is 3mph and I will always walk if the distance is less than 50 miles.
To get full credit, this program must use decision structures (if, if-else, if-elif-else) to solve the problems.

Output this information in a user-friendly format like what is shown below. Be sure to test all the possible outcomes! The number of hours it will take should be rounded to two decimal places (see video in the "Quick Videos" section of Canvas)

What's your name? Mickey Mouse

Where would you like to vacation? Denver

How many miles away is that? 1000

Hello Mickey Mouse

You want to vacation at Denver

For this trip you will fly

The trip will take you about 1.82?

Respuesta :

The program is an illustration of conditional statement

What are conditional statement?

Conditional statements are statements used to make decisions

The actual program

The program written in Python, where comments are used to explain each line is as follows:

#This gets input for name

name = input("What's your name? ")

#This gets the location

loc = input("Where would you like to vacation? ")

#This gets the distance

distance = float(input("How many miles away is that? "))

#This determines the speed and the status

if distance >= 1000:

   speed = 550

   status = "fly"

elif distance >= 50 and distance < 1000:

   speed = 50

   status = "drive"

else:

   speed = 3

   status = "walk"

#The next two lines print the output

print("Hello",name,"\nYou want to vacation at",loc,"For this trip you will",status)

print("The trip will take you about",round(distance/speed,2))

Read more about similar program at:

https://brainly.com/question/24833629