How far have you got and where are you stuck?
We won't write the code for you but we will help you work it out.