This is not how CP usually works. Most important goal here is to learn and help learning.
You are supposed to try it on your own, and come here when you got stuck with something, with a concrete question about your code, design, etc.
Please have a look to
What have you tried?[
^] to see a good explanation about what I mean.
Don't forget people here don't get payed. And besides, if we give you a ready-to-go solution, it is not going to help you because you are not going to learn anything from it.
As general approach:
Step 1) Do a little research. Google is a good start point
Step 2) Start coding
Step 3) Compile and use the debug to solve little issues
Step 4) When you get a problem you don't know how to solve
but at least you tried it, then come back and ask for something concrete with a snippet of the code giving problems
P.S. Written as solution to avoid this "question" to be in the unanswered list. If it gets improved, please drop a comment and I will edit or delete this message