function message = pass_or_fail(StudentData)

Exam_avg = mean(StudentData.Exam);

if Exam_avg >= 70

    message = 'You pass!';

else

    message = 'You fail!';

end

return;