A drone control system requires the operator to input the target pitch angle of a drone. The pitch angle is a decimal value, representing degrees, and must be between −35.0-35.0−35.0 and +35.0+35.0+35.0 inclusive. The entered value needs to be validated before being sent to the flight controller.
Construct two different validation tests. Test data for Test 1 is provided in the table.
Complete the table by filling in (a), (b), and (c).
| Test | Validation test | Test data |
|---|---|---|
| Test 1 | (a) | 42.5 |
| Test 2 | (b) | (c) |
(a)
(b)
(c)
25 exam-style questions on Edexcel GCSE Computer Science Input/output, covering Accepting and responding to user input, Reading and writing CSV text files, Implementing validation, and Implementing authentication. Each one has a worked solution and a mark scheme showing where the marks go.