11.1 Programming Basics
11.2 Constructs
11.3 Structured Programming
11.1 Programming Basics
Implement and write pseudocode from a given design presented as either a program flowchart or structured English
Write pseudocode 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 input from the keyboard and boutput to the console.
Use built-in functions and library routines
Any functions not given in the pseudocode guide will be provided
String manipulation functions will always be given
11.2 Constructs
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
Justify why one loop structure may be better suited to solve a problem than the others
**11.3 Structured Programming **
Define and use a procedure
Explain where in the construction of an algorithm it would be appropriate to use a procedure.
Use parameters: A procedure may have none, one or more parameters and A parameter can be passed by reference or by value.
Define and use a function
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.
Use the terminology associated with procedures and functions: including Procedure / function header, procedure / function interface, parameter, argument, return value
Write efficient pseudocode
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have downloaded this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.