Page 222 - Ai_V1.0_Class9
P. 222
• It is an effective way to solve and analyse a problem.
• It is an easier method of converting a program logic into a code using any programming language.
• It makes program or system maintenance easier.
• It is used in preparing documentation of an application or a process.
Disadvantages of Flowchart
The disadvantages of a flowchart are as follows: START
• It is a time-consuming process.
• It is difficult to make flowcharts for complex and
long programs. INPUT AGE
• Modification of the program through flowchart is
sometimes tedious.
If we have to represent branching or looping in
flowchart then we use a diamond symbol with IS AGE NO DISPLAY "NOT
directions as YES or NO. >=18? ELIGIBLE"
Let us try to find out the age for driving licence
using a flowchart. YES
DISPLAY
"ELIGIBLE"
STOP
If we have to repeat the printing of hello five times then the flowchart for this kind of looping will be:
START
COUNT=1
IS NO
COUNT<=5? STOP
YES
DISPLAY
"HELLO"
COUNT=COUNT+1
220 Artificial Intelligence Play (Ver 1.0)-IX

