Welcome to LQ!
As noted already, asking others to do homework is not acceptable use of the Programming forum, although most here are glad to help when you get stuck if you will show your work and the part you are having trouble with.
Please review the
Site FAQ for guidance in asking well formed questions. Especially visit the link from that page,
How to Ask Questions the Smart Way for discussion of things to consider when asking others for help.
Good luck!