Computer Science 3rd Lect
Computer Science 3rd Lect
PROGRAM ANALYSIS
Example of Flow Chart
Draw a flow chart to find square of number from 1 to 10
A
Start
C=1 C= C+1
S=C * C
NO
Is
C>10
PRINT S
Stop
A
Example of Flow Chart
Find the largest number from given two numbers.
Start
READ
NO A,B
IS No
A>B
?
Yes PRINT B
PRINT A
Stop
C) Pseudocode
1. Sequence
2. Selection
3. Iteration
Advantages of Pseudocode
Limitation of Pseudocode
1. Graphic representation of program logic is not available in
Pseudocode.
2. As there are no standard rules for writing Pseudocode, different
programmers may use their own style, which may cause
communication problem.
3.3 Programming Techniques
1. Structured Programming
2. Modular Programming
1. Structured Programming
S1
S2
S3
2. Modular Programming