Answer:
k = 2.65 10² N / m
Step-by-step explanation:
As the pellets shoot up we can use energy conservation
Starting point. Compressed spring rifle
Em₀ = Ke = ½ k x²
Final point. Highest point of the path
= U = m g y
Energy is conserved
Em₀ = Em_{f}
½ k x² = m g y
k = 2 m g y / x²
Let's calculate
k = 2 1.06 10⁻² 9.8 6.26 / (6.61 10⁻²)²
k = 2.65 10² N / m