I believe that the code I have it correct
Have you even tried to compile it yet?
I have been told by my proffessor that my syntax is wrong in many places
many places is right.
For a start, C statements are terminated with a semicolon. You need a lot of them.
The conditional part of an 'if' statement must be enclosed in parentheses.
Once you get rid of all the syntax errors, use the Tools|Auto Format menu to reformat the code into a more readable form.
Pete