You are on page 1of 15

COMPUTER PROGRAMMING

What is Flowchart?

 A flowchart is a graphic representation of a procedure, system, or computer algorithm. They're


frequently utilized in a variety of fields to document, analyse, plan, enhance, and convey often
complex processes in clear, simple diagrams.

 A flowchart is a diagram that depicts the actions and decisions required to complete a process. A
diagram shape is used to represent each step in the sequence. Connecting lines and directional
arrows connect the steps. This allows anyone to look at the flowchart and follow the procedure
from start to finish.
Types of Flowchart?

 System Flowchart

 Program Flowchart
Symbols & Functions

Symbol: Terminal

START/BEGIN END/STOP

Functions:

Indicates when the program, process, or interrupt program begins and ends.
Symbols & Functions

Symbol: Input

READ NUM1, N2 INPUT N1, N2 ACCEPT N1, N2

Functions:
Any input/output operation can be performed with this symbol. This indicates that the computer will
get data
Symbols & Functions

Symbol: Output

PRINT “SUM” DISPLAY


“PRODUCT”

Functions:
Any input/output operation can be performed with this symbol. This indicates that the computer will
produce results.
Symbols & Functions

Symbol: Process

COMPUTE THE SUM


(SUM=N1+N2)

Functions:

Any form of internal operation within the processor or memory is indicated by this symbol.
Symbols & Functions

Symbol: Flow lines

Functions:

Shows direction of the flow


Symbols & Functions

Symbol: On Page Connector

Functions:

On a flowchart page, it's used to substitute long lines.


Symbols & Functions

Symbol: Off Page Connector

Functions:

Used to indicate that the flow is continuing on a separate page in the flowchart. As labels, capital letters are
usually utilized in the symbol.
Symbol:
Predefined Process

Y
ACADEMIC ACADEMIC B
SUBJECTS?
SUBJECTS

N
Symbols & Functions

Symbol: Database

STUDENT EMPLOYEE
DATABASE DATABASE

Functions:

Indicates a list of data with a consistent structure that can be searched and sorted.
Symbols & Functions

Symbol: Document

Functions:

The term "readable data" refers to information that can be read by humans, such as printed output.
WRITE AN ALGORITHM AND DRAW A FLOWCHART THAT WILL COMPUTE FOR THE SUM OF TWO NUMBER.

START
START
INPUT TWO NUMBERS (NUM1, NUM2)
INPUT TWO
COMPUTE FOR THE SUM OF TWO NUMBERS (NUM1,
NUMBERS NUM2)

(SUM=NUM1+NUM2)
DISPLAY “SUM”
END. COMPUTE FOR THE SUM OF TWO
NUMBERS (SUM = NUM1+NUM2)

DISPLAY
“SUM”

END
START Symbols & Functions

INPUT AGE
Start
Input Age
If Age >= 18
Display “Allowed to Vote”
IF AGE Y DISPLAY Else
>=18 “ALLOWED TO A Display “Not Allowed to Vote”
VOTE” End.

N
DISPLAY “NOT
ALLOWED TO
VOTE”

STOP A

You might also like