Theory:

There is a step-by-step procedure involved in whatever we do. It holds even for the simplest of things.
 
Imagine buying a cake from a bakery.
 
The steps involved would be:
 
1. Going to the bakery.
 
2. Choosing the cake to buy.
 
3. Paying for the cake.
 
4. Collecting the cake from the shopkeeper.
 
We can also denote these four steps using specific shapes and arrow marks, which is a flowchart.
 
A flowchart:
A pictorial representation of a procedure is a flowchart. A flowchart contains specific shapes to each action and arrow marks to denote the sequence of events.
There are two types of flowcharts, namely sequential flowchart and conditional flowchart.
 
Let us look at a flowchart representation of the problem discussed previously.
 
Figure 1.svg