CHAPTER 2 (Flowchart)
CHAPTER 2 (Flowchart)
(PART-II)
Q1) What is a flowchart?
Ans) A flowchart is a pictorial (graphical) representations to describe an algorithm or sequence of steps
required to solve a problem. The representation uses geometrical shapes, with each shape having a
specific operation.
Note:- Draw the geometrical symbol using pencil, use ruler to draw the flow lines
Q6)Draw a flowchart to find the sum and product of any number.
START
READ A,B
SUM=A+B :
PRODUCT =A*B
PRINT SUM
PRINT PRODUCT
STOP
Q7) Draw a flowchart to find the area and perimeter of a rectangle
START
READ L ,B
AREA=L*B
PERIMETER =2*(L+B)
PRINT AREA
PRINT PERIMETER
STOP
Q8) Draw a flowchart to input any two number display the greatest number.
START
READ X,Y
NO
IS X>Y PRINT Y
YES
PRINT X
STOP
Q9)Draw a flowchart to input any two number display the cube of the smallest number.
START
READ X ,Y
A=X*X*X
B=Y*Y*Y
YES
IS X>Y DISPLAY A
NOB
DISPLAY
STOP
Q10) ) Draw a flowchart to input the selling price and cost price. Find profit or loss. (Condition is the either sp
must be greater or smaller then cp)
START
READ SP, CP
PROFIT=SP-CP
LOSS=CP-SP
YES
IS SP>CP DISPLAY PROFIT
NO
DISPLAY LOSS
STOP
Q11)Draw a flowchart to input the radius of a circle if the radius if greater than or equal to 7. Display the area
of the circle else display the circumference of the circle.
START
READ R
AREA=3.14xRxR
CIRCUMFERENCE=2x3.14xR
YES
IS R>=7 DISPLAY AREA
NO
DISPLAY
CIRCUMFERENCE
STOP
Q12) Draw a flowchart to input any number check the number is positive, negative or neutral. Display the
appropriate result
START
READ P
NO NO
IS P>0 IS P<0
YES YES
PRINT NEGATIVE
PRINT POSITIVE
PRINT
NEUTRAL
STOP