created program to calculate final grade in class