Pseudocode:
FOR i = 0; i < students.length; i++
IF students[i].vegetarian THEN
print(i + " This student is a vegetarian");
END IF
END FOR
Algorithm: linear search
FlowChart: