Grade the test
Three scores are in. Work out the average and turn it into a letter grade — the way a teacher's spreadsheet would.
Given for you: test1, test2, test3
Build:
average— the mean of the three scores, rounded to 1 decimalgrade—Afor 90+,Bfor 80+,Cfor 70+,Dfor 60+, otherwiseF
Print the average, then the grade, one per line.
The autograder reruns your program with different scores, so write the rules once and use variables — never the numbers 88, 92 and 79 directly.