Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Republic of the Philippines

Department of Education
Region V – Bicol
Schools Division of Sorsogon
PILAR NATIONAL COMPREHENSIVE HIGH SCHOOL
Marifosque, Pilar, Sorsogon

LESSON PLAN
TLE – ICT (COMPUTER PROGRAMMING) - GRADE 9/10

I. OBJECTIVES
A. CONTENT STANDARD
The learners demonstrate an understanding of basic concepts, and underlying principles
in programming.
B. PERFORMANCE STANDARD
The learners shall be able to independently create/provide a quality and marketable
product and/or service in programming, as prescribed by TESDA Training Regulations.
C. LEARNING COMPETENCIES
LO2: Code using standard algorithms (TLE_ICTCP9-12PS-IIa-b-2)
At the end of the lesson, the students should be able to:
1. understand the control structure – For Loops;
2. write a program using “For Loops” statement; and
3. appreciate the use of loop statements in programming.
II. CONTENT
Control Structure – For Loops
III. LEARNING RESOURCES

A. REFERENCES
1. Teacher’s CG pages: Page 15-16
2. Learner’s Materials pages: N/A
3. Textbook pages:
Computer Programming. Vol. Volume I. Manila: Rex Book
Store, Inc. and IT Works, Inc., 2016., pp 130-134
4. Additional Materials from Learning Resource (LR) portal: N/A
5. Other Learning Materials:
Online Reference:
 https://www.w3schools.com/python/python_for_loops.asp
 https://www.geeksforgeeks.org/control-structures-in-programming-
languages/
Materials:
Projector, Laptop, Computers, PowerPoint Presentation, Activity
Handouts, Desktop Application, and Programming Language

IV. PROCEDURE
A. Reviewing previous lesson or presenting the new lesson (10 minutes)

Preliminary Activities
 Prayer and Greetings
 Attendance monitoring

Review of Previous Lesson


 Students may give keywords from previous lesson.
 Questions will be projected on the white screen and students will be called to read
them and answer promptly.

Motivation
 Through PowerPoint, the teacher will show a video or animation.
Source: (https://youtu.be/BRLmzQH-Hd4)
 Ask the students the following questions:
1. What do you think is going on in the video/animation?
2. How do you feel when you do tasks on repeat?
3. What do you usually do when dealing tasks that has to be done repeatedly?

B. Establishing a purpose for the lesson (10 minutes)

 Present the objectives of the lesson.

 Present a video clip.


Source: (https://youtu.be/JoKTqHCni0M)

Whenever we do something over and over again, it means we are on a repeat cycle. As
we all know, cycles are usually represented with a circular pattern, and a flow or
direction that follows a circular path is called a loop.

In computer, the process is looped if it is done repeatedly. This function of computers


makes things more efficient and easier. Plus, the accuracy of computers to perform tasks
with exact same result makes its use more amazing.

Activity: “What’s App?”

 Logos of applications for mobile and desktop will be projected, and students will
have to guess the name of the applications. The class will be divided and grouped
according to their seat row. Groups will be assigned with one of the applications they
guessed and will answer the following questions.

1. What is the use of the shown application?


2. Do you think there is a loop process in the app? How?
3. How do you think developers write the code of these applications? Do you think
they also write the codes in repeat to make it perform tasks repeatedly?

C. Presenting examples/instances of the new lesson (10 minutes)


In computer programming, there are processes that are performed repeatedly. Although
these processes are done multiple times it does not mean that the codes or instructions
have been written many times as well. To avoid the arduous task of writing long codes
for repetitive actions, programmers use loop statements.

Control Structures – are methods to control how the computer instructions will be
performed. It analyzes and chooses in which direction a program flows based on certain
parameters or conditions.

For Loop statement – A control structure in programming which allows to perform the
same task for a number of times which is set in the loop statement.

For Loop statement syntax:


1 For variable in range(A,B,C):
2 Task(s)_to_be_performed_in_repeat

variable – used as counter for each index in range.


range – sets the number time a task/s will repeated.

For Loop Algorithm

Example:

Use the range function and write a program which prints the number 0 to 5.
1 For number in range(0,5,1):
2 print(number)

Range function parameters: range(A,B,C)


We can assign it with three values:
A. The start number
B. The end number
C. The step

Activity: “Let’s Roll It!”


Materials
Activity sheet and Dice Roller (desktop/mobile application)
Instructions
Each student will be given an activity sheet. Students will open the application – dice
roller from their assigned computer and roll the dice to get a number and use that
number to complete the activity sheet.
 Teacher will discuss the relation of the previous activity to the process flow of “For
Loop” statement.
D. Discussing new concepts and practicing new skills
Activity: Fill Me In!
 Programs written in python will be shown onto the white screen. Some parts of the
code are left blank. Students will have to copy the program codes into their
computers and complete the program by filling in the blanks.

CODE: CODE:

strName = “Anna” strName = “Anna”


______ number ___ range(_,_,_): ______ number ___ range(_,_,_):
print(_____) print(_____[number])

OUTPUT: OUTPUT:

Anna A
Anna n
Anna n
Anna a

CODE: CODE:

listName = [“Anna”,”_____”] listName = [“Anna”,”Susan”]


for ______ in _______: ___ number in range(0,_,1):
print(listName[_]) print(listName[_])

OUTPUT: OUTPUT:

Anna Susan
Benjamin Susan

E. Finding practical applications of concepts and skills in daily living


 Let the students answer the following questions:
1. What is the use of loop statements?
2. How does it help people and computer programmers?

The emergence of globalization has pushed the pace of technological innovations. Along
with the effects of globalization, there is a dramatic increase in the demand for global
products. One of the issues faced by international suppliers is the lack in manpower.
Hence robotics is utilized to automate production processes. The looping in robotic
processes plays a crucial role in mass productions.

F. Making generalizations and abstractions about the lesson


Remember:
When programmers write code, loops allow them to shorten what could be hundreds of
lines of code to just a few. This allows them to write the code once and repeat it as many
times as needed, making it more likely for the program to run as expected.

G. Evaluating learning
Let us test your knowledge:
Instructions: Open IDLE python in your computer and write a program that will generate
a 5 x 5 square using the special character asterisk (*). The program must be written using
For Loop statement. Output should look like this:

*****
*****
*****
*****
*****
Save the file as: loop.py
V. REMARKS

VI. REFLECTION

A. No. of learners who earned 80% in the evaluation: _______


B. No. of learners who require additional activities for remediation: _______
C. Did the remedial lessons work? No. of learners who have caught _______
Up with the lesson:
D. No. of Learners who continue to require remediation: _______
E. Which of my teaching strategies worked well? Why did this work? _______
F. What difficulties did I encounter which my principal or supervisor _______
can help me solve?
G. What innovation or localized materials did I use/discover which _______
wish to share with other teachers?

Prepared by:

COOLE052723
PNCHSTLEICT

You might also like