Simple C++ program that calculates GPA