Something easy for some of you, but I can't think well at the moment...
Please help me with this:
Write appropriate input assertions and output assertions for the following loop:
cin>>score;
while (score!= -999)
{
num_scores = num_scores+1;
sum = sum + score;
cout<< "Enter a score; -999 to quit.";
cin>>score;
}
Write appropriate input assertions and output assertions for the following loop:
cin>>score;
while (score!= -999)
{
num_scores = num_scores+1;
sum = sum + score;
cout<< "Enter a score; -999 to quit.";
cin>>score;
}
