Grade-8-Algorithm-and-flowchart-
Grade-8-Algorithm-and-flowchart-
Flowcharts
A graphical (picture) representation of the sequence of operations in a program is called
flowchart. Flowcharts are an effective way to communicate the algorithm that shows how
a system or sub-system works. In this technique, operations are represented by drawing
the appropriate geometrical shapes.
Basic Flowchart Symbols and Meaning
Symbol Meaning
Flow line
Arrow denotes direction of logic flow in a program.
1
1. Write an algorithm, using pseudocode and a flowchart to inputs two numbers and find sum of
these numbers.
Flowchart Pseudocode
START
INPUT A,B
Total=A+B
INPUT A,B PRINT Total
Total =A+B
PRINT Total
STOP
2.Write an algorithm, using pseudocode and a flowchart to determine a student’s final marks and
indicate whether it is passing or failing. The final mark is calculated as the sum of three marks.
START
Pseudocode
Yes IS TOTAL>50 No
GRA
Passed Failed
STOP
2
Pseudocode
READ A,B
IF (A> B ) THEN
PRINT A
ELSE
PRINT B
END IF
Algorithm:
3
2. Flowchart to find average of 5numbers. Complete the trace table for this flowchart using
the following input numbers.
7, 10, 5, 1, 2
3. Trace the flow chart using the numbers 2 and 3. Write down the each of the values of N in the
order they are printed out.
a)2……………………………………………………………………………………………
b)3 …………………………………………………………………………………………..
4
4.Study the following flowchart very carefully