Simple text based GPA calculator in C++