MatLab - Cody Solutions A sprinter starts from rest, that is with a velocity of
ID: 3662341 • Letter: M
Question
MatLab - Cody Solutions
A sprinter starts from rest, that is with a velocity of 0 m/s, and accelerates to a velocity of 20 m/s during a time interval of 20s Initialize variables u and v appropriately to store the initial and final ve locities, respectively, of the sprinter, and the variable t to store the elapsed time. Note: This step has been done for you in your solution template Obtain the acceleration of the sprinter and assign it to a variable called a he expression for the acceleration is given by Obtain the distance traveled by the sprinter. The expression is given by 2a Assign the answer to d Write the expression for the kinetic energy of the sprinter at the end of the Sprint and assign it to variable E. Assume that the mass m of the sprinter is 50 kg. The expression for the kinetic energy is given by: mavExplanation / Answer
Good Wishes,
1).
I initialized variables u and v to store initial and final velocities, rspectively
u= 0
v= 20
variable 't' is used to store the elapsed time
t=20
2).
The acceleration of the sprinter is obtained and assigned to 'a' as follows
a= (v-u)/t
3).
The distance traveled by the sprinter is calculated and stored the result in 'd' as follows
d= ((v*v) - (u*u))/(2*a)
4).
Assuming mass m =50
I calculated kinetic energy of the sprinter at the end of sprint and assigned it to variable 'E'
E= (1/2)*m*v*v
Complete Program:
u= 0;
v= 20;
t=20;
m=50;
a= (v-u)/t
d= ((v*v) - (u*u))/(2*a)
E= (1/2)*m*v*v
Output:
a= 1
d= 200
E= 10000
Hope this is clear. Please share your valuable comments.