Solve the all parts of given problem:
Problem: A 0.240-kg block along a horizontal track has a speed of 1.60 m/s immediately before colliding with a light spring of force constant 39.3 N/m located at the end of the track.
Part a: What is the spring's maximum compression if the track is frictionless?
m
Part b: If the track is not frictionless, would the spring's maximum compression be greater than, less than, or equal to the value obtained in part (a)?
I need expert help to solve the above problem.