a java program that calculates the cumulative GPA (German scale 0.7 - 5)