Hey all I'm having trouble solving the last part of my code. I want to determine letter grade from the percentage score.When I try to run the code I get "You got a F" every time, no matter if the percentage is 90 or 50. Can any help me figure out what I'm doing wrong??
Look at what exactly that function does, line by line, and you should be able to tell what is going wrong. (Pay attention to the value of percentage.
Also, you make redundant checks in your else ifs. If execution reaches line 9, that would mean that line 5 was false. So percentage would be less than 95, yet you check for that in line 9 regardless. It will always be true, so you don't need it.