added a GPA calculator that takes in (grade, credit) pairs and calculate...

...s gpa after the button is pressed