What you've done is to post your entire assignment without showing what work you've done, and that is not how to get help here (or at any forum). For one, we have no idea what you're having trouble with, so we won't know how to advise you. For another, it suggests that you want someone to post a complete solution, thereby doing your homework for you, and I know that this was not your intent.
So please try to solve the problem first, and then post what you've done using code tags (see the FAQ), and then ask a specific question. Do this and you'll have many folks willing to help you.
If you have absolutely no idea where to start, please have a look at this site here as it will give you some ideas: Starting Writing a Program
If you're still having problems, then please talk to your instructor.