no one is going to do your homework for you, try, then post the code and tell us where are you stuck