Page 21 - Touchcode_C6_Flipbook
P. 21
Characteristics of flowchart
Easy to understand.
Independent of any programming language.
Helps to understand and write program correctly.
Helps to create efficient plans.
Helps to understand the task step by step.
Advantages of flowchart
Provides an approach towards solving a problem and brings visual clarity to a problem.
Building a flowchart means doing a kind of documentation of the code you are about to
build.
Easy to understand the logic/ debugging process of a given problem.
Critical Thinking
Example 1: Draw a flowchart to calculate profit and loss.
(Refer Example 1 for algorithm)
Solution:
Start
Read cost
Price (C.P.)
Read selling
Price (S.P.)
Yes
S.P.>C.P. Profit = S.P. – C.P.
No
Loss = C.P. – S.P. Print Profit
Print Loss
End
Algorithms with Block Coding 19

