You are on page 1of 5

LA SALETTE OF ROXAS COLLEGE, INC

Magsaysay St. Vira, Roxas, Isabela


S.Y 2021-2022
TECHNOLOGY AND LIVELIHOOD EDUCATION
INFORMATION AND COMMUNICATION TECHNOLOGY

SOFTWARE AND PROGRAM


CONTROL STRUCTURES
SECOND QUARTER – WEEK 5 AND 6
10
MODULE 6

INTRODUCTION: CONTROL STRUCTURES


All computer programs, no matter how simple or how complex, are written using one or more of three basic structures:
sequence, selection, and repetition. These structures are called control structures or logic structures because they control
the flow of a program’s logic. In other words, they control the order in which the computer executes the program’s
instructions. You will use the sequence structure in every program you write. In most programs, you also will use the
selection and repetition structures. This lesson gives you an introduction to the three control structures.

Explore: Let’s begin the module by performing the activity below in order to check your prior knowledge
about the lesson.

LC4: Explain the three basic control ACTIVITY 1


structures and how they can be used to GRAPHIC ORGANIZER
control program flow during execution.
INSTRUCTIONS: Watch the video on this link:
https://www.youtube.com/watch?v=eSYeHlwDCNA , then complete the
graphic organizer chart by writing the needed information inside the box. Use the
template in your LAS found at the end of this module.
YouTube Video Google Drive PDF

Shortened Link: t.ly/i0wL Shortened Link: https://bit.ly/3r0YUYR

WHAT IS IT?
Control Structures are just a way to specify flow of control in programs. Any algorithm or program can be clearer and
more understood if they use self-contained modules called as logic or control structures. It basically analyzes and
chooses in which direction a program flows based on certain parameters or conditions.  Visit this link: t.ly/ade2

End of Explore

Firm Up: Your goal in this section is to learn how programmers use Control Structures to specify flow of
control in programs.

LC4: Explain the three basic control ACTIVITY 2


structures and how they can be used to MATCHING TYPE
Information and Communications Technology (ICT-G10) [Page 1 of 5]
LA SALETTE OF ROXAS COLLEGE, INC
Magsaysay St. Vira, Roxas, Isabela
S.Y 2021-2022
control program flow during execution. INSTRUCTIONS: The worksheet includes a list of terms related to program
control structures, with the key terms given on the left and descriptions on the
right. Match each term with the description that it most closely matches. You will
not use all descriptions. Each description can be used only once. Write your
answers inside the box.
Google Drive PDF

Shortened Link: https://bit.ly/3r0YUYR


__________________________________________________________________________________________
1. Control structures I. the requirement that must be met for the computer to stop processing the loop
body instructions.
2. Decision structure D. a selection structure that is wholly contained within either the true or false path
of another selection structure
3. Iteration N. structure directs the computer to process the program instructions, one after
another, in the order listed in the program.
4. Loop Exit Condition R. the instructions within a loop
5. Sequence P. the structures that control the flow of a program’s logic
6. Nested selection O. the requirement that must be met for the computer to continue processing the
loop body instructions
7. Loop body M values that are used to end loops; also called trip values or trailer values.
.
8. Looping condition A. another term for the selection structure. indicates that a decision (based on some
condition) needs to be made, followed by an appropriate action derived from
that decision.
9. Sentinel values E. another term for control structures.
10. Logic structures L. the control structure used to repeatedly process one or more program
instructions; also called a loop.

End of Firm Up

Deepen: Your goal in section is to deepen your understanding of how programmers use Control Structures
to specify flow of control in programs.

LC4: Explain the three basic control ACTIVITY 3


structures and how they can be used to CODE THE WAY
control program flow during execution.
INSTRUCTIONS: Can you help the angry bird catch the naughty pig? Go and
visit this link: https://studio.code.org/hoc/1 (or use QR code). Solve the maze
puzzle by stacking or adding code blocks. Help the bird move and banish the bad
pig. Complete the activity by writing your code on the blank code blocks. Please
be sure to visit the link and play the game before answering the puzzle. Solve

Information and Communications Technology (ICT-G10) [Page 2 of 5]


LA SALETTE OF ROXAS COLLEGE, INC
Magsaysay St. Vira, Roxas, Isabela
S.Y 2021-2022
Puzzle 5 and 8 only.
Link to Code Blocks
https://studio.code.org/hoc/1

Control Structures constitute the basic blocks for decision making processes in computing. They  change the flow of
programs and enable us to construct complex sets of instructions out of simpler building blocks.

Process Questions:
1. How is repetition or loop used in programming?
2. How would you modify a flowchart that needs to displays one of two different results?

End of Deepen

Transfer: Your goal in this section is to apply what you have learned in this lesson.

LC4: Explain the three basic control ACTIVITY 4


structures and how they can be used to FLOWCHART LEVEL 2: SELECTION STRUCTURE
control program flow during execution.
INSTRUCTIONS:
Write an algorithm and draw a flowchart for an alternative selection structure that
displays one of two different messages, depending on the number of seminar
participants stored in an int variable named participants. Display the message
“Use the Kanton room” when the number of seminar participants is at equal or
greater than 75. When less than 75, display the message “Use the Harris room”.
Use a separate sheet of paper for this activity (Bond Paper or Yellow Pad)
REFERENCES:

 Parker, C. S., & Morley, D. (2015). Understanding computers: Today and tomorrow. Ft. Worth, TX: Dryden Press.
 Gaddis, T. (2021). Starting Out with Programming Logic and Design (4th Edition) by Tony Gaddis(1996–11-01) [E-book]. Pearson.
 Zak, D. (2015). An Introduction to Programming with C++ (8th ed.) [E-book]. Cengage Learning.
LEARNING ACTIVITY SHEET
Information and Communications Technology (ICT-G10)

NAME: _________________________________________________________________
GRADE/SECTION: _______________________________________________________
ACTIVITY 1: EXPLORE – GRAPHIC ORGANIZER

Information and Communications Technology (ICT-G10) [Page 3 of 5]


LA SALETTE OF ROXAS COLLEGE, INC
Magsaysay St. Vira, Roxas, Isabela
S.Y 2021-2022

PROGRAM CONTROL STRUCTURES

(Name of control structure) (Name of control structure) (Name of control structure)

(Description) (Description) (Description)

ACTIVITY 2 FIRM UP: IDENTIFICATION

1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

ACTIVITY 3 DEEPEN - CODE THE WAY

Can you help me catch the naughty pig? Complete the activity by Stacking a couple of “move” blocks. Write your
codes on the blank code blocks on the right.

CODE BLOCKS SCENARIO WORKSPACE

Information and Communications Technology (ICT-G10) [Page 4 of 5]


LA SALETTE OF ROXAS COLLEGE, INC
Magsaysay St. Vira, Roxas, Isabela
S.Y 2021-2022
(YOUR ANSWER ON THE BLOCKS)

WHEN RUN

SCENARIO #1
Link: https://studio.code.org/hoc/5

SCENARIO #2

WHEN RUN

Link: https://studio.code.org/hoc/8

Information and Communications Technology (ICT-G10) [Page 5 of 5]

You might also like