getting GPA given input: course. but GPA is not calculating correctly (should be getting 2.725, but getting 2.5