Calculate a weighted grade from two assignment categories.
Weighted grades give categories like exams or homework different importance toward the final score.
grade = Σ(score × weight) ÷ Σ(weight)