I think if you're having trouble doing that, you should either have paid more attention in class, or maybe you should ask your instructor how to proceed, because getting the answer from us is cheating and will only hurt you in the long run.
Merlyn makes a very good point. At least make an attempt to write some code, so we can evaluate it, and possibly help, but if your unsure of the assignment, seek help with your instructor.