Can somebody help me plot the function x0 + v0t – gt^2/2, which is the displacement in meters after t seconds when an object is thrown straight up from initial position x0 at velocity v0 meters per second and where g is the constant 9.78033 (gravity).
Using StdDraw, I need to set the x scale to 20 and the y scale to 500.
Any help would be much appreciated. Thanks!
The name of my program is called GravityPlot.