We won't do your exam for you, and we probably sent that message by not responding as quickly as you needed. If you intend to hang around, please read
this topic to learn how to post code correctly along with other useful info for newcomers.
Hints: Avoid using topic titles like, "Exam Question," "Help with Test/Homework," or "Urgent Help Needed." Those get a laugh and are often passed by. Instead, present the problem as generically as you can and OFFER YOUR ANSWER or your best effort, and then ask the forum for feedback. Show that you made an attempt rather than just appearing to lazily sponge any answer/info you can soak up.
Hope to see you around. Good luck!