The program is an illustration of conditional statement
Conditional statements are statements used to make decisions
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