Introduction to Programming
Variables, Data Types, Pseudocode,
Conditionals, and Loops
Conditional Statements and
Decision-Making
• Conditional statements allow a program to
make decisions based on conditions.
• They use logic such as IF, ELSE, and ELSE IF to
control program flow.
• Useful in making real-life responsive programs
like flood alerts or login systems.
Learning Competencies -
Conditionals
• Explain the purpose of conditional statements.
• Write pseudocode using IF, ELSE, and ELSE IF.
• Apply decision-making logic in solving real-life
problems.
Real-Life Connections -
Conditionals
• IF waterLevel > threshold THEN activate alarm.
• IF userInput is correct THEN allow login ELSE
show error.
• Promotes critical judgment, responsibility, and
adaptability.
Loops and Repetition
• Loops are used to repeat a block of code
multiple times.
• Common types include FOR and WHILE loops.
• Helps make code efficient and avoid
repetition.
Learning Competencies - Loops
• Understand the concept of repetition in
programming.
• Differentiate between FOR and WHILE loops.
• Write pseudocode that uses loops for
repetitive tasks.
Real-Life Applications - Loops
• Count from 1 to 10 using a loop.
• Monitor sensor data continuously using a
loop.
• Reflects values of consistency, perseverance,
and responsibility.