The spring of a spring gun has force constant k =400 N/m and negligible mass. The spring is compressed 6.00 cm and a ball with mass 0.0300 kg is placed in the horizontal barrel against the compressed spring.The spring is then released, and the ball is propelled out the barrel of the gun. The barrel is 6.00 cm long, so the ball leaves the barrel at the same point that it loses contact with the spring. The gun is held so the barrel is horizontal. Calculate the speed with which the ballleaves the barrel if you can ignore friction. Calculate the speed of the ball as it leavesthe barrel if a constant resisting force of 6.00 Nacts on the ball as it moves along the barrel. For the situation in part (b), at what position along the barrel does the ball have the greatest speed?