We don't do other people's homework. If you try and fail, you may post the code of your failed attempt and then you can ask about the specific problems that you suffered with it. Just don't ask for someone else to give you the whole thing without you doing an effort.