cout << "Entering function GetScore" << endl ; return 300 ;
cout << "Entering function RangeError" << endl ; return false ;
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 Entering function maximum The maximum of the two scores is: Entering function maximum 300In other words you should see two sets of outputs from the stub GetScore and RangeError functions, output from the stub maximum function, and output from main telling what the maximum value was. (The output of the 'cout' from the stub maximum function ("Entering function maximum") may or may not appear in exactly the same position as in the example above. It'll probably look exactly like the example above if you run the program on one of the Macs in our lab.
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 the error message about invalid data that you put in your main program earlier. 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