Greg F. answered 04/12/20
Math Expert|Masters in Electrical Engineering|7 Years Experience
Since gravity is constant, you can use a uniform acceleration equation:
vf2 = v02 + 2ad, where v is the velocity, a is the acceleration due to gravity, and d is the displacement. You are given vo, you should know the gravitation acceleration, and with some careful thinking, you can logically conclude what vf must be when the ball reaches its maximum height. So then you simply need to solve for the displacement.
Work is simply the change in kinetic energy plus the change in potential energy. If there is no potential energy at the ball's initial launch, then it's energy is made up entirely of kinetic energy. Once the ball reaches it's peak, it has no kinetic energy left. Therefore, the change in energy is simply how much kinetic energy the ball had at the very beginning.
Use the formula to for calculating kinetic energy to figure out how much work gravity did.