Programming
11.1 Programming Basics
Candidates should be able to:
Implement and write pseudocode from a given design presented as either a program flowchart or structured English
Write pseudocode statements for:
the declaration and initialisation of constants
the declaration of variables
the assignment of values to variables
expressions involving any of the arithmetic or logical operators input from the keyboard and output to the console
Use built-in functions and library routines
1. Any functions not given in the pseudocode guide will be provided
2. String manipulation functions will always be given
11.2 Constructs
Candidates should be able to:
Use pseudocode to write:
an ‘IF’ statement including the ‘ELSE’ clause and nested IF statements
a ‘CASE’ structure
a ‘count-controlled’ loop:
a ‘post-condition’ loop
a ‘pre-condition’ loop
2. Justify why one loop structure may be better suited to solve a problem than the others
11.3 Structured Programming
Candidates should be able to:
1. Define and use a procedure
2. Explain where in the construction of an algorithm it would be appropriate to use a procedure
3. Use parameters
1. A procedure may have none, one or more parameters
2. A parameter can be passed by reference or by value
4. Define and use a function
5. Explain where in the construction of an algorithm it is appropriate to use a function
A function is used in an expression, e.g. the return value replaces the call
6. Use the terminology associated with procedures and functions
including procedure / function header, procedure / function interface, parameter, argument, return value
7. Write efficient pseudocode