MIKES279
- 15
- 1
thats not in C or C++?jbriggs444 said:Guessing that you meant to write that a block is moving upward at 2.18 feet / sec^2, unimpeded by anything other than gravity.
The easy way to approach this from first principles is to start by computing how long it will take for the object to slow to a stop. That result can be obtained by $$t = \frac{v}{a}$$where ##t## is the time it takes, ##v## is the initial upward velocity and ##a## is the downward acceleration of gravity. In units of feet and seconds, the acceleration of gravity is approximately 32.2 feet per second squared.
Since the acceleration is uniform, the average velocity is the mean of the initial velocity and the final velocity. The final velocity is zero, so this simplifies to$$v_\text{avg}=\frac{v}{2}$$where ##v_\text{avg}## is our sought-after average velocity and ##v## is the given 2.18 feet per second^2.
The upward distance travelled will be the product of the two:$$h = v_\text{avg} t = \frac{v}{a} \frac{v}{2} = \frac{v^2}{2a}$$If we use a calculator we can calculate:
Elapsed time: 67 milliseconds.
Average velocity: 1.09 feet per second
Height gained: 0.737 feet = 0.885 inches