Compute all parts of following problem given below:
Problem: A 2.9kg block slides with a speed of 1.3m/s on a frictionless horizontal surface until it encounters a spring.
Part A: If the block compresses the spring 4.8 cm before coming to rest, what is the force constant of the spring?
Part B: What initial speed should the block have to compress the spring by 1.2 cm?
Please show all work and steps to determine what initial speed should the block have.