Question: Using C and only include stdio.h and math.h libraries. The Flight of a Ball: If we assume negligible air friction and the curvature of the
Using C and only include stdio.h and math.h libraries.
The Flight of a Ball: If we assume negligible air friction and the curvature of the Earth, a ball that is thrown into air from any point on the Earths surface will follow a parabolic ight path. The height of the ball at any time t after it is thrown is given by: y(t) = y0 +vy0t-0.5gt2 where y0 is the initial height of the ball, vy0= v0 sin is the initial velocity of the ball along y or vertical direction, and g is the acceleration due to gravity. The horizontal distance (range) travelled by the object is given by: x(t) = x0 + vx0t where x0 is the initial horizontal position and vx0 = v0 cos is the initial velocity of the ball along x or horizontal direction. Assume, that the intial velocity v0 = 20 m/s at an initial angle . Calculate the values of range and height for angle between 0 and 90 in steps of 5. Determine the angle that will result in maximum range for the ball. Plot the trajectory of the path for dierent angles in dierent colors.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
