You can put this solution on YOUR website! Use a weighted average.
It depends on the weight of your class grade and your exam grade.
.
.
.
If each is worth 50% of the class, then
If your class grade is worth 80% and the exam worth 20% then,
Use the different weights to see how your grade changes.