A spring-loaded gun fires a 0.100-kg puck along a tabletop. The puck slides up a curved ramp and flies straight up into the air. If the spring is displaced 12.0 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?