You are on page 1of 17

8

Technology and
Livelihood
Education (TLE)
ICT - PROGRAMMING FOR
ROBOTICS (Exploratory Course)
Week 2

i
Technology and Livelihood Education Grade 8
Self-Learning Module – Programming for Robotics
Quarter 1: Module 2: Week 2
First Edition, 2020

Republic Act 8293 section 176 states that: No copyright shall subsist in
any work of the Government of the Republic of the Philippines. However, prior
approval of the government agency or office wherein the work is created shall
be necessary for exploitation of such work for profit. Such agency of office
may, among other things. Impose as a condition the payment of royalties.

Borrowed materials (i.e., songs, stories, poems, photos, brand names,


trademarks, etc.) included in this book are owned by their respective
copyright holders. Every effort has been exerted to locate and seek permission
to use these materials from their respective copyright owners. The publisher
and authors do not represent nor claim ownership over them.

DEVELOPMENT TEAM OF THE MODULE

Writers : Francis Ben P. Salazar


Editor :
Reviewers :
Illustrator : Mar Onell C. Booc
Layout Artist :
Plagiarism Detector Software : PlagiarismDetector.com
Grammarly Software : CitationMachine.com
Management Team:
Schools Division Superintendent : Dr. Wilfreda D. Bongalos CESO V
Assistant Schools Div. Superintendent : Dr. Marcelita S. Dignos CESO VI
Chief Education Supervisor, CID : Dr. Oliver M. Tuburan
Education Program Supervisor, LRMDS : Mrs. Teresita A. Bandolon
Education Program Supervisor, TLE : Mr. Reynold Q. Velos

Department of Education – Regional Office 7


DepED-Division of Lapu-Lapu CIty
Office Address : B. M. Dimataga Street, Poblacion, Lapu-Lapu City
Telefax : (032) 410-4525
E-mail Address : oliver.tuburan@deped.gov.ph

ii
Property of DepED-Division of Lapu-Lapu City | www.depedlapulapu.net.ph | (032) 340-7354
INTRODUCTORY MESSAGE

For the facilitator:

Welcome to Technology and Livelihood Education (TLE Self-Learning


Module on ICT-Programming for Robotics (Exploratory Course).

This module was collaboratively designed, developed and reviewed by


educators both from public and private institutions to assist you, the teacher
or facilitator in helping the learners meet the standards set by the K to 12
Curriculum while overcoming their personal, social and economic constraints
in schooling.

This learning resource hopes to engage the learners into guided and
independent learning activities at their own pace and time. Furthermore, this
also aims to help learners acquire the needed 21st century skills while taking
into consideration their needs and circumstances.

As a facilitator, you are expected to orient the learners on how to use this
module. You also need to keep track of the learners’ progress while allowing
them to manage their own learning. Furthermore, you are expected to
encourage and assist the learners as they do the tasks included in the module.

For the learner:

Welcome to the Technology and Livelihood Education (TLE Self-


Learning Module on ICT-Programming for Robotics (Exploratory Course).

The hand is one of the most symbolized part of the human body. It is
often used to depict skill, action and purpose. Through our hands we may
learn, create and accomplish. Hence, the hand in this learning resource
signifies that you as a learner is capable and empowered to successfully
achieve the relevant competencies and skills at your own pace and time. Your
academic success lies in your own hands!

This module was designed to provide you with fun and meaningful
opportunities for guided and independent learning at your own pace and time.
You will be enabled to process the contents of the learning resource while
being an active learner.

iii
HOW TO USE THE MODULE
Welcome to your modular training in Programming for Robotics
(Exploratory Course). In this module you will have a great deal of
understanding in programming for robotics, and will provide you a fun,
engaging way to learn about the basics in computer science concepts.

This module covers the following:


1. Conditionals in Minecraft: Voyage Aquatic
2. Until Loops in Maze

You must follow the progression of the topics lesson by lesson for easy
understanding.
1st – Answer the Pre-Test.
2nd – Read the given lessons & open the given links for further
references.
3 – Perform the given activity then submit evidences/outputs.
rd

4th – Answer the Post-Test.

Take note, you need to be online in doing the activities in this


module, and do not skip videos in each activity. Now let us start exploring
new things.

iv
Lesson 2.1 – Conditionals in Minecraft: Voyage
Aquatic

What I Need to Know


This will give you an idea of the skills or competencies you are expected to
learn in the module.

OBJECTIVES
1. Define circumstances when certain parts of a program should run and
when they shouldn't.
2. Determine whether a conditional is met based on criteria.
3. Use code blocks in building the knowledge of loops creatively.
4. Exhibit oneness and a helping attitude to attain the required activity.

DepED-Division of Lapu-Lapu City 5 TLE/TVL


What I Know
This part includes an activity that aims to check what you already know about
the lesson to take. If you get all the answers correctly (100%), you may decide
to skip this module.
Pre-Test 2.1
This is to check what you know about the lesson. Do not open/scan the
lesson while answering. Take the test honestly.

Multiple Choices: Encircle the letter of the correct answer.

1. Which of the following checks a program to see if it is true before allowing


an action?
A. Move Forward B. Turn Left C. Loop D. Repeat Until

2. What do you call to the statements that run only under a certain condition?
A. Conditions B. Conditionals C. Loop D. While Loop

3. What daily activity where you can relate in using a coding loop?
A. Keep on texting your friends.
B. Keep on walking until reach your destination.
C. Spending your extra time in playing mobile games.
D. All of the above.

4. Which of the following best describes the code?


A. Move forward if standing on a coral.
B. Move right or left if standing on a coral.
C. Turn right if standing on a red coral or left if on a blue coral.
D. Turn right if standing on a blue coral or left if on a red coral.

5. Which of the following best describes the code?


A. Turn right anytime.
B. Turn right if path to the right is block.
C. Turn rigth if path ahead is block.
D. Non of the above.

True or False: Write True if the statement is correct, otherwise write False.

______6. Repeat Until block is an example of a Loop block.

DepED-Division of Lapu-Lapu City 6 TLE/TVL


______7. and perform the same function.

______8. This code cannot be shorten.

______9. When run, this code will move forward 2 times then
turn right.

______10. With this code the sprite/object will stop if there is


no openning on its path.

Refer to Answer Key

What’s In
This is a brief drill or review to help you link the current lesson with the
previous one.

This lesson was originally created for the Hour of Code, alongside with
the Minecraft team. You will get a chance to practice ideas that you have
learned in the previous lessons, as well as getting a sneak peek to
conditionals.

What’s New
In this portion, the new lesson will be introduced to you in various ways; a
story, a song, a poem, a problem opener, an activity or a situation.

Kindly perform this activity with the cooperation of your


brother/sister/parent at home.

DepED-Division of Lapu-Lapu City 7 TLE/TVL


1. The two of you fall in line.
2. Let the first in line walk straight and let the second one follow.
3. If you encounter any obstacles out of place you must step over it.
4. If you reach a chair, you must sit down.

Did you get the point of this lesson?

What Is It
This section provides a brief discussion of the lesson. This aims to help you
discover and understand new concepts and skills.

In this lesson, you will be using another type of conditionals.

In the previous week you learn that Conditionals refer to the


statements that only run under certain conditions, while Condition is a
statement that a program checks to see if it is true or false. If true, the given
task will be performed otherwise it will not.

The set of puzzles in this lesson will add up your knowledge in loops
and conditionals. By mixing these two codes together, you will be able to
explore new and exciting environment in creating a fun and innovative
program.

What I Have Learned


This includes questions or blank sentence/paragraph to be filled in to process
what you learned from the lesson.

This time you go to your computer/laptop/smartphone and open the


hour of code website (code.org) then follow the following steps below.
1. Log-in to your Code.org account (you can use your gmail or facebook
account).
2. Scroll down under the “My Dashboard” Tab.
3. Input the classroom code given by your teacher.
4. Click the Course your teacher has assigned to you.
5. Select Lesson 13. Conditionals in Minecraft: Voyage Aquatic
6. You may contact your classmates/friends in this activity.

DepED-Division of Lapu-Lapu City 8 TLE/TVL


You may contact your classmates/friends to collaborate in this activity.

What I Can Do
This section provides an activity which will help you transfer your new
knowledge or skill into real life situations or concerns.

Journal Prompts: Write a journal about what you have learned in the
Conditionals in Minecraft: Voyage Aquatic activity. The following questions
will be your guide in doing your journal. Use the space below or the back
portion of this page.
 Draw a feeling face to show how you felt during today’s lesson.
 Draw something else you could have built in this Minecraft world.
 Can you draw a scene where someone is using conditional?
 Briefly explain each of your drawing.

What’s More
This comprises activities for independent practice to solidify your
understanding and skills of the topic. You may check the answers to
the exercises using the Answer Key at the end of the module.

TLE 7/8 Exploratory - Carpentry 9 DepED-Division of Lapu-Lapu City


Assessment
This is a task which aims to evaluate your level of mastery in
achieving the learning competency.

Self-Check 2.1
Multiple Choices: Encircle the letter of the correct answer.

1. Which of the following checks a program to see if it is true before allowing


an action?
A. Repeat Until B. Turn Left C. Move Forward D. Loop

2. What do you call to the statements that run only under a certain condition?
A. Conditions B. Conditionals C. Loop D. While Loop

3. What daily activity where you can relate in using a coding loop?
A. Keep on texting your friends.
B. Spending your extra time in playing mobile games.
C. Keep on walking until reach your destination.
D. All of the above.

4. Which of the following best describes the code?


A. Move forward if standing on a coral.
B. Move right or left if standing on a coral.
C. Turn right if standing on a red coral or left if on a blue coral.
D. Turn right if standing on a blue coral or left if on a red coral.

5. Which of the following best describes the code?


A. Turn rigth if path ahead is block.
B. Turn right if path to the right is block.
C. Turn right anytime.
D. Non of the above.

True or False: Write True if the statement is correct, otherwise write False.

______6. Repeat Until block is not a Loop block.

______7. and have different functions.

TLE 7/8 Exploratory - Carpentry 10 DepED-Division of Lapu-Lapu City


______8. This code can be shorten using conditionals.

______9. When run, this code will move forward 2 times then
turn right.

______10. With this code the sprite/object will stop if there is


no openning on its path.

Refer to Answer Key

Additional Activities
In this portion, another activity will be given to you to enrich your
knowledge or skill of the lesson learned. This also tends retention of
learned concepts.

 Here are Minecraft games you can play online to enrich your basic
coding skills.
o https://code.org/minecraft

TLE 7/8 Exploratory - Carpentry 11 DepED-Division of Lapu-Lapu City


Lesson 2.2 - Until Loops in Maze

What I Need to Know


This will give you an idea of the skills or competencies you are expected to
learn in the module.

OBJECTIVES
1. Translate spoken language conditional statements and loops into a
program.
2. Build programs with the understanding of multiple strategies to
implement conditionals.
3. Share and explore the potential for creating complex and innovative
programs seriously.
4. Show patience and orderliness while building a program.

TLE 7/8 Exploratory - Carpentry 12 DepED-Division of Lapu-Lapu City


What I Know
This part includes an activity that aims to check what you already know about
the lesson to take. If you get all the answers correctly (100%), you may decide
to skip this module.
Pre-Test 2.2
This is to check what you know about the lesson. Do not open/scan the
lesson while answering. Take the test honestly.

Multiple Choices: Encircle the letter of the correct answer.

1. What command tells you to do something up to the point that the condition
becomes true?
A. Loop B. Until C. Repeat D. While

2. Which of the following is a Loop block?


A. Repeat Until B. Move Forward C. Trun Right D. While Else

3. Which of the following tells you to do something again?


A. Loop B. Until C. Repeat D. While

4. What do you think will happen with this code?


A. It will not move. C. It will move forward and stop.
B. It will make it to the bird. D. It will keep on turning left.

5. Which of the following is NOT a Loop block?

A. C.

B. D.

True or False: Write True if the statement is correct, otherwise write False.

______6. You can put multiple blocks in a loop to repeat a series of action.
______7. In a Repeat loop you can’t enter number of times you want your
command to be repeated.
______8. Repeat Until block is an example of a Condition.
______9. Repeat Block and While Loop can be used at the same time.
______10. In a mobile game, hitting the enemy base until it is destroyed to win
the game is an example a Conditional.

TLE 7/8 Exploratory - Carpentry 13 DepED-Division of Lapu-Lapu City


Refer to Answer Key

What’s In
This is a brief drill or review to help you link the current lesson with the
previous one.

In this lesson, you will learn until loops, and build programs that will
repeat actions until they reach their desired stopping point.

What’s New
In this portion, the new lesson will be introduced to you in various ways; a
story, a song, a poem, a problem opener, an activity or a situation.

Perform this activity with anybody at home to follow your instructions.


1. Play a music and let them dance until the music stops or paused.
2. Do any exercises until they reach 16 counts.

Now after doing the activities above, do you have a clearer look about
this lesson?

What Is It
This section provides a brief discussion of the lesson. This aims to help you
discover and understand new concepts and skills.

Until loop is a command that tells you to do something and stops when
the condition becomes true.

In this lesson, the set of puzzles will work to give you more knowledge
of loops by adding the until conditional. In combining the two set of
commands, you will be able to explore the potential in creating complex
programs.

TLE 7/8 Exploratory - Carpentry 14 DepED-Division of Lapu-Lapu City


What I Have Learned
This includes questions or blank sentence/paragraph to be filled in to
process what you learned from the lesson.

This time you go to your computer/laptop/smartphone and open the


hour of code website (code.org) then follow the following steps below.
1. Log-in to your Code.org account (you can use your gmail or facebook
account).
2. Scroll down under the “My Dashboard” Tab.
3. Input the classroom code given by your teacher.
4. Click the Course your teacher has assigned to you.
5. Select Lesson 14. Until Loops in Maze
6. Finish the assigned course.

What I Can Do
This section provides an activity which will help you transfer your new
knowledge or skill into real life situations or concerns.

Journal Prompts: Write a journal about what you have learned in the
Conditionals with Bee activity. The following questions will be your guide in
doing your journal. Use the space below or the back portion of this page.
 What was today’s lesson about?
 How do you feel about today’s lesson?

TLE 7/8 Exploratory - Carpentry 15 DepED-Division of Lapu-Lapu City


What’s More
This comprises activities for independent practice to solidify your
understanding and skills of the topic. You may check the answers to the
exercises using the Answer Key at the end of the module..

Assessment
This is a task which aims to evaluate your level of mastery in
achieving the learning competency.

Self-Check 2.2
Multiple Choices: Encircle the letter of the correct answer.

1. What do you think will happen with this code?


A. It will not move. C. It will move forward and stop.
B. It will make it to the bird. D. It will keep on turning left.

2. Which of the following is NOT a Loop block?

A. C.

B. D.

3. What command tells you to do something up to the point that the condition
becomes true?
A. Loop B. Until C. Repeat D. While

4. Which of the following is a Loop block?


A. Repeat Until B. Move Forward C. Trun Right D. While Else

5. Which of the following tells you to do something again?


A. Loop B. Until C. Repeat D. While

True or False: Write True if the statement is correct, otherwise write False.

______6. You can put multiple blocks in a loop to repeat a series of action.

TLE 7/8 Exploratory - Carpentry 16 DepED-Division of Lapu-Lapu City


______7. In a mobile game, hitting the enemy base until it is destroyed to win
the game is an example a Conditional.
______8. Repeat Until block is an example of a Condition.
______9. Repeat Block and While Loop can be used at the same time.
______10. In a Repeat loop you can’t enter number of times you want your
command to be repeated.

Refer to Answer Key

Additional Activities
In this portion, another activity will be given to you to enrich your
knowledge or skill of the lesson learned. This also tends retention of
learned concepts.

 In your own words, explain briefly the difference between an until loop
and a while loop.

TLE 7/8 Exploratory - Carpentry 17 DepED-Division of Lapu-Lapu City

You might also like