Your logic is flawwed... You're asking grad to be 'A', 'B', 'C', 'D', and 'F' at the same time, which it can't.

Switch the exclusive or logic to exclusive and (&&)