FIX IT #5

A computer program stores names of students in one array and corresponding test scores in another array.

It asks the user to input a student name. If the name is found, the program displays the name and associated test score.

Otherwise it displays the message Name not found!

It

Here is the code. It doesn't work! Fix it!

Sample output

advice

Debugging

Sometimes it is useful to cut the code out of the file and paste it somewhere safe. Then, paste it back into the IDE line by line, testing each time and see if there is problem with a line of code.