1
a pseudocode
b word processor
c keywords
d indentation
e flowchart
f flowlines
g algorithm
h terminal
i decision
2 Some of the methods of algorithm description used today are:
flowcharts, pseudocode, structured English, Nassi-Schneiderman diagrams and English prose. The two methods approved for this course are flowcharts and pseudocode. The graphical method is the flowchart. The method that uses English-like language is called pseudocode. When using flowcharts, we read them from top to bottom and left to right, moving from step to step along flowlines. Pseudocode is popular because its keywords are close to those in programming languages.
3 Pseudocode is a text-based algorithm description method.
5 Flow of control is from top to down
13
a
BEGIN
phonecall
pick up the phone
dial number
deliver message
hang up phone
END
14
BEGIN
frypan heat
crack egg
egg in pan
wait 3 minutes
take egg out
clean pan, turn off element
END
15
Begin
drive car out
get hose
clean off dirt
get bubbles/washing liquid
clean in detail
get hose
wash off
dry with cloth
drive car back in garage
clean up stuff
END
a pseudocode
b word processor
c keywords
d indentation
e flowchart
f flowlines
g algorithm
h terminal
i decision
2 Some of the methods of algorithm description used today are:
flowcharts, pseudocode, structured English, Nassi-Schneiderman diagrams and English prose. The two methods approved for this course are flowcharts and pseudocode. The graphical method is the flowchart. The method that uses English-like language is called pseudocode. When using flowcharts, we read them from top to bottom and left to right, moving from step to step along flowlines. Pseudocode is popular because its keywords are close to those in programming languages.
3 Pseudocode is a text-based algorithm description method.
5 Flow of control is from top to down
13
a
BEGIN
phonecall
pick up the phone
dial number
deliver message
hang up phone
END
14
BEGIN
frypan heat
crack egg
egg in pan
wait 3 minutes
take egg out
clean pan, turn off element
END
15
Begin
drive car out
get hose
clean off dirt
get bubbles/washing liquid
clean in detail
get hose
wash off
dry with cloth
drive car back in garage
clean up stuff
END
0 Comments:
Post a Comment
<< Home