When you want to plan a program or solve a problem, it’s easier to first write a simple visual or step-by-step outline. That’s where flowcharts and pseudocodes come in!
A flowchart is a diagram that shows the sequence of steps to solve a problem or complete a task using different symbols.
It helps programmers and others visualize the logic before coding.
Symbol | Purpose | Example |
---|---|---|
Oval | Start or End of a program | Start, Stop |
Rectangle | Process / Action (like calculations) | Calculate total |
Parallelogram | Input or Output (e.g., read or display data) | Input age , Print result |
Diamond | Decision / Condition (Yes/No) | Is age > 18? |
Arrow | Flow of control (shows direction) | Flow from one step to another |
Reference: https://www.pinterest.com/pin/odd-even-flowchart--325314773082670565/
Pseudocode is a plain English (or any language) way of writing the steps of a program without worrying about syntax. It looks like code but is easy to understand.