SHS Ict 11 M6-7
SHS Ict 11 M6-7
Region V
Division of City Schools
Naga City
DON LEON Q. MERCADO HIGH SCHOOL
PROGRAMMING
JAVA
GRADE 11
Quarter 3 Week 6-7 Module 6
Learning Competency:
APPLYING PROGRAMMING SKILLS IN A SECOND LANGUAGE
TLE_ICTCP9-12PS_Ic-j-1
LESSON
INTRODUCTION TO
PROGRAMMING
SENIOR HIGH SCHOOL
GRADE 11
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.
INTRODUCTION TO PROGRAMMING
, LESSON 1
APLY BASIC LANGUAGE SYNTAX AND LAYOUT: Use the appropriate language
Syntax for sequential constructs
EXPECTATIONS:
use standard sequential access algorithms for text and binary files; and
code standard sequential access algorithms for text and binary files.
TECHNICAL TERMS:
Control Structure – used to direct the program’s flow for it is involve in every decision
that an application must do.
Sequential Structure– the easiest type control structure because it does not involve
decision-making; the program’s flow depends on the step-by-step execution of it, first
line first, then proceed with the second is the mechanism of this structure.
3
PRE-TEST
BRIEF INTRODUCTION
Control structure is used to direct the program’s flow for it is involve in every
decision that an application must do.
This logical structure pertains to a step-by step execution of a program. Also
known as straight-line structure, this type of structure follows what is next in line for
the flow of the program. For example, block 1 is processed first, and then block 2, and
so on. Check the flowchart below so we can better understand its sequential structure:
Sequence describes the specific order in which commands are written and
executed. The computer does not read all of the steps and then determine the correct
order. The programmer has to determine the correct order. The computer will perform
the instructions one at a time, in the order in which they are written
nd
Each algorithm has the same 5 steps but in different order. In the 2 algorithm, the
teeth would brush without toothpaste, the toothpaste would be put on after brushing,
then waste as it rinsed away. A human might read all of the steps and then determine
the correct order to complete them, but a computer will not. It will complete the steps in
the order they are given. For this reason, the sequence of the steps is very important.
A sequence construct tells the CPU (processor) which statement is to be executed
next. By default, in popular languages, this is the statement following the current
statement or first statement in the program. In other words, this is the very basic
construct of writing a program. You just write line by line what you have in mind (of-
course related to programming).
Apart from the default sequence, some languages support "goto" statement to skip
certain statements and jump to a completely different set of statements; however, this is
very much discouraged. Eager readers may look it up in the web, given they have
understood the other programming constructs well.
A control structure which determines the order in which instructions in an algorithm
are performed. The sequence control structure consists of processes which are carried
out in a sequential manner:
POST TEST
LESSON 1 - Let’s do the checking
CHECK YOUR UNDERSTANDING
REFERENCES:
PREPARED BY:
HAZEL B. FRANCE
Teacher