@SycoSinsYet, another school assignment? (http://forum.lazarus.freepascal.org/index.php/topic,31535.msg202197.html#msg202197) You should do your homework yourself. We can always help.
If it's a school assignment your teacher is probably reading this forum... . If you can't manage to get started with programming it's probably not your cup of tea and it doesn't matter. Unless you're at a high level in your cursus (which is really quite unlikely when I look at the other Q) then it's probably a low coefficient module...so just give up.