A long program is easier to write, test and change when it is cut into named parts.
3 lessons, about 1 h 15 min3 simulations10 problems3 practice questionsPython in every lesson
A long program is easier to write and to test when it is cut into named parts. This lesson defines and calls procedures and functions in Cambridge pseudocode, passes values to them as parameters, and explains local and global variables.
Every language comes with ready-made routines. This lesson uses the library routines of the syllabus, MOD, DIV, ROUND and RANDOM, and the four string routines LENGTH, SUBSTRING, UCASE and LCASE, in Cambridge pseudocode and in Python.
A program is read far more often than it is written. This lesson shows how to make pseudocode maintainable, with meaningful identifiers, comments, constants and subroutines, and how to plan and write the long scenario answer at the end of Paper 2.
Log in to join the discussion.
Loading…