Originally Posted by CodyJava
its a homework assignment and we were suppose to call it submit() so no answer on why it doesn't work just critique?
I said - Why does it not work? Hint - look for missing closing braces.
We are not here to do your homework for you.
If your teacher has told you to name a function submit() - get a new teacher!