Enter Scores Test 1:
90
Enter Scores Test 2:
90
Enter Scores Test 3:
90
Enter Scores Assignment 1:
90
Enter Scores Assignment 2:
90
Enter Scores Assignment 3:
90
Summary Report
Test Scores: 90, 90,and 90
Assignment Scores: 90, 90, and 90
Overall Percentage: 5.30153e+267
Final Grade: A
The first, with the extra characters, is a notation for N x 10M. So
5.30153e+267
is saying
5.30153 x 10267
...which means that there is something wrong with the way you are calculating pct.
The second problem is because you have too much in the input buffer. I don't know why, but fix it by changing lines 42 and 43 to
1 2 3 4 5 6
// Get rid of the newline left in the input from the last "cin >> foo".
cin.ignore( numeric_limits<streamsize>::max(), '\n' );
// Tell the user how to quit the program.
cout << "Press ENTER to quit";
// Wait for him to obey.
cin.ignore( numeric_limits<streamsize>::max(), '\n' );
You will have to #include <limits> to use the changes.