The following is pseudocode for validation of an integervalue.
Initialize valid flag, input value
While not valid
Prompt for aninteger
While the next wordis NOT an integer
Fetch the next word (do not use it)
Write Error message
End While
Fetch the integer
If it is in range,set valid flag to true, else display error message
End While
Print the input value
You will create a project calledAverageTestScore with a class called AverageTestScore. In yourmain() method, create a loop that prompts for test scores andvalidates the values entered. Use a sentinel value (-1) to end theinput. Then print the average test score and number of
PayPal Gateway not configured
PayPal Gateway not configured