cout << "Entering function GetScore" << endl ; return 300 ;
cout << "Entering function RangeError" << endl ; return false ;The return value of false means that the score (300) is OK - it is within the correct range.
cout << "Entering function maximum" << endl ; return x ;
This program interactively reads two quiz scores and prints the maximum. Entering function GetScore Entering function RangeError Entering function GetScore Entering function RangeError The maximum of the two scores is: Entering function maximum 300In other words, you should first see two sets of outputs from the stub GetScore and stub RangeError functions, and then output from the stub maximum function. The output from the stub maximum function will probably be sandwiched between output from a cout in main, the cout that tells what the maximum is.
This program interactively reads two quiz scores and prints the maximum. Entering function GetScore Entering function RangeError You entered an invalid score. Scores must be in the range 0-800 (inclusive). Please try again.(In other words, you should see exactly one output from GetScore, one from RangeError, and then an error message about invalid data. If you see more than one output from GetScore and RangeError then probably either you forgot to put the first else keyword in your program, or you forgot to enclose between braces the statements after the first else. Whatever the error(s), figure out what's wrong, and fix it.)
"Prompt for a score (an int), read it & return it."Therefore you write the code to make GetScore do exactly that - no more or less.
This program interactively reads two quiz scores and prints the maximum. Enter a quiz score: 250 Entering function RangeError Enter a quiz score: 340 Entering function RangeError Entering function maximum The maximum of the two scores is: Entering function maximum 250