S.2.h: Calculate the mean of a frequency distribution: GPA and weighted grade.