mechanical energy is conserved because no dissipative forces perform work on the ball.the forces of gravity and the spring have potential energies associated with them.no conservative forces act in this problem after the ball is released from the launcher.