Course Grade

The course grade will be determined as follows.

        testMark = 0.5*final + 0.25*midterm
        completeGrade = 0.5*final + 0.25*midterm + 0.05*labs + 0.20*assignments

        if (testMark < 37.5) // Failing average of exams
	{  finalGrade = min(testMark, completeGrade)
	} 
        else
	{  finalGrade = completeGrade
	}

Notes: