Data Structure and Algorithm - Fundamental Programing Part 2
Data Structure and Algorithm - Fundamental Programing Part 2
23jul22
Flowchart
Flowchart
Flowchart Symbols
Start and End symbols
⚫ Represented as rectangles.
⚫ Examples: “Add 1 to X"; "replace identified part";
"save changes" or similar.
Flowchart
Flowchart Symbols
Input/Output
⚫ Represented as a parallelogram.
⚫ Examples: Get X from the user; display X.
Flowchart
Flowchart Symbols
Conditional or decision
Flowchart Symbols
Display
⚫ Once the condition is evaluated, the control flows into one of two
paths.
⚫ Once the conditional execution is finished, the flows rejoin before
leaving the structure.
Flowchart
Basic Control Structures
Selection/Branching
Flowchart
Basic Control Structures
Loop
Example 1:
Flowchart
Example 2:
Example 2:
Flowchart
Exercise:
Draw a flowchart diagram.
1.A program that compare the first number and
second number and display which one is the biggest.