Hello,
We can't!
The idea of a community such as DaniWeb is for a group participation and learning by solving the problem. It is also unethical for A) us to do your homework, and B) for you to accept our work as your homwork. No! Your post also looks like a take-home exam. It is fortunate that your teacher/professor didn't put in contact information on the attachment, or someone who was really ethically motivated could have contacted him and caused you a lot of trouble.
What can we do?
You are the student. We can make suggestions to your code, and help correct it, but the guts of the code have to be yours. Spend an hour, and start with either a basic flow chart, or write down some psudeo-code (code that is not correct, but gets the idea) and we will build from there.
Anyone who just emails you the answer is not working with the spirit of learning, regardless of any impending deadlines.
We await your code submission...
Christian