Q3 SHS Ict 11 M2-3
Q3 SHS Ict 11 M2-3
Region V
Division of City Schools
Naga City
DON LEON Q. MERCADO HIGH SCHOOL
PROGRAMMING
JAVA
GRADE 11
Quarter 3 Week 2 Module 2
Learning Competency:
APPLYING PROGRAMMING SKILLS IN A SECOND LANGUAGE
TLE_ICTCP9-12PS-IIA-B-2
LESSON 2
INTRODUCTION TO
PROGRAMMING
Before starting the module, I want you to set aside other tasks that will disturb you while
enjoying the lessons. Read the simple instructions below to successfully enjoy the
objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page of this module
and follow the given instructions for each of the given learning outcome/s.
2. As you read, you can also do the hands-on to check if you were able to follow the
basic programming procedure.
3. Demonstrate what you have learned by doing what the Activity required you to do so.
4. Analyze conceptually the posttest and apply what you have learned.
5. Enjoy studying!
PARTS OF TH MODULE
Before starting the module, I want you to set aside other tasks that will disturb you while
enjoying the lessons. Read the simple instructions below to successfully enjoy the
objectives of this kit. Have fun!
1. Follow carefully all the contents and instructions indicated in every page of this module
and follow the given instructions for each of the given learning outcome/s.
2. As you read, you can also do the hands-on to check if you were able to follow the
basic programming procedure.
3. Demonstrate what you have learned by doing what the Activity required you to do so.
4. Analyze conceptually the posttest and apply what you have learned.
5. Enjoy studying!
• Expectations - These are what you will be able to know after completing the lessons in
the module.
• Pre-test - This will measure your prior knowledge and the concepts to be mastered
throughout the lesson.
• Technical terms - A word that has a specific meaning within a specific field of
expertise.
• Looking Back to your Lesson - This section will measure what learnings and skills did
you understand from the previous lesson.
• Brief Introduction- This section will give you an overview of the lesson.
• Activities - This is a set of activities you will perform with a partner.
• Remember - This section summarizes the concepts and applications of the lessons.
• Check your Understanding- It will verify how you learned from the lesson.
• Post-test - This will measure how much you have learned from the entire module.
1.
APPLYING PROGRAMMING SKILLS IN A SECOND
TLE_ICTCP9-12PS-IIA-B-2
, LESSON 2
LO2. CODING USING STANDARD ALGORITHMS:
PSEUDOCODES
EXPECTATIONS:
TECHNICAL TERMS:
Syntax - is the set of rules that defines the combinations of symbols that are
considered to be a correctly structured document or fragment in that language.
2.
LOOKING BACK TO YOUR LESSONS
To recap, algorithm is a step-by-step procedure of solving a problem. Base from
the previous lesson, give your understanding of the Steps in Writing an Algorithm in
Programming. The steps in writing an algorithm are the following:
3.
PRE-TEST
Multiple Choice: Choose the letter of the correct answer that referred to the
statements below.
4.
BRIEF INTRODUCTION
WHAT IS PSEUDOCODE
A pseudocode is a description of an algorithm or a computer program using
natural language. Because the aim of pseudocode is to make reading program
easier, some codes that are not essential for human understanding are omitted.
This language is commonly used in planning out structure of a program or a
system, like the blueprint for creating a house or a building.
5.
A pseudocode makes creating programs easier. Programs can be complex
and long; preparation is the key. It is challenging to find a mistake without
understanding the complete flow of a program. That is where pseudocode becomes
more appealing.
To use pseudocode, all you do is write what you want your program to say
in English. Pseudocode allows you to translate your statements into any language
because there are no special commands and it is not standardized. Writing out
programs before you code can enable you to better organize and see where you
may have left out needed parts in your programs. All you have to do is write it out
in your own words in short statements. Let's look at some examples.
EXAMPLES OF PSEUDOCODE
1. Create a program to add 2 numbers together and then display the result.
• Start Program
• Enter two numbers, A, B
• Add the numbers together
• Print Sum
• End Program
2. Compute the area of a rectangle.
• Enter length, l
• Enter width, w
• Compute Perimeter = 2*l + 2*w
• Display Perimeter of a rectangle
6.
7.
8.
9.
10.
11.
12.
Prepared by:
HAZEL B. FRANCE
13.