Pseudocode and Flowcharts Flashcards
Pseudocode
A list of instruction that show how the program will work. It is set out with the same structure as a programming language.
Syntax
The rules of a language.
Comments
In pseudocode, comments are written to state what a particular line or section of code is for.
Variables
Named locations in memory that hold a data value.
Array
A data structure that holds a collection of values of the same data type.
Count
A method used to keep a record of how many times something has happened.
Totalling
The process of keeping a running total of certain values in a program.
Condition
A state in a program that will be met or not met.
Selection
A statement that represents choice in an algorithm.
IF Statements
IF statements allow a programmer to define several paths through a program.
CASE Statements
Another selection method that can be used is the CASE method. CASE is used when specific discrete data values are used, not for those that might be in range.
Iteration
Where a section of code is run repeatedly.
Count-controlled loop
Iteration that is performed a stated number of times.
Condition-controlled loop
Iteration that continues until, or while, a condition is met.
Flowcharts
a graphical representation of a computer program in relation to its sequence of functions (as distinct from the data it processes).