20
Which nested if/else?
• (1) if/if/if (2) nested if/else (3) nested if/else if
– Whether a user is lower, middle, or upper-class based on income.
• (2) nested if / else if / else
– Whether you made the dean's list (GPA ≥ 3.8) or honor roll (3.5-3.8).
• (3) nested if / else if
– Whether a number is divisible by 2, 3, and/or 5.
• (1) sequential if / if / if
– Computing a grade of A, B, C, D, or F based on a percentage.
• (2) nested if / else if / else if / else if / else