Need some help for a science project.

Have you tried uploading the example sketches?

JimboZA:
My advice is to grab your Arduino and work through the simple examples on this site, such as good old Blink. Then grab a servo and a potentiometer and work through the two servo examples, namely Sweep and Knob.
I really think that to start, you have to get your mind how an Arduino program hangs together and how a servo is controlled.

Good luck!