Calculate a weighted average grade from up to five components and their weights.
Category: Education.