A particle is projected vertically upward with an initial velocity u. If g is the acceleration due to gravity, then which one of the following is the greatest height h attained by it?
(a) h = $\frac{2u^{2}}{g}$
(b) h = $\frac{u^{2}}{g}$
(c) h=$\frac{\frac{1}{2}u^{2}}{g}$
(d) h=$\frac{\frac{1}{4}u^{2}}{g}$