I'm having a problem getting this code to work properly. When I run it, no matter what selection I put in it gives me the "Invalid Selection" error. Any ideas?
Please excuse any sloppiness and feel free to critique any methods as I am only looking to improve upon what I already know.
Main thing I see as a problem, is that your variable for the selection is a char, but you're checking the input as an integer. Put single quotes around the 1 and 2 on lines 26 and 34, and that should be a big improvement.
Also, I'm not sure if it'll cause problems or not, but you have a variable called n on line 9 and it's an integer, but you've also declared an n, as a string, on line 17. Not sure, as I don't use classes very often.