We do
The height a student jumps in the high jump needs to be input and validated.
The height is entered in centimetres (cm) and must be between 40.0 and 180.0 inclusive.
Write an algorithm to:
Each data type must be different.
• take the height jumped as input
• output "VALID" or "NOT VALID" depending on the height input.
You must use either:
• OCR Exam Reference Language, or
• A high-level programming language that you have studied.
[4]
The algorithm is tested using a range of tests.
Complete the table to identify an example of test data for each type of test.
Test data
(height jumped in cm) Type of test Expected output
Normal "VALID"
Boundary "VALID"
Erroneous "NOT VALID"
[3]