Is the assignment due in 3 to 4 hours?
If I am hired, your program is guaranteed to be free of memory errors, and as simplified as possible. You should have posted what is required for the assignment.
I recommend sending me a sample of code you have previously written, so that I can adapt my solution to your style.