Please help with these questions:

1.A marble is placed on the end of a horizontal oscillating spring. For the given signal determine:

i) the period, T, in seconds

ii)the frequency, f, in hertz

iii) the amplitude, A, in volts

2. consider a simple pendelum that has a length of 50cm and a maximum horizontal displacement of 8cm.

a) find the period of the pendelum

b) determine a function that gives the horizontal position of the bob as a function of time

c) determine a function that gives the velocity of the bob as a function of time

d) determine a function that gives the acceleration of the bob as a function of time

My teacher said that the horizontal position is also the displacement function; the velocity is the derivative of the displacement function and acceleration is the derivative of the velocity function. Please clarify. Thanks.