Input validation method?
<p>Ok, I am kind of stumped here. I am not sure how to manipulate my code to get the <code>while loop</code> to execute. Here is the block of code (i cannot use arrays or vectors per professors instructions). Thanks for any ideas in advance.</p>

<pre><code>//function prompts the user for test scores, validates and stores the input scores
void getScore(double &amp;score1, double &amp;score2, double &amp;score3, double &amp;score4, double &amp;score5)
{   
        cout &lt;&lt; "Enter a score: ";

    //input validation
    while(score1 &lt; 0 || score1 &gt; 100 || score2 &lt; 0 || score2 &gt; 100 || score3 &lt; 0 || score3 &gt; 100 || score4 &lt; 0 || score4 &gt; 100 || score5 &lt; 0 || score5 &gt; 100)   
    {   
        cout &lt;&lt; "Invalid input, all values\n";
        cout &lt;&lt; "must be between 0 and 100\n";
        cin &gt;&gt; score1;
            cout &lt;&lt; "Enter a score: ";  
        cin &gt;&gt; score2;
            cout &lt;&lt; "Enter a score: ";  
        cin &gt;&gt; score3;
        cout &lt;&lt; "Enter a score: ";  
        cin &gt;&gt; score4;
            cout &lt;&lt; "Enter a score: ";
        cin &gt;&gt; score5;
        cout &lt;&lt; "------------------------" &lt;&lt; endl;

    }
     if(!(cin &gt;&gt; score &gt;&gt; score2 &gt;&gt; score3 &gt;&gt; score4 &gt;&gt; score5))    
     {
            cout &lt;&lt; "You have entered\n"; 
        cout &lt;&lt; "non-numeric input.\n";
        cout &lt;&lt; "Program is terminated\n";
        cout &lt;&lt; "Please try again" &lt;&lt; endl;
        exit(0);
     }


}
</code></pre>
