Style
Explain why, at least stylistically, you would not use a switch statement to accomplish the same task as the following else-if construction. Assume the variable grade is an integer in the range 0–100.
if (grade >= 90) System.out.println('A'); else if (grade >= 80) System.out.println('B'); else if (grade >= 70) System.out.println('C'); else if (grade >= 60) System.out.println('D') else System.out.println('F');
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.