You are on page 1of 28

COMPUTER

MAYDOLONG NATIONAL HIGH SCHOOL


School ID : 313514

PROGRAMMING
Quarter 2, Module 7

JULIAN B. ADOR
ICT Teacher
January 20, 2022
Prayer
Dear Lord and Father of all, thank you for
today. Thank you for ways in which you provide
for us all. For your protection and love we thank
you. Help us focus our hearths and minds now
what we are about to learn. Inspire us by your
holy spirit as we listen and write. Guide us by
your eternal light as we discover more about the
world around us. We ask all this in the name of
Jesus. Amen.
Welco
me!10
STE

Teacher JULES
Checking of Attendance
TYPE P at the CHATBOX IF YOUR NAME IS CALLED
Review
Find It!
Directions:
The word search
puzzle contains
words related to our
previous lesson -
Algorithm.

Find the 7 words


hidden in the box.
1. A step-by-step
procedure for solving
problems.

2. 3 Parts of Algorithm

3. The first step of an


algorithm is ________
and the last is _______

4. Algorithm consist of
_________
 Algorithm is a step-by-step procedure for solving problems.

 Computer algorithms have three parts


 Input
 Procedure
 Output

 The first step of an algorithm is Start and the last is Stop

 Algorithm consist of Steps


In programming we use visual
representation of an algorithm
(step by step procedure ) in which the
steps and processes to be followed are
represented by symbols (Geometric
Shapes). We use FLOWCHART to do that.
Who are familiar with Flowchart?
Based from the given images below, which is
an example of flowchart?

A B C
What is FLOWCHART?
A FLOWCHART is the graphical or pictorial representation of an
algorithm with the help of different symbols, shapes, and arrows
to demonstrate a process or a program.
Examples of
Flowchart Based on the given
image, what are the
characteristics of
flowchart?

Shapes
Arrows
Start
End
Command inside
the shapes
Common Flowchart
Symbols
Flowchart Symbol Name Description

1. Marks the beginning (START) and the


Terminal
end (END, STOP) of the program

Process Also known as an “Action Symbol,”


2. this shape represents a process,
action, or function. It’s the most
widely-used symbol in flowcharting.
Common Flowchart Symbols (

Preparation Contains the initial values of variables


3.
or variable declarations.

Input/Output Contains any statement that causes


data to be inputted to a program
4.
(INPUT, READ) or outputted from the
program (PRINT, WRITE).
Common Flowchart Symbols (

Contains a question or condition that


Decision
requires a yes/no or true/false
5. response and leads to one of the two
or have alternative course of action

Connects 2 flowchart segments that


6. Connector
are found on the same page to
eliminate lengthy flow lines. This
symbol should be labeled (e.g. capital
letters) to show parts that are being
connected
Common Flowchart Symbols (

Arrow Connect symbols and indicate


7. sequence of operations (Standard
direction flow is from top to bottom
and from left to right).
How to create a Flowchart
General Rules for flowcharting
• All boxes of the flowchart are connected with Arrows. (Not lines)
• Flowchart symbols have an entry point
on the top of the symbol with no
other entry points. The exit point for
all flowchart symbols is on the bottom
except for the Decision symbol.
• The Decision symbol has two exit
points; these can be on the sides or the
bottom and one side.
• Generally a flowchart will flow from
top to bottom.
• Connectors are used to connect breaks in the flowchart.
• All flow charts start with a Terminal or Predefined Process (for interrupt
programs or subroutines) symbol.
• All flowcharts end with a terminal or a contentious loop.
Example Problem Start

Problem No. 1
Draw a flowchart that accept any two Input a, b
numbers then print the sum of the
numbers.
Sum = a + b

Print sum

End
Start
Problem No. 2
Input a, b
Draw a flowchart to
accept two numbers a
and b then find the
greater between them. Yes Print “ a is greater
Is a > b? than b”

No
Print “ b is greater
than a”

End
Short Quiz Column A Column B
A. Matching Type 1.
a. Connector
Directions :
Match the flowchart 2.
symbols in Column A
b. Process
with its Name in
3.
Column B. c. Decision

4.
d. Terminal

5.
e. Input/Output
Start
B. What is Missing?
Directions: Complete the
given flowchart by
Take Num1,
identifying what is missing
Num2

Average = (num1 +
Problem
num2) / 2
Calculate and print the
average of two numbers

Print Average
Assignment
Directions:
Using 1 whole sheet of paper, draw a flowchart of the given problem.

Problem
Draw a flowchart that will calculate and display the product of two numbers
entered by the user.
Photo Op
THAT’S ALL
FOR TODAY
Bye! See you next time.

You might also like