0% found this document useful (0 votes)
21 views45 pages

Grade 10 Lesson 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views45 pages

Grade 10 Lesson 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Lesson 2:

FLOWCHART AND
PSEUDOCODE

Saint Augustine’s School


Tagudin, Ilocos Sur
What is a flowchart?

It is a graphical representation of the sequence of


operations in an information system or program.
Information system flowcharts show how data flows
from source documents through the computer to
final distribution to users.

Saint Augustine’s School


Tagudin, Ilocos Sur
What is a flowchart?

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 1:

Write the pseudocode and


draw the flowchart of a
program that accepts three
numbers and displays its
product.

Saint Augustine’s School


Tagudin, Ilocos Sur
FLOWCHART
SYMBOLS

Saint Augustine’s School


Tagudin, Ilocos Sur
TERMINAL
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
TERMINAL
SYMBOL

The terminal symbol, which is oval-shaped,


represents the start and endpoints of an
algorithm.

Saint Augustine’s School


Tagudin, Ilocos Sur
TERMINAL
SYMBOL

The words START and BEGIN, or STOP and END,


are usually placed as narratives within the start
and end symbols.

Saint Augustine’s School


Tagudin, Ilocos Sur
TERMINAL
SYMBOL

Typically, there is only one starting point. Still,


there may be more than one endpoint, one to
indicate the end of standard processing and
others to indicate an exit resulting from one or
more unrecoverable error conditions.

Saint Augustine’s School


Tagudin, Ilocos Sur
TERMINAL
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
INPUT/OUTPUT SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
INPUT/OUTPUT
SYMBOL

Both input and output operations are


represented by a parallelogram tilted
to the right.

Saint Augustine’s School


Tagudin, Ilocos Sur
INPUT/OUTPUT
SYMBOL

The nature of the process to be performed is


indicated by including the terms READ and
INPUT to denote input operations and the
terms PRINT and WRITE to denote output
operations.

Saint Augustine’s School


Tagudin, Ilocos Sur
INPUT/OUTPUT
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
PROCESSING
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
PROCESSING
SYMBOL

The rectangular processing symbol is used to


indicate operations involving arithmetic and data
manipulation. This symbol is also used to
represent a collection of statements that
perform computations.

Saint Augustine’s School


Tagudin, Ilocos Sur
PROCESSING
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
DECISION
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
DECISION
SYMBOL

The diamond-shaped decision symbol


indicates a point in the algorithm at
which possible a branch to one or more
alternative paths.

Saint Augustine’s School


Tagudin, Ilocos Sur
DECISION
SYMBOL

Also, flowlines leaving the corners of


the diamond are labelled with the
decision results associated with each
path.

Saint Augustine’s School


Tagudin, Ilocos Sur
DECISION
SYMBOL

Also, flowlines leaving the corners of the


diamond are labelled with the decision
results associated with each path.

Saint Augustine’s School


Tagudin, Ilocos Sur
DECISION
SYMBOL

Also, flowlines leaving the corners of the


diamond are labelled with the decision
results associated with each path.

Saint Augustine’s School


Tagudin, Ilocos Sur
DECISION
SYMBOL

Saint Augustine’s School


Tagudin, Ilocos Sur
ON- PAGE
CONNECTOR

Saint Augustine’s School


Tagudin, Ilocos Sur
ON- PAGE
CONNECTOR

A small circle indicates a connection


between two points on the same page in a
flowchart. Whenever possible, connectors
should be used instead of flowlines.

Saint Augustine’s School


Tagudin, Ilocos Sur
ON- PAGE
CONNECTOR

Connectors are used in pairs, one indicating


an exit from and the other an entry to a
point in a flowchart. The connector pairs are
identically labelled.

Saint Augustine’s School


Tagudin, Ilocos Sur
ON- PAGE
CONNECTOR

Saint Augustine’s School


Tagudin, Ilocos Sur
OFF- PAGE
CONNECTOR

Saint Augustine’s School


Tagudin, Ilocos Sur
OFF- PAGE
CONNECTOR

Off-page connectors are used to


connect flowcharts that are too large to
fit on one page.

Saint Augustine’s School


Tagudin, Ilocos Sur
OFF- PAGE
CONNECTOR

They represent an entry or an exit from a


point in the flowchart on a different page. As
with on-page connectors, they appear in
identically labeled pairs.

Saint Augustine’s School


Tagudin, Ilocos Sur
OFF- PAGE CONNECTOR

Saint Augustine’s School


Tagudin, Ilocos Sur
FLOWLINES

Saint Augustine’s School


Tagudin, Ilocos Sur
FLOWLINES

The symbol represents the


direction of processing.

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 1:

Write the pseudocode and


draw the flowchart of a
program that accepts three
numbers and displays its
product.

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 1:

Write the pseudocode and


draw the flowchart of a
program that accepts three
numbers and displays its
product.

INPUT
Saint Augustine’s School
Tagudin, Ilocos Sur
Example Number 1:

Write the pseudocode and


draw the flowchart of a
program that accepts three
numbers and displays its
product.

PROCESS Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 1:

Write the pseudocode and


draw the flowchart of a
program that accepts three
numbers and displays its
product.

OUTPUT Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 2:

Write the pseudocode and draw


the flowchart of a program that
accepts a temperature. If the
temperature is greater than 0, it will
display “Above Freezing Point, else
it will display “Below Freezing Point.”

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 2:

Write the pseudocode and draw


the flowchart of a program that
accepts a temperature. If the
temperature is greater than 0, it will
display “Above Freezing Point, else
it will display “Below Freezing Point.”

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 2:

Write the pseudocode and draw


the flowchart of a program that
accepts a temperature. If the
temperature is greater than 0, it will
display “Above Freezing Point, else
it will display “Below Freezing Point.”

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 2:

Write the pseudocode and draw


the flowchart of a program that
accepts a temperature. If the
temperature is greater than 0, it will
display “Above Freezing Point, else
it will display “Below Freezing Point.”

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 2: Pseudocode
1. Start Program
2. Enter temp
3. If temperature is greater than 0, display”
Above Freezing point”.
else it will display “Below Freezing point”
4. End Program

Saint Augustine’s School


Tagudin, Ilocos Sur
Example Number 2:
Flowchart

Saint Augustine’s School


Tagudin, Ilocos Sur
Assignment

A. Write the pseudocode and draw the


flowchart of a program that accepts four
grades and displays it average.

Saint Augustine’s School


Tagudin, Ilocos Sur
Assignment

A. Write the pseudocode of a program that


accepts age. If the age is greater than 18, it will
display, “You are qualified to vote”; else, it will
display “You are not qualified to vote.”

Saint Augustine’s School


Tagudin, Ilocos Sur

You might also like