A web portal is being developed for recreational drone pilots to log their flights. To submit a flight log, pilots must enter several details, including the flight duration in minutes (which must be between 10 and 120), a contact mobile phone number, and a unique drone registration ID.
Validating inputs is a key element of defensive design, ensuring that only clean, logical data enters the system.
Identify two different validation techniques and explain how each can be used to validate the inputs in this flight logging system.
14 exam-style questions on OCR GCSE Computer Science Defensive design. Each one has a worked solution and a mark scheme showing where the marks go.