Back to Topics

9. Algorithm Design

Key Terms

Abstraction

Decomposition

Algorithm

Stepwise Refinement

Flowchart Keywords

SET <variable> to <value>
IS <variable> = <value>?
INCREMENT <variable>
CONCATENATE <data> WITH <variable>
ADD <variable> TO <variable>
INPUT / OUTPUT
READFILE / WRITEFILE

Sample Flowchart: Number Averaging

START
SET total = 0
SET count = 0
INPUT number
IS number = 0?
→ YES ▼
NO →
ADD number TO total
INCREMENT count
OUTPUT total / count
END

Algorithm Design Quiz

What is the main purpose of abstraction in computational thinking?

Which programming construct is used for repeating actions?

What is the benefit of decomposition?

Made withby Aarush and ChatGPTGitHub