Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Track a marathon runner’s average running speed using MATLAB. The winners in the

ID: 3640708 • Letter: T

Question

Track a marathon runner’s average running speed using MATLAB. The winners in the marathon usually run 42 km in 2 hrs
Calculate his/her average speed in km/hrs. Depending on his average speed, tell the user whether his/her current running time is sufficient, whether he/she needs to train twice as much, whether he/she needs to participate just for the free goodies they give when signing up.

Once the average speed (in km/hour) is determined, the following rules apply:
Average speed > 21 km/hr ?good chance of winning
21 km/hr = Average speed > 18 km/hr ?need to train just a little more
18 km/hr = Average speed > 10 km/hr ? need to train twice as much
10 km/hr = Average speed ?participate just for the goodies.

Explanation / Answer

Hope this helps answer='y'; while answer=='y' disp('This program is used to track the marthon runners speed ') % Get user input length=input(' Enter the length of the track in kilometers:> '); % Error Statement while length
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote