So start writing... think it through, work on how you need to do it with pencil and paper, once you understand the problem, design a solution and start writing your code.

If you get stuck (real stuck, not lazy stuck) post up the problem sections and we'll see what we can do...

Many here will help you sort it out, but we're not in the practice of simply handing out code on this forum...