Averages and percentiles
A weighted mean multiplies each score by its corresponding weight, and the median remains stable even when an outlier pulls the mean away from the centre.
A worked example
Coursework worth 40% with a mark of 55 and an examination worth 60% with a mark of 90 produce a weighted mean of 0.4(55) + 0.6(90) = 76.
The mistake people actually make
A percentile represents the percentage of the group at or below a particular score, not a mark out of 100. Arrange the values in order before identifying the median.