Modify calculateGPA()

Changed total to from int to double to allow for more accurate
calculation.