A spring-loaded gun fires a 0.080-kg puck along a tabletop. The puck slides up a curved ramp and flies straight up into the air.
(a) If the spring is displaced 24.5 cm from equilibrium and the spring constant is 875 N/m, how high does the puck rise, neglecting friction?
(b) If instead it only rises to a height of 5.00 m because of friction, what is the change in mechanical energy?