Um, that's not the way a forum works, first you have to post your code and tell us exactly where you're stuck. And you did say
> Help me out in coding this
but it looks more like you're hoping that someone will do the entire job for you.
Some valuable tips here:
How To Ask Questions The Smart Way
db