T6 - Flowcharts/Pseudo-code Flashcards
Variable
- location in memory in which you can temporarily store a value such as a string
or number
Algorithm
- series of steps to solve a problem or carry out a task
Sub programs
- used when you wish to call another procedure or function
three programming constructs used to control the flow of a program:
Sequence
Selection
Iteration (repetition)
Sequence:
A sequence is a series of steps which are completed one after the other
statements are executed one by one, in the order they are written
Selection:
is the ability to choose different paths through a program
In flowcharts, decision symbols are used for selection
Iteration:
means repeating a part of a program
- repeating or looping
eg of iteration
for … next
while … endwhile
do … until (doesn’t exist in python)
Boolean operators:
>
greater than = greater than or equal to < less than <= less than or equal to == equal to != not equal to
integer
whole number
real
number with a decimal point
boolean
true or false value
character
single alphabetic / numeric character
string
sequence of one or more characters
Pseudocode:
kind of structured English for describing algorithms
allows a programmer to focus on the logic of the algorithm without being distracted by the exact syntax of the programming language