Question: Chapter 11 Arrival Time EstimatorCreate a program that calculates the estimated duration of a trip in hours and minutes. This should include an estimated date/time
Chapter 11 Arrival Time EstimatorCreate a program that calculates the estimated duration of a trip in hours and minutes. This should include an estimated date/time of departure and an estimated date/time of arrival.ConsoleSpecificationsFor the date/time of departure and arrival, the program should use the YYYY-MM- DD format for dates and the HH:MM AM/PM format for times.Create a single data/time string variable based on the two input variables. Use this combined string variable to create a departure date-time object that will be used to determine the estimated arrival date and time.For the miles and miles per hour, the program should only accept integer entries, such as 200 for miles or 65 for mph.Calculate the hours travelled based on the integer division of miles divided by mph. The minutes are based on the remainder of miles divided by mph. The remainder must then be converted to minutes based on the mph. Use the hours and minutes to create a time delta object.Assume that the user will enter valid data.Arrival Time EstimatorEnter date of departure (YYYY-MM-DD): 2020-11-23Enter time of departure (HH:MM AM/PM): 10:30 PMEnter miles: 480Enter miles per hour: 75Estimated travel time Hours: 6Minutes: 24Estimated date of arrival: 2020-11-24 Estimated time of arrival: 04:54 AMContinue? (y/n): yEnter date of departure (YYYY-MM-DD): 2020-12-01Enter time of departure (HH:MM AM/PM): 11:00 AM Enter miles: 500Enter miles per hour: 80Estimated travel time Hours: 6Minutes: 15Estimated date of arrival: 2020-12-01 Estimated time of arrival: 05:15 PMContinue? (y/n): nBye!
please code in python and as simple as possible, thank you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
