Question: In Python using if statements: Write a program that asks the user for the locations of the on-ramp and exit they plan to use on

In Python using if statements:

In Python using if statements: Write a program that asks the user

Write a program that asks the user for the locations of the on-ramp and exit they plan to use on the highway. It also needs to ask for how many hours until the traveler needs to arrive at their destination, and an expected average speed. The program will calculate the distance to travel and the expected travel time, given the expected average speed. Finally, the program will give one piece of advice, using this strategy: if the expected average speed is above 80 MPH, the user will be travelling dangerously (and breaking the law), warn them if the expected average speed is less than 60 MPH, the user will be causing problems on the highway, warn them if the travel time is larger than the time when the user wants to arrive, tell the user how late they will be if none of the above contiditions occur, tell the user how far they will travel, and how long they have to leave in order to be on time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!