It's not this forum's policy to make peoples' homework.
Please try your hand at a solution yourself, then come back to us if you have any specific questions or encounter any problems.
If you need any help getting started, please come back to us with the assignment and I'm sure somebody will be happy to take you through it step by step.