We have to remember a point , which is ' the cart or spring rest on a smooth horizontal track ' , i.e., any frictional force doesn't take place.
Step-by-step explanation:
a) According to the question the cart is pulled to position A and released, i.e., the velocity of the cart at A initially (say time,t=0) is 0 m/s ,then moves toward position E, where it reverses direction and returns again to position A , in the 2nd phase cart moves along A to E , the cart's velocity increase and again goes to zero at point E and again change the direction, hence
( File has been attached)
b) Let's , the distance between two consecutive points is x meter and the spring constant is k N.m
c) ( File has been attached)
d) Movinf Right
e) Moving left