Practice
Mark for a Name
MEDIUMArrays6 marks
Four students are already stored in two arrays. Read a name. Output that student's mark, or Not found if the name is not there.
Print Not found once, after the loop. An ELSE inside the loop prints it for every other student.
Input: One name.
Output: The mark, or Not found.
Example:
Input: Bea
Output: 61
Sample Test Cases
Test 1: First student
Inputs: Bea
Expected: 61
Test 2: Middle student
Inputs: Eve
Expected: 90
Test 3: Last student
Inputs: Fay
Expected: 73