Calculates the GPAs and determine the Valedictorian of the students. (c++)