Question: Write a program that will calculate the trajectory of a golf ball thrown with a velocity of 25.6 m/s at an angle of 0

Write a program that will calculate the trajectory of a golf ball  

Write a program that will calculate the trajectory of a golf ball thrown with a velocity of 25.6 m/s at an angle of 0 = 35 relative to the horizontal, from a hill that is 2.1 meters above the ground level. The golf ball is thrown opposite to a tree located at the ground level 1.35 meters away from the golfer. Calculate the ball's x (x = xo+ vo*cos0*t) and y (y = yo+vo*sino*t- g*/2) positions at every 0.1 seconds after the throw until the ball reaches the ground (1-0). Use float variable type for floating-point numbers and print the output to a file. Plot the golf ball trajectory (using Excel). From the output data, estimate the approximate time when the golf ball hits the ground level and its distance from the tree.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python program that calculates the trajectory of a golf ball based on the given context im... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!