Assignment: Lesson 1 Wrap-up | Week-2

Assignment: Lesson 1 Wrap-up | Week-2

Coursera
Introduction to Programming with MATLAB
Week 2

 Assignment: Lesson 1 Wrap-up 

 Question:  

1- As of early 2018, Usain Bolt holds the world record in the men’s 100-meter dash. It is 9.58 seconds. What was his average speed in km/h? Assign the result to a variable called hundred.

2- Kenyan Eliud Kipchoge set a new world record for men of 2:01:39 on September 16, 2018. Assign his average speed in km/h to the variable marathon. The marathon distance is 42.195 kilometers.

 Input: 

distance_of_usain_bolt = 100
distance_of_usain_bolt_in_km = distance_of_usain_bolt/1000

time_of_usain_bolt= 9.58
time_of_usain_bolt_in_hour= time_of_usain_bolt/3600

hundred=distance_of_usain_bolt_in_km/time_of_usain_bolt_in_hour



distance_of_eliud= 42.195


time_of_eliud_in_minute=2*60+1+(39/60)

time_of_eliud_in_hour=time_of_eliud_in_minute/60

marathon=distance_of_eliud/time_of_eliud_in_hour

Output: 
distance_of_usain_bolt =

100


distance_of_usain_bolt_in_km =

0.1000


time_of_usain_bolt =

9.5800


time_of_usain_bolt_in_hour =

0.0027


hundred =

37.5783


distance_of_eliud =

42.1950


time_of_eliud_in_minute =

121.6500


time_of_eliud_in_hour =

2.0275


marathon =

20.8113
The above questions are from “Introduction to Programming with MATLAB” You can discover all the refreshed questions and answers related to this on the “Introduction to Programming with MATLAB – Coursera Quiz Answers By Coursera” page. If you find the updated questions or answers, do comment on this page and let us know. We will update the answers as soon as possible.


Do Not Only Use These Quizzes For Getting Certificates.You Can Take Help From These Quizzes Answer. All Quizzes & Contents Are Free Of Charge. ✅

If You Want Any Quiz Answers Then Please Contact Us

Leave a Comment