WEEK THREE
FLOWCHART
This is a diagrammatical representation of the flow of data or the logical
steps involved in carrying out a process or in solving problem.
FLOW CHART SYMBOLS
1. THE PROCESS SYMBOL: The process symbol is represented with a
rectangle. It is used to indicate all arithmetic operations such as addition,
subtraction, multiplication etc. Assignment statements and other process
activities use the process symbol.
Diagram
2. DECISION SYMBOL: Decision symbol is represented with a diamond
shape. It is used for comparison. Based on the comparison, a path labeled
either Yes or No (True or False) is followed. It is used to ask questions
that can be answered.
Diagram
3. INPUT/OUTPUT SYMBOL: The input and output symbol is used to
represent or indicate all input fed data and output displayed information.
Diagram
4. TERMINAL SYMBOL: This symbol is used to indicate the beginning
and ending of a process. It is used to represent start and stop.
5. PREDEFINED PROCESS: This is used to invoke a subroutine or an
interrupt program
6. FLOW LINES: It shows direction of flows
FLOW CHART DIAGRAM FOR SOLVING A PROBLEM.
1. Draw a flowchart to find the area of a circle of radius
stst start
Read r
Area=3.142*r*r
Print area
End
Flowchart to convert temperature Fahrenheit to Celsius
Start
Read F
C=5/9*(F32)
Print C
End
Draw a flowchart to read two numbers and find their sum
Start
Read A,B
C A+B
Print C
End
A flowchart that reads two numbers and finds the greater number
between the two numbers
Start
Read A,B
True false
If
A>B
Print A Print B
End
FLOWCHART to calculate the average from 25 exam scores
START
SUM=0,
COUNT=0
ENTER
SUM=SUM+SCORES
COUNT= COUNT+1
NOYES
C=2
5?
AV=SUM/25
PRINT AV
END
Exercise; 1. Write an algorithm of the above flowchart.
ASSIGNMENT
1. What are the uses of flowchart?