Page 49 - IT_V5.0_Class7
P. 49
Flowchart 5: Draw a flowchart to display cube of first 5 natural numbers.
Start
Cube, Count=1
IS NO
Count<=5? Stop
YES
Cube= Count * Count * Count
DISPLAY
Cube
Count= Count+1
DIFFERENCE BETWEEN ALGORITHM AND FLOWCHART
Algorithm Flowchart
It is a step-by-step approach to solve a It is a step-by-step visual/graphical approach
problem. to solve a problem.
It is a Pseudocode(false code) of a program. It is a graphical representation of a program.
Difficult to represent branching and looping. Easily represents branching and looping
through symbols.
Easy to find the errors. Difficult to find the errors.
Can be used for simple, complex or long Advisable to use only for simple processes.
processes
Problem-solving is a fundamental skill that helps us find solutions to various challenges
in everyday life and in fields like mathematics, science, and computer science.
An algorithm may be defined as “a step-by-step procedure or set of rules to follow in
order to solve a specific problem or perform a task.”
Control structure is defined as an order of execution of a statement in an algorithm.
Sequential is the simplest form of control structure, where instructions are executed in a
sequential order, one after the other.
Selection structure allows the algorithm to make a decision based on a condition.
Repetition structure is used for looping, i.e., repeatedly executing a certain block of
statements.
A flowchart is a graphical representation of an algorithm.
Algorithm and Flowchart 47

