In my past answer, I already answered to this question (somehow), and also I got some doubt about your school:
how to do it... give me some idea... this is my lab program.[
^].
Now your school is even worse suspect. :-) What, shall we expect that the whole crowd of student who got identical assignment will ask the same question here over and over? Did they try to teach your to be creative?
—SA