๐ง Flowcharts
Flowcharts are graphical representations of processes, algorithms, or systems using standardized symbols.
They help visualize control flow, decision points, and execution paths in a way that bridges both technical logic and user-facing interaction.
๐น Core Purpose
- Clarify the structure and logic of algorithms
- Aid in debugging, optimization, and documentation
- Communicate processes across technical and non-technical audiences
- Separate internal computation from external interaction
๐งฑ Basic Symbols
| Symbol | Meaning | Shape Description | Semantic Role |
|---|---|---|---|
โฌฌ Terminal | Start / End | Rounded rectangle | Entry or exit point of the flow - Good to be explicit than to be implicit |
โฌ Process | Internal computation or transformation | Rectangle | Represents logic, operations, or function calls |
๐ท Decision | Conditional branching | Diamond | Evaluates conditions to direct flow (True/False) |
๐ฆ Input/Output | External interaction | Parallelogram | Represents user โ system data exchange |
โก Arrow | Flow of control | Directed line | Indicates execution sequence |
๐ง Note:
Process blocks handle internal logic (e.g., calculations, function calls)
Input/Output blocks represent conceptual interfacesโsuch as user input or system outputโnot return values or internal data flow.
๐ง Note:
Process blocks handle internal logic (e.g., calculations, function calls)
Input/Output blocks represent conceptual interfacesโsuch as user input or system outputโnot return values or internal data flow.
๐ Control Constructs
| Construct | Description | Flowchart Representation |
|---|---|---|
| Sequence | Linear execution of steps | โฌ โ โฌ โ โฌ |
| Branching | Conditional logic (if/else) | ๐ท โ [Yes] / [No] paths |
| Looping | Repetition based on condition | ๐ท โ โฌ โ ๐ท (cycle) |
๐งช Example: Fever Check Logic
flowchart TD
Start([START])
Input[/Enter temperature/]
Process[Compare with 37.5]
Decision{Temp โฅ 37.5?}
FeverOutput[/Output: Fever/]
NormalOutput[/Output: Normal/]
End1([END])
End2([END])
Start --> Input --> Process --> Decision
Decision -- Yes --> FeverOutput --> End1
Decision -- No --> NormalOutput --> End2
Last updated on