You need to compare grade, which is a string, to other strings.
Code:
while (grade != -1)
That should be
Code:
while (grade != "-1")
And so on for the letters.

Also, a more logical keypress for the user to quit would be Q. -1 is thinking in programmer's terms, not end-user terms.