Question: Write a Java conditional statement that implements the following, where grade is an integer a nd school is a string . Both variables have been
Write a Java conditional statement that implements the following, where grade is an integer and school is a string. Both variables have been declared and grade has been initialized to a value greater than or equal to 1:
| If grade is | Set School to: |
| 1, 2, 3, 4, | Primary school |
| 6, 7, 8 | Secondary school |
| 9, 10, 11, 12 | Boarding school |
| >12 | High School |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
