Why doesn't this code display what I think it should?
<p>I'm stuck and everything is correct except the Grade wont display, any help would be appreciated!</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

void calcScore(int grade, double&amp;total);

int main()
{   
    //declare variables
    int score       = 0;
    int totalPoints = 0;  //accumulator
    char grade      = ' ';

    //get first score
    cout &lt;&lt; "First score (-1 to stop): ";
    cin &gt;&gt; score;

    while (score != -1)
    {
        //update accumulator, then get another score
        totalPoints += score;
            cout &lt;&lt; "Next score (-1 to stop): ";
            cin &gt;&gt; score;
    }   //end while


    //display the total points and grade
    cout &lt;&lt; "Total points earned: " &lt;&lt; totalPoints &lt;&lt; endl;
    cout &lt;&lt; "Grade: " &lt;&lt; grade &lt;&lt; endl;
    return 0;
}   //end of main function


void calcScore(int grade, double &amp; total)
{
    if (total &gt;= 315)
            grade = 'A';
    else if (total &gt;= 280)
            grade = 'B';
    else if (total &gt;= 245)
            grade = 'C';
    else if (total &gt;= 210)
            grade = 'D';
    else
            grade = 'F';
}
</code></pre>
