1. Engineering
  2. Computer Science
  3. introduction aprojectile is launched with a velocity in ms and...

Question: introduction aprojectile is launched with a velocity in ms and...

Question details

INTRODUCTION: Aprojectile is launched with a velocity in ms and at an angle α (alpha) in degrees. See the illustration to the right. The Cartesian coordinates (x.y()of the projectile as a function of time are computed by x(t)-u*cos α * t y(t) = u * sin α * t--gt2 where v is velocity in m/s, t is time in seconds, and g is the gravitational constant 9.81 m/s. The Polar coordinates (r(t),6(t)) for down range distance in meters and angle θ (theta) in degrees of the projectile as a function of time are computed by: r(t) =F(t)2 + y(t)2 y(t) tan θ-a(t) Note: To compute theta use either the atan or atan2. ASSIGNMENT: write a C program that will prompt the user to enter the velocity in ms the angle α (alpha) in degrees, and the in seconds. After entering the input values, the program will compute the Cartesian coordinates and the Pola coordinates. Print the results to the computer screen using the format given below. Use your PCs cursor to determine the horizontal and vertical spacing from the output format as well. ne OUTPUT FORMAT PROJECTILE POSITION CALCULATIONS Enter projectile velocity in m/si x Enter projectile angle in degrees: x Enter projectile time in sesonds.. x To test your program use numbers within the following ranges RESULTS Velocity of the projectile-xxxx m/s Angle of the projectilexxxx deg Time of the projectile x s Velocity: 50-100 Alpha: 45-70 Time: 1-10 Cartesian Coordinates x(t) y(t) Polar Coordinates theta(t) c(t) 228x
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution