implementing algorithm for target cumulative gpa