Here is my take on it, hope it helps.

- Moved int a outside the loop.

- Removed the "break;" statement that was in the last else statement, and replaced it with a = -1;. I also added"(gpa<2.0...