Project design: key variables, data structures and validation – OCR A Level Computer Science lesson (H446)
Students learn to identify their key variables, data structures and validation rules and justify each choice.
Lesson 9 of 16 in unit 13.2 Big O and Project Design, taught in Year 13, Autumn 1. It answers one big question: What data will you hold, and how will you reject bad input?
By the end, students can identify their key variables, data structures and validation rules and justify each choice.
- What happens
- General skill: specifying data. The teacher shows a data dictionary (name, data type, structure, purpose, validation) and how to justify a data structure by what the program does with it, for example a queue for a waiting list. Students choose validation (presence, range, format, length, type) for six made-up fields. Worked example: Highcrag Climbing Centre's data dictionary, including a session record, a booking list held per session, a waiting-list queue and the validation rules for member ID, session time and capacity (1 to 12 climbers), each justified so the program is robust. Supervised time: students write the data dictionary and validation rules for their own solution and log the decisions in their journal.
Also sold in the Big O and Project Design unit bundle, which includes the medium term plan, and in the full-year and complete-course bundles.
An independent resource written for OCR A Level Computer Science (H446). It is not endorsed by OCR or Cambridge University Press & Assessment. Programming project (NEA) lessons teach general skills on a made-up example project and give supervised time, within JCQ's rules on the help a centre may give.
What's included
- Slide deck (PowerPoint)
- Lesson plan (Word)
- Worksheet (Word)
- Support worksheet with scaffolds (Word)
- Single-teacher licence: use and adapt it with your own classes
More for A Level Computer Science
See allStudents learn to explain why algorithms are compared by how their steps grow with n, and reduce a step-count formula to its Big O.
Free sample lessonStudents learn to identify O(1), O(n) and O(n²) code from its loops and explain each answer from how often the statements run.
Students learn to explain logarithmic and exponential growth in terms of halving and doubling, and say why exponential algorithms do not scale.
Written for the specifications named. Not endorsed by or affiliated with any exam board.