At time t, the velocity v of an object undergoing simple harmonic motion at the end of a spring is given by the formula


v = A * √ k / m * cos ( √ k / m * t )

Here, m is the mass of the object (in g), k is a constant depending on the spring (in g / s2), A is the maximum distance the object moves, and t is the time (in s).
Write a C program which...