A common situation dealt with in engineering and physics is that of projectile motion. The equation for the height of a projectile, y (m), is: y=-() gt? + V, sin(0)t+y. g= Acceleration due to gravity:...

A common situation dealt with in engineering and physics is that of projectile motion. The equation for the height of a projectile, y (m), is: y=-() gt? + V, sin(0)t+y. g= Acceleration due to gravity: 9.81 m/s2 t = Time (seconds) Vo = Initial Velocity of Projectile (m/s) 0 = Launch Angle (degrees) yo= Initial height of the projectile (m) The equation for the horizontal distance traveled by the projectile, x (m), is: x = V, cos(O)t Assuming y, is zero, the time at which the projectile impacts the ground is given by: 2. Vo sin(0) Timpact = = - assuming y. = 0 Assuming y. is zero, the time at which the projectile reaches the maximum height is given by: Tmax _V, sin(0) " 7 assuming y. = 0 g Download the text file, Projectile.txt, from the Community Site. The first column in the text file is initial velocity (m/s) and the second column is launch angle (degrees). Write a Python script that will: . Read the data from the Projectile.txt file For each initial velocity and launch angle, compute Timpact, Maximum Height, and the Horizontal Distance and save the values in lists. Assume yo = 0 and compute horizontal distance at the impact time. Remember: trig functions are in the math library and use radians Write the results along with the initial velocity and launch angles in a new text file called Projectile_Results.txt. The first column should be initial velocity, the second column should be launch angle, the third column should be impact time, the fourth column should be maximum height, and the last column should be distance. The first few lines of your Projectile Results.txt file should look like this: O X Projectile_Results.txt -... - File Edit Format View Help 10 15 0.5 0.3 5.1 10 30 1.0 1.3 8.8 10 45 1.4 2.5 10.2 100% Windows (CRLF) UTF-8
May 25, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here