2.1 Algorithms - flow diagrams Flashcards
1
Q
terminal
A
shows start and end of an algorithm
rounded oval shape
2
Q
input/ouput
A
shows input or output of data
parallelagram
3
Q
decision/selection
A
shows yes/no or true/false decisions where there are two possible outcomes
rhombus shape
4
Q
process
A
shows data processing e.g. a calculation
rectangle
5
Q
subroutine
A
shows a function or procedure that has its own flow diagram
rectangle split into a main part with two smaller rectangles
6
Q
line
A
represents control passing between the other symbols
7
Q
Draw a flow chart for an algorithm to find the sum of 10 numbers and output the result [5]
A
start
entered = 0 sum = 0
INPUT
number
sum = sum + number entered = entered + 1
Is entered = 10?
NO
(return to INPUT)
YES
OUTPUT
sum
end