Here is some pseudo code I put together for you. Obviously it is unfinished so you'll need to fill in the blanks.
public void GetAllStudents()
{
var bar = from all in entity.StudentBar
select all;
foreach (Student student in bar)
{
if (student.dumb)
{
AskTutorForHelp();
}
else
{
FigureItOutForYourself();
}
}
}