13.8k views
5 votes
10

This section of program code may be used as a validation check.
1
2
3
4
5
6
7.
PRINT "Input a value between 0 and 100 inclusive"
INPUT Value
WHILE Value < 0 OR Value > 100
PRINT "Invalid value, try again"
INPUT Value
ENDWHILE
PRINT "Accepted: ", Value
(a) Give a name or explain this type of validation check.
[2]
(b) Describe what is happening in this validation check.​

User Vezenkov
by
4.3k points

1 Answer

2 votes

Answer:

This is a range check

Step-by-step explanation:

The input value is checked against a minimum and maximum value.

User Beluchin
by
4.1k points