In a spring gun having spring constant a small ball of mass is put in its barrel (as shown in figure) by compressing the spring through . There should be a box placed at a distance on the ground so that the ball falls in it. If the ball leaves the gun horizontally at a height of above the ground. The value of is .

