0% found this document useful (0 votes)
20 views14 pages

Lesson+2 Flowcharts

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

Lesson+2 Flowcharts

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

FLOWCHARTS

TLE COMPUTER EDUCATION 10


START

Initialize v1=0,
v2=0 and
sum=0
END

Enter v1
and v2

Output “The sum Output “The


is greater than program will
5” end”
Get sum
Yes

No
Print sum Sum > 5
What have you observed with
the previous slide?
Flowcharts
are written with program flow from the
top of a page to the bottom.
Each command is placed in a box of the
appropriate shape, and arrows are used to
direct program flow.
A type of diagram that represents an
algorithm or process
Why do we create flowchart
To have a better vision of what we are trying to
program
To have a better logic formulation

It is important that before you create a


program through various programming
applications, you are already able to identify the
flow of your program.
Sample Flowchart Problem
Create a program that will enable you to
input two integers, then get and display
the sum of two integers. If the sum is
greater than 5, the machine will display
“The sum is greater than 5”. If not, display
program ended.
Let us identify the following
Input – 2 integers
Output – sum, display variable
Process – getting the sum/addition
Conditional Statements/Validations – if
sum > 5, display = the sum…, else
program end
START As a Result

Initialize v1=0,
v2=0 and
sum=0
END

Enter v1
and v2

Output “The sum Output “The


is greater than program will
5” end”
Get sum
Yes

No
Print sum Sum > 5
Self-check:
Create the Flowchart of the Facebook login process
Input: Email address and password
Output: Facebook Main page
Process: Enter Log-in
Condition: If the email address and password are
correct, user will be directed to the home page,
otherwise, it will return to the login process.
How to apply Flowcharts in real
life?
For example:
◦Turning on the computer
◦Turning off the computer
◦Removing a flash drive
Pseudocodes vs. Flowchart
Pseudocode is a step-by-step set of
procedures and algorithms combined with
the use of a programming language or
programming syntax
Flowchart is a visual representation of
procedures and algorithms
Assignment:
Directions: Create a Flowchart for the
given processes stated below. (5 pts. each)
Posting on Facebook Timeline
Uploading photo on Facebook

Deadline: Friday, August 5, 2022


Assignment
Make an advanced reading about
◦What is PHP Programming?
◦What are the applications needed to
create PHP programs?
◦How can we create PHP programs?

You might also like