Solve the all parts of given question:
Question: A 0.700kg block is attached to a spring with spring constant 15.0N/m. While the block is sitting at rest, a student hits it with a hammer and almost instantaneously gives it a speed of 37.0cm/s.
Part A. What is the amplitude of the subsequent oscillations?
Part B. What is the block's speed at the point where x= 0.400 A?
Please clarify the equations and steps are used to get the answer. Thanks!