DesignPseudocode

Pseudocode, flow charts and structure diagram are techniques that are used to design software. These allow data flow, constructs and variables to be identified before coding begins.

Part ofComputing ScienceSoftware design and development

Pseudocode

Pseudocode is a written design notation:

  • it is not based on any programming language
  • it is not natural language like written English
  • it is not formal code used in high level languages

Pseudocode allows a programmer to use to clearly state the use of programming constructs such as iteration (loops) and selection statements (IF or CASE).

When creating pseudocode, it is important to remember:

  • To define the steps of the main algorithm
  • To refine the main steps where possible (not all main steps need refined)
  • To use indentation to help identify use of loops and selection statements
  • That there is no need to declare variables
  • Not to write steps using a formal language such as Visual Basic, True Basic, LiveCode, Python or Reference Language