A-level Computing/CIE/Fundamental Problem-solving and Programming skills/Programming

Programming basics
 * write a program in a high-level language


 * implement and write a program from a given design presented as either a program flowchart or pseudocode

(given pseudocode will use the following structures: DECLARE :
 * write program statements for:
 * the declaration of variables and constants
 * the assignment of values to variables and constants
 * expressions involving any of the arithmetic or logical operators
 * or, including an ‘else’ clause:


 * use a ‘CASE’ structure
 * given pseudocode will use the following structure:
 * alternatively:

Iteration
 * use a ‘count controlled’ loop:
 * given pseudocode will use the following structure:
 * alternatively:


 * use a ‘post-condition’ loop:
 * given pseudocode will use the following structure:


 * use a ‘pre-condition’ loop
 * given pseudocode will use the following structure:


 * justify why one loop structure may be better suited to a problem than the others

Built-in functions
 * use a subset of the built-in functions and library routines supported by the chosen programming language. This should include those used for:
 * string/character manipulation
 * formatting of numbers
 * random number generator


 * use the information provided in technical documentation describing functions/procedures

Structured programming
 * use a procedure


 * explain where in the construction of an algorithm it would be appropriate to use a procedure
 * given pseudocode will use the following structure for procedure definitions:
 * a procedure may have none, one or more parameters
 * a parameter can be passed by reference or by value


 * show understanding of passing parameters by reference


 * show understanding of passing parameters by value
 * a call is made to the procedure using CALL


 * use a function


 * explain where in the construction of an algorithm it is appropriate to use a function

FUNCTION RETURNS x ← SQRT(n) WHILE NOT EOF
 * use the terminology associated with procedures and functions: procedure/function header, procedure/function interface, parameter, argument, return value
 * given pseudocode will use the following structure for function definitions:
 * a function is used in an expression, for example


 * write programs containing several components and showing good use of resources