This seem like someone's homework avoidance ploy...
You care to elucidate why you can't complete this on your own? Or ask questions about something you've already worked on but can't figure out how to complete?
Just asking for code doesn't give anyone any incentive to help...I'm certainly not going to search for you or write the code for you.