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

The position as a function of time (x,y) of a projectile fired with a speed v, a

ID: 3739102 • Letter: T

Question

The position as a function of time (x,y) of a projectile fired with a speed v, at an angle ? is given by 2. y Vosin(a)*t-0.5gt2 where g is the gravitational acceleration 9.8m/s). Use while-end loon to calculate the trajectory (x.y) of a projectile fired at a speed Vo-10m/s and an initial angle(a of 4Your program must stop once the projectile reaches the ground. Úse the values of x,y to plot the trajectory of the projectile Given vector Z [1 45 13 2 34 11 45 21 24 6 18 7 3 11 21 2 3 56 15 10 25 1 5 2 22 9], write a script file that will determine the number of elements in vector Z with value greater than 0 and less than 20. Your program must use loops and must display the final answer using an fprintf command. 3.

Explanation / Answer

%one question at a time

g=9.8;
t=0;
a=45;
v0=10;
i=1;
while true
x(i)=v0*cosd(a)*t;
y(i)=v0*sind(a)*t-.5*g*t*t;
if (y(i))<0
y(i)=[];
x(i)=[];
break;
end
t=t+.01;
i=i+1;
end
plot(x,y)

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