Question: In this question, you will need to write a function and a script file that uses the function: a ) An object thrown vertically with

In this question, you will need to write a function and a script file that uses the function:
a) An object thrown vertically with a speed v0[m/s] reaches a height h [m] at time t [s], where
2
0
2
1
h = v t gt
Write a local function height that computes the height for given values of t and v0. The
function will take speed and time as the input parameters, with g =9.81m/s2
.[14 points]
b) Write a script that calls the local function height and computes the height of the object
as a function of time from 0 to 10 seconds, first with v0=5m/s, and then with v0=3m/s.
Plot both in one graph. Choose a proper time-step. Include the labels for both the
horizontal and vertical axes. Include proper legend.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Finance Questions!