I took int exam out on line 44 since exam is a global variable but it's value is given in the second function. Now it's asking for one more exam score than the given number and then displaying the -8 million again.
Now you might want to make the code even better by having getScoresAndCalculateTotal() and getNumberExams() return their respective values. Then you can make exam a local var. In otherwords, change the functions so that main() looks like this:
1 2 3 4 5 6 7 8 9 10 11 12
int main()
{
string first, last;
int exam, total;
getStudentName(first, last);
cout << first << " " << last << endl;
exam = getNumberExams();
total = getScoresandCalculateTotal();
cout << "Your total is: " << total <<endl;
return 0; // I added this. It's good form to return 0 from main on success
}