| Line | Pseudocode |
|---|---|
| 01 | SET scores TO [45, 62, 28, 90, 15, 78] |
| 02 | SET passes TO 0 |
| 03 | SET fails TO 0 |
| 04 | SET i TO 0 |
| 05 | |
| 06 | WHILE i < LENGTH(scores) DO |
| 07 | IF scores[i] >= 50 THEN |
| 08 | SET passes TO passes + 1 |
| 09 | ELSE |
| 10 | SET fails TO fails + 1 |
| 11 | END IF |
| 12 | |
| 13 | SET i TO i + 1 |
| 14 | END WHILE |
| 15 | |
| 16 | SEND "Passed: " & passes TO DISPLAY |
Refer to the pseudocode algorithm in Figure 1.
Give one reason for the variable i being incremented in line 13.