Gcse Algorithms and Flow Charts
Gcse Algorithms and Flow Charts
Gcse Algorithms and Flow Charts
HOMEWORK
Algorithms and Flo Charts
!rogram "lo #harts S$st%ms "lo #harts
The steps taken by a program to carry out
a process are called an algorithm.
Algorithms can be expressed as a flow
chart. Traditionally, programmers
documented their algorithms with flow
charts.
In a program flow chart, there are special
symbols for stages such as:
Start or end
Process
Input or output
ecision
This program flow chart shows password
checking during a network login:
Start
Set counter to !
"nter password
Is password #$% &o increase
counter by !
'es &o
is counter()%
Allow login
'es
*ock account
"nd
Algorithms as stat%m%nts
Program flow charts are used less than
they used to be. Processes are often
described by a series of statements
resemble code in a high le+el programming
language, they are called pseudocode.
These show the flow of data through a
system. Processes are not gi+en in detail.
Systems flow charts show input, output
and files
Some flow chart symbols
$eyboard input
isk file
Tape file
Process
Paper output
It is important to be able to use a systems
flow chart to describe a simple operation.
,or example, a mail merge operation can be
shown as follows:
&o
"nter names
And addresses
-alidate
'es
#$%
Store data
ata file *etter
.erge
.erged letters
&ata "lo diagrams
These are simple diagrams to show how data flows through an organisation. They include
human as well as computer processes. &o detail is gi+en of how is stored.
Some data flow diagram symbols
Process
ata store
"ntity/data source
ata flow
Algorithms and "lo #harts
,low charts are often the easiest way to show processes in a computer system. There
are some standard types.
0uestions
! 1hat sort of diagram is used to show the relationship between processes,
files, input and output%
2 1hat is a data flow diagram used for%
) 1hat does a program flow chart represent%
3 1hat is pseudocode%
4 1hat type of flow chart looks in detail at how a process works%
#rder customer #$
5ustomer credit check send order
Status warehouse
5redit
Status
5ustomer file