Page 49 - IT_V5.0_Class8
P. 49
Go to Step 3.
Step 4: Stop
Algorithm 12: Write an algorithm to input your name and display 5 times on the screen.
Step 1: Start
Step 2: Input NAME (your name).
Step 3: Set a variable count = 1.
Step 4: Repeat the following steps until count reaches 5.
Display NAME
Change count = count + 1.
Go to Step 4.
Step 5: Stop
Boost Bits
There are online tools available that can convert algorithms written in pseudocode or
plain text into code in specific programming languages.
FLOWCHARTS
A flowchart is a graphical representation of an algorithm. It makes use of symbols that are
connected through arrows to show the direction of flow of information. It has been proven
scientifically that visuals have more impact on the human brain as compared to text. So flowcharts
are preferred over algorithms for solving a problem.
The following symbols are used to create flowcharts:
Symbol Name Symbol Purpose
Oval It is used to show the start and stop points of the flowchart. It
usually contains the words ‘Start’ or ‘Stop’.
Parallelogram It represents information entering or leaving the system, i.e.,
input and output.
Rectangle
It shows a process, action, or operation to be performed.
Diamond It indicates a question or branch in the process flow. It is used
when there are 2 options (Yes/No).
Arrow It indicates the direction of flow between steps in the process.
Boost Bits
In the late ‘40s, Herman Goldstine and John Van Neumann used flowcharts to develop
computer programs, which later on became increasingly popular for computer
programs and algorithms of all kinds.
Algorithm and Flowchart 47

