Boss: one mark, or Not found

Complete the previous lesson to unlock this one.

Back to the path

Boss: one mark, or Not found

Level 13: Slot 1. Searching a list is a Paper 2 staple. "Not found" is printed once, after the loop, never inside it.

The names and marks are already stored. Read a name. Output that student's mark, or Not found if the name is not there.

Example: input Ada → 80. Input Zed → Not found.

Set Found <- FALSE before the loop. After NEXT, output Not found only when Found is still FALSE.