Question: using python Arrival Time Estimator Create a program that calculates the estimated duration of a trip in hours and minutes. This should include an estimated
using python
Arrival Time Estimator
Create a program that calculates the estimated duration of a trip in hours and minutes. This should include an
estimated datetime of departure and an estimated datetime of arrival.
Console
Arrival Time Estimator
Estimated date of departure YYYYMMDD:
Estimated time of departure HH:MM AMPM: : AM
Enter miles:
Enter miles per hour:
Estimated travel time
Hours:
Minutes:
Estimated date of arrival:
Estimated time of arrival: : PM
Continue? yn: y
Estimated date of departure YYYYMMDD:
Estimated time of departure HH:MM AMPM: : PM
Enter miles:
Enter miles per hour:
Estimated travel time
Hours:
Minutes:
Estimated date of arrival:
Estimated time of arrival: : AM
Continue? yn: n
Bye!
Specifications
For the datetime of departure and arrival, the program should use the YYYYMMDD format for dates and
the HH:MM AMPM format for times.
For the miles and miles per hour, the program should only accept integer entries like and
Assume that 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
