Its human error, haha. I do not know how to get it to repeat 3 times, with each time it saying TEST #1, TEST #2, TEST #3 before entering in grade letter.
You are making things complicated with the while loops.
I am posting my quick changes.
Trying to help you since I do not have time to go over your logic.
But read it step by step and analyze it so you understand it for your own good
and make any changes that you like.