Answer:
The program is given below with appropriate comments for better understanding
Step-by-step explanation:
#Program
# foot stride = 2.5 feet
# 1 mile = 5280 feet
no_stride_first_min = int(input('Enter the number strides made durng the first minute of jogging: '))
no_stride_last_min = int(input('Enter the number strides made durng the last minute of jogging: '))
avg_stride_one_min = (no_stride_first_min + no_stride_last_min)/2 # calculates the average stride per minute
jogging_duration = float(input('Enter the total time spent jogging in hours and minute: '))
jogging_duration_hours = int(jogging_duration) # gets the hour
jogging_duration_min = jogging_duration - int(jogging_duration) # gets the minute
tot_jogging_duration_min = jogging_duration_hours*60 + jogging_duration_min # calculates total time in minutes
dist_feet = (avg_stride_one_min*2.5)*tot_jogging_duration_min # calculates the total distance in feet
dist_miles = dist_feet/5280 # calculates the total distance in mile
print('Distance traveled in miles = {0:.2f} miles'.format(dist_miles))