Modified outputStuData, calculate StuGrade and getStudentData functions for portability - inc