My professor specifically told us not to use global variables for our assignment. From my understanding, a global variable is something like an 'int x =2;' outside of a function.
Do I have any global variables in my code?
I don't see one in your code.
they can be accessed by any function, class, anything. Its hard to tell what the current value is, and to debug, and more. They cause a lot of trouble in large programs.