You are on page 1of 13

ITERATION

An iteration is a single pass through a group/set of instructions. Most programs often contain
loops of instructions that are executed over and over again. The computer repeatedly executes
the loop, iterating through the loop.
LOOPING

CHOICE

INSTRUCTION
REPRESENTATION OF ALGORITHM

PSEUDO
FLOWCHART
CODE

ALGORITHM
FLOWCHART

• A flowchart is a visual representation of an algorithm. A flowchart is a diagram made up of


boxes, diamonds and other shapes, connected by arrows. Each shape represents a step of the
solution process and the arrow represents the order or link among the steps.
• There are standardized symbols to draw flowcharts. Some are given in
table:-
SHAPES OR SYMBOLS TO DRAW FLOW
CHARTS
SYMBOL FUNCTION DESCRIPTION
START/END Also called “Terminator” symbol. It indicates where the flow starts
and ends.

PROCESS Also called “Action Symbol,” it represents a process, action, or a


single step
DECISION A decision or branching point, usually a yes/no or true/ false
question is asked, and based on the answer, the path gets split into
two branches.
INPUT/ Also called data symbol, this parallelogram shape is used to input or
OUTPUT output data.
END Connector to show order of flow between shapes.
Q1. DRAW THE FLOWCHART TO ADD 10
AND 20. PRINT THE SUM
• A=10
START
• B=20
• C=A+B A=10

• PRINT (C) B=20

C=A+B

PRINT(C)

END
Q2. DRAW THE FLOWCHART TO FIND
SIMPLE INTEREST
START • Input p ,r , t
• Si= p*r*t/100
Input p ,r , t
• Print (Si)

Si= p*r*t/100

Print(Si)

STOP
Q. DRAW THE FLOWCHART BY USING
RAPTOR TOOL TO FIND AREA OF TRIANGLE
WITH ALGORITHM
FLOW CHART
IF…. ELSE

•How to use decision box

Decision
Q. DRAW THE FLOW CHART TO PRINT THE
SMALLEST NUMBER OF TWO NUMBERS
• Input A, B
• If A<B
• Print(A)
• Else
• Print(B)
START

Input A,B

If
A<B YES Print A
?

Else
N
O

Print B

STOP
Q1. DRAW THE FLOW CHART TO FIND EVEN OR
ODD NUMBER

Q2.DRAW THE FLOWCHART TO FIND POSITIVE


OR NEGATIVE NUMBER
FLOW CHART BASED ON DO-WHILE
CONDITION
do
{
statement;
}
while(condition);

You might also like