previous | start | next

If statement Example 3

Write a method String letterGrade(int score) that returns the letter grade for a test.

The letter grade should be computed from the score by

   A: >= 94
   B: >= 85
   C: >= 76
   D: >= 67
   F: >= 0
     


previous | start | next