Sorry, we don't do homework for people, as stated in this forums rules.
What we will do is help you to get the program running, but only by helping you along the way - you will have to do the thinking.
So, as you presumably have been taking classes, come up with a program for this and come back to us with your code if you don't know how to continue or if you don't understand something.