This site isn't a place for people to just post their assignments and have experts come up with a solution for it for you from scratch - you should always try something yourself first, and then post a question, to make the site more useful to future visitors, to make it clear what exactly the roadblock you're running into is. See softwareengineering.meta.stackexchange.com/questions/6166/… — CertainPerformancejust now