This isn't a code service - no one is going to do this for you. Dumping homework such as this is unproductive at best. Make an attempt, and if you stumble along the way post a concise question along...