Dec-21-2017, 08:10 AM
Let's have a look at
1. On line 25, you loop through each employee, then on line 26 you check whether the selected employee is in employee, I don't think this is necessary!
2. Look at line 27. I guess you want to compare the employee number you have entered with the employee number of the selected employee. Which variable stores the selected employee, is it
3. After you have found a match between the pr number and the selected employee number, you print the result, then do you really need to continue your search?
a()
:1. On line 25, you loop through each employee, then on line 26 you check whether the selected employee is in employee, I don't think this is necessary!
2. Look at line 27. I guess you want to compare the employee number you have entered with the employee number of the selected employee. Which variable stores the selected employee, is it
i
or ...?3. After you have found a match between the pr number and the selected employee number, you print the result, then do you really need to continue your search?