Simulating the Movement of a Spring

I am taking a Data Structures class in college, and I am looking in to an extra-curricular project of writing a program that simulates the movement of a weight on a spring moving. I am looking for at the end to be able to enter the spring constant, length when at rest, the mass of the weight and for the program to provide and equation of the sin function produced by the movement. I would just like some information or a resource as to where to start, I am pretty much overwhelmed right now. I have knowledge of classes, scopes, and all basic components of the C++ language.
Topic archived. No new replies allowed.