Given S(t) = -16 t 2 +160 t
For S to be maximum its first derivative with respect to time should be zero
dS/dt =0
-16x2t +160x1 = 0
-32t =-160
t=5 sec which is time it takes to reach maximum height
To get maximum height
S= -16x5x5 +160x5 = -800 +400 = 400 ft