Question: Must be done in Python coding language. please No syntax errors. Thank you!! Project 11-2: Arrival Time Estimator Create a program that calculates the estimated
Project 11-2: Arrival Time Estimator Create 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. Console Arrival Tire Estinator Estimated date of departure (YYYYMMDD):20161123 Estimated time of departure (HH:MM NM/PM) =10:30NM Enter mileat 200 Entar miles per hour: 65 Eatisated traved time Hours: 3 Minutes: 5 Estimated date of arrival: 20161123 Estinated time of arrival: 01:35PM Continue? (y):y Estimated date of departure (YYYYMMDD);20161129 Estimated tlime of departure (HH:MM NM/PM) : 11:1.5 PM Entex miles: 500 Enter miles per hour: 80 Estimated travel time Hours : 6 Minutes: 20 Zstinated date of arrival: 20161130 Eatimated time of arrival: 05:35kM Continue? (y):n Aye: Specifications - For the date/time of departure and arrival, the program should use the YYYY-MM-DD format for dates and the HHSMM AMPM format for times. - Remember date and time will be a str format when input. Has to be converted to datetime \# get departure date/time dep_date str - inpur("Etimated date of departure (YYYY-MM-DD):") dep time str - input( "Estimated time of departure (HH:MM AM/PM):") H convert str to datetime dep_str in dep_date str +" " + dep time str dep_datetime = datetime strptime(dep_str, %Y%hm%d%1%M%p) - For the miles and miles per hour, the program should only aceept integer entries like 200 and 65 . - Assume that the user will enter valid data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
