Question: Question 3 (10 Points) Write a well-documented, Python program, hmwk103.py that simulates tossing a baseball, straight-up, in the air. The speed imparted to the baseball
Question 3 (10 Points) Write a well-documented, Python program, hmwk103.py that simulates tossing a baseball, straight-up, in the air. The speed imparted to the baseball is v. = 25 m/s. The equation of motion is y(t) = v.t-t. The physical parameter g = 9.8 Use Python lists to represent time t and the quantities y(t),y(t) and y(t). The latter two quantities are instantaneous speeds and accelerations respectively. The instantaneous speed is formed as an approximation y(t) = . Similarly, the instantaneous acceleration is y(t) = Hints: Use the range-operator to form the time list from 0 to 5.1 seconds in increments of 100 ms. Lists for y(t) and y(t) will have one and two less elements, respectively, than the list for y(t). Accordingly, set the first term of y(0) - 25. Similarly, set the first two terms y(0) - y(0.1) = 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
