Is there a better way to do this than adding output = GRADE + gradeOut; between each if statement? Also how can I loop it back to the beginning if the score is invalid?
== is for comparison and = is for assignment. So lines 20 , 25 , 30 , 35 , 40 , and 45 should be =
Also on line 12 you are assigning the output when gradOut is undefined. You should get gradeOut first.
Last thing to mention when you do else if that means it has to check the previous ones first. So you could do if score is less than equal 59...else if score is lessthan or equal to 69...ect.
Awesome! Thank you very much! I did what you said about changing == to = and then I changed string output = GRADE + gradeOut; to just string output; and then added output = GRADE + gradeOut; to each if statement. Now it works :)