Solution Review: Assign Grades to Students
Have a look at the solution to the 'Assign Grades to Students' challenge.
We'll cover the following...
We'll cover the following...
Rubric criteria
Solution
Rubric-wise explanation
Point 1:
Look at line 9. We declare the header of the assignGrades() function: public static char assignGrades(double score). We add the static keyword so that we can directly call this method in the main function without any instance.
Point 2, 3, 4:
-
Look at line 11. We add a condition next to an
ifkeyword. If thescoreis equal to , then we ...