Calculation/ Output
Input
Processing
Flowchart
1 arrow only
2 arrows only
1 in & 1 out
Input Data
get fullname:*
Display result
put fullname
Processing Symbol
2 arrows only
1 in & 1 out
Declaration
var sum : real
Initialization
sum := 30.14
Calculation
Decision Symbol
3 arrows
1 in & 2 out
Question
Gunakan kalimat tanya
T yang dapat dijawab
Q. ?
dengan Yes atau No
2 out going arrows
T (True, Yes)
F F (False, No)
Page connector
1 arrow only
1 arrow only
Appear in
1 to 1
A
Many to 1
Use letters
Go from one step to
A another
Arrows
Make turn
Join together
Latihan 1
start
1.is it the door bell?
bell 2.start
ringing 3.answer the phone
4.turn off the alarm
N N turn off the 5.is it the telephone?
phone? door?
alarm 6.listen to bell ringing
Y Y 7.stop
answer the see who is 8.see who is at the door
phone at the door
stop
Latihan 2 start
Define PI
const PI := 3.14 Declare
var radius, volume : real radius, volume
put “please enter...”.. ask radius
get radius
volume := (4/3)*PI*radius**3 input radius
put “” Calculate
put “The volume is”, volume volume
output
volume
stop
start Latihan 3
var mark: real
1.start declare variables
ask mark 2.what is the mark
3.ask for mark
4.check mark>=50
get mark
_____
5.>=50 show “U Pass”
T 6.<50 show “U Fail”
mark>=50 “U Pass” A 7.stop
F
“U Fail”
A
stop
Latihan 4 dengan Trace Table
start Trace Table
x y sum
Declare & Initialise
1 1 2
x & y to1
A 1 2 3
is Y x=y
sum of x&y 2 3 5
sum<20 y = sum
N
A
3 5 8
Show x,y
and sum 5 8 13
8 13 21
stop
Programming
Menambahkan komentar
Lebih mudah untuk dimengerti
Menggunakan “spaces” dengan bijak
Blanks, Tabs, New Lines
Easy to trace, follow & understand
Pemilihan nama variabel & konstanta
Mudah dimengerti, tidak terlalu panjang dan tidak
terlalu pendek
Implementation
Meminta orang lain untuk menjalankan
program