Complete the test plan for the program shown in Figure 1.
Figure 1
valid_setting = False
while valid_setting == False:
humidity = int(input("Enter humidity percentage (45 to 75): "))
if humidity >= 45 and humidity <= 75:
valid_setting = True
print("Humidity level accepted")
else:
print("Error: Humidity out of bounds")
| Test type | Test data | Expected result |
|---|---|---|
| Normal data | 60 | "Humidity level accepted" displayed |
Invalid data: Test data
Invalid data: Expected result
Boundary data: Test data
Boundary data: Expected result
27 exam-style questions on AQA GCSE Computer Science Robust and secure programming. Each one has a worked solution and a mark scheme showing where the marks go.