SlideShare a Scribd company logo
1 of 31
COMPUTER
PRO GRAM M IN G
10
PASS THE BALL
QUESTION #1
-It describe the computer’s
processing step-by-step
ANSWER
PROCEDURAL
LANGUAGES
QUESTION #2
-The original program in a
high level language
ANSWER
SOURCE CODE
QUESTION #3
-I
t describe the computer’s
processing step-by-step
contains somehuman-
readable commands such as
mov, add, sub, etc.
ANSWER
ASSEMBLY LANGUAGE
QUESTION #4
-I
t describe the computer’s
processing step-by-step
ANSWER
NATURAL PROGRAMMI
NG
LANGUAGES
QUESTION #5
-The 1st Level generation
language
ANSWER
MACHI
NE LANGUAGES
SPOT THE DIFFERENCE
First prepare the ingredients,
then clean the fish and remove
the innards. Then air dried for
few hours before boiling in
water and salt. When cooked,
arranged in large wooden racks
and smoked using wood
shavings.
CAUTI
ON:Make sure
you keep the water
bottle cap tightly sealed
when not taking a drink.
Spilling water on any
recorded minutes could
prove disastrous.
SEQUENCE OF
INSTRUCTION
1.Describe sequence of instruction.
2. Enumerate or translate the
instructions or steps to achieve the right
output in each situation.
3. Value the importance of Sequence of
instruction
OBJECTIVES
is the order in which the
instructions in a program
are carried out.
SEQUENCE OF INSTRUCTION
First prepare the ingredients, then clean the
fish and remove the innards. Then air dried
for few hours before boiling in water and
salt. When cooked, arranged in large wooden
racks and smoked using wood shavings.
LOOK AT
THE
EXAMPLES
1.Prepare the ingredients.
2.Clean the fish and remove the
innards. 3.Air dried for few hours
4.Boil in water and salt.
5.When cooked, arranged in large wooden
racks and smoked using wood shavings.
LOOK AT THE
EXAMPLES
1The above image shows the flow chart
which contains the instructions how to
add two numbers and display it on screen.
The instructions are:
1.Declare variables num1, num2 and sum
2.Read num1 and num2
3.sum =num1 +num2
4.Display sum
THREE WAYS YOU CAN CONTROL
THE ORDER OF THESE LINES TO BE
EXECUTED BY THE COMPUTER
1.Sequencing
2.Selection
3.Iteration
SEQUENCING
1.This means that the computer
will run your code in order, one
line at a time from the top to the
bottom of your program. I
t will
start at line 1, then execute line 2
then line 3 and so on till it reaches
the last line of your program.
SEQUENCING
The instructions in the flowchart
to compute the area of a circle are
1.I
nput Radius
2.Calculate the area by using the
formula
Area =3.14 *radius *
radius
3.Display Area
The list of instructions is in
sequential form.
SELECTION
Sometimes you only want some lines
of code to be run only if a condition is
met, otherwise you want the
computer to ignore these lines and
jump over them. This is achieved using
I
F statements. e.g. I
f a condition is met
then some lines are executed and
other lines are not executed.
The instructions in the flowchart to compute display
the bigger number between two numbers are:
1.Accepts A and B
2
. I
f A >B
3. True, Display A
4. False, Display B
Here, if the condition is true, the instruction to
display A is executed and there is no need to execute
the display B instruction.
This is an example of Selection or decision type of
instructions
SELECTION
Sometimes you want the computer to
execute the same lines of code several
times. This is done using a loop. There
are three types of loops:For loops,
while loops and repeat until loops.
That’s handy as it enables you not to
have to copy the same lines of code
many times.
ITERATIO N
The instructions in the flowchart to display “Hello
World” 10 times are:
1. I
nitialize Count to 0
2.Print “Hello World”
3.I
ncrement count by 1
4.I
s count <10
5
.I
f yes or true, go to Print “Hello World”
6
. I
f no, end the program
The program will only end if count reaches 10 which
will make the condition false, 10 <10, because it is
already equal.
ITERATION
AC TIVITY 1
: GIVIN G
DIREC TIO N S
Describe two ways if someone
has asked you how to go to the
nearest church.Make your house
as the starting point.
RUBRIC
4 3 2 1 SCORE
Solution A completed steps
or instructions and
has met what is
asked in the
situation.
A completed steps
or instructions and
has almost met what
is asked in the
situation.
A completed steps
or instructions but
has not met what is
asked in the
situation.
Incomplete steps or
instructions and has
not met what is
asked in the
situation.
WRITING INSTRUCTIONS
Enumerate the instructions or steps to achieve the right output in each
situation. You can write the instructions in a plain language description
or not in formal programming language statements.
1.What are the instructions or steps to compute the average of 5
numbers?
2.What are the instructions or steps to display if the inputted number is
positive or negative?
3.What are the instructions or steps of a program that will only allow
to login the username “administrator” if the password is correct?
RUBRIC
4 3 2 1 SCORE
Solution A completed steps
or instructions and
has met what is
asked in the
situation.
A completed steps
or instructions and
has almost met what
is asked in the
situation.
A completed steps
or instructions but
has not met what is
asked in the
situation.
Incomplete steps or
instructions and has
not met what is
asked in the
situation.
.
THANK YOU!

More Related Content

Similar to SEQUENCE INSTRUCTION COM PROGRAMMING;.pptx

C language algorithms
C language algorithmsC language algorithms
C language algorithmscprogram
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Logika dan Algoritma pemrograman
Logika dan Algoritma pemrogramanLogika dan Algoritma pemrograman
Logika dan Algoritma pemrogramanArif Huda
 
Algorithm types performance steps working
Algorithm types performance steps workingAlgorithm types performance steps working
Algorithm types performance steps workingSaurabh846965
 
Programming 1.pptx
Programming 1.pptxProgramming 1.pptx
Programming 1.pptxardrenful
 
Understanding Simple Program Logic
Understanding Simple Program LogicUnderstanding Simple Program Logic
Understanding Simple Program LogicAr Kyu Dee
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)TejaswiB4
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
 
Small Basic Calculator Apps lesson
Small Basic Calculator Apps lessonSmall Basic Calculator Apps lesson
Small Basic Calculator Apps lessonEdujetage
 
Unit 3 Foc
Unit  3 FocUnit  3 Foc
Unit 3 FocJAYA
 
CSC1100 - Chapter12 - Flow Charts
CSC1100 - Chapter12 - Flow ChartsCSC1100 - Chapter12 - Flow Charts
CSC1100 - Chapter12 - Flow ChartsYhal Htet Aung
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechzShahbaz Ahmad
 
Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Shipra Swati
 

Similar to SEQUENCE INSTRUCTION COM PROGRAMMING;.pptx (20)

C language algorithms
C language algorithmsC language algorithms
C language algorithms
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Logika dan Algoritma pemrograman
Logika dan Algoritma pemrogramanLogika dan Algoritma pemrograman
Logika dan Algoritma pemrograman
 
Algorithm types performance steps working
Algorithm types performance steps workingAlgorithm types performance steps working
Algorithm types performance steps working
 
Computer programs
Computer programsComputer programs
Computer programs
 
Programming 1.pptx
Programming 1.pptxProgramming 1.pptx
Programming 1.pptx
 
Understanding Simple Program Logic
Understanding Simple Program LogicUnderstanding Simple Program Logic
Understanding Simple Program Logic
 
Chapter 2(1)
Chapter 2(1)Chapter 2(1)
Chapter 2(1)
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
 
Problem solving methodology
Problem solving methodologyProblem solving methodology
Problem solving methodology
 
4. algorithm
4. algorithm4. algorithm
4. algorithm
 
Small Basic Calculator Apps lesson
Small Basic Calculator Apps lessonSmall Basic Calculator Apps lesson
Small Basic Calculator Apps lesson
 
our c prog work
our c prog workour c prog work
our c prog work
 
Unit 3 Foc
Unit  3 FocUnit  3 Foc
Unit 3 Foc
 
CSC1100 - Chapter12 - Flow Charts
CSC1100 - Chapter12 - Flow ChartsCSC1100 - Chapter12 - Flow Charts
CSC1100 - Chapter12 - Flow Charts
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 
Algorithms - Introduction to computer programming
Algorithms - Introduction to computer programmingAlgorithms - Introduction to computer programming
Algorithms - Introduction to computer programming
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
 
Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6Fundamental of Information Technology - UNIT 6
Fundamental of Information Technology - UNIT 6
 
PsudoCode.pptx
PsudoCode.pptxPsudoCode.pptx
PsudoCode.pptx
 

Recently uploaded

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfElizabeth Walsh
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxRugvedSathawane
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfKartik Tiwari
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfNirmal Dwivedi
 

Recently uploaded (20)

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdfDiuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
Diuretic, Hypoglycemic and Limit test of Heavy metals and Arsenic.-1.pdf
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 

SEQUENCE INSTRUCTION COM PROGRAMMING;.pptx

  • 3. QUESTION #1 -It describe the computer’s processing step-by-step
  • 5. QUESTION #2 -The original program in a high level language
  • 7. QUESTION #3 -I t describe the computer’s processing step-by-step contains somehuman- readable commands such as mov, add, sub, etc.
  • 9. QUESTION #4 -I t describe the computer’s processing step-by-step
  • 11. QUESTION #5 -The 1st Level generation language
  • 13. SPOT THE DIFFERENCE First prepare the ingredients, then clean the fish and remove the innards. Then air dried for few hours before boiling in water and salt. When cooked, arranged in large wooden racks and smoked using wood shavings. CAUTI ON:Make sure you keep the water bottle cap tightly sealed when not taking a drink. Spilling water on any recorded minutes could prove disastrous.
  • 15. 1.Describe sequence of instruction. 2. Enumerate or translate the instructions or steps to achieve the right output in each situation. 3. Value the importance of Sequence of instruction OBJECTIVES
  • 16. is the order in which the instructions in a program are carried out. SEQUENCE OF INSTRUCTION
  • 17. First prepare the ingredients, then clean the fish and remove the innards. Then air dried for few hours before boiling in water and salt. When cooked, arranged in large wooden racks and smoked using wood shavings. LOOK AT THE EXAMPLES 1.Prepare the ingredients. 2.Clean the fish and remove the innards. 3.Air dried for few hours 4.Boil in water and salt. 5.When cooked, arranged in large wooden racks and smoked using wood shavings.
  • 19. 1The above image shows the flow chart which contains the instructions how to add two numbers and display it on screen. The instructions are: 1.Declare variables num1, num2 and sum 2.Read num1 and num2 3.sum =num1 +num2 4.Display sum
  • 20. THREE WAYS YOU CAN CONTROL THE ORDER OF THESE LINES TO BE EXECUTED BY THE COMPUTER 1.Sequencing 2.Selection 3.Iteration
  • 21. SEQUENCING 1.This means that the computer will run your code in order, one line at a time from the top to the bottom of your program. I t will start at line 1, then execute line 2 then line 3 and so on till it reaches the last line of your program.
  • 22. SEQUENCING The instructions in the flowchart to compute the area of a circle are 1.I nput Radius 2.Calculate the area by using the formula Area =3.14 *radius * radius 3.Display Area The list of instructions is in sequential form.
  • 23. SELECTION Sometimes you only want some lines of code to be run only if a condition is met, otherwise you want the computer to ignore these lines and jump over them. This is achieved using I F statements. e.g. I f a condition is met then some lines are executed and other lines are not executed.
  • 24. The instructions in the flowchart to compute display the bigger number between two numbers are: 1.Accepts A and B 2 . I f A >B 3. True, Display A 4. False, Display B Here, if the condition is true, the instruction to display A is executed and there is no need to execute the display B instruction. This is an example of Selection or decision type of instructions SELECTION
  • 25. Sometimes you want the computer to execute the same lines of code several times. This is done using a loop. There are three types of loops:For loops, while loops and repeat until loops. That’s handy as it enables you not to have to copy the same lines of code many times. ITERATIO N
  • 26. The instructions in the flowchart to display “Hello World” 10 times are: 1. I nitialize Count to 0 2.Print “Hello World” 3.I ncrement count by 1 4.I s count <10 5 .I f yes or true, go to Print “Hello World” 6 . I f no, end the program The program will only end if count reaches 10 which will make the condition false, 10 <10, because it is already equal. ITERATION
  • 27. AC TIVITY 1 : GIVIN G DIREC TIO N S Describe two ways if someone has asked you how to go to the nearest church.Make your house as the starting point.
  • 28. RUBRIC 4 3 2 1 SCORE Solution A completed steps or instructions and has met what is asked in the situation. A completed steps or instructions and has almost met what is asked in the situation. A completed steps or instructions but has not met what is asked in the situation. Incomplete steps or instructions and has not met what is asked in the situation.
  • 29. WRITING INSTRUCTIONS Enumerate the instructions or steps to achieve the right output in each situation. You can write the instructions in a plain language description or not in formal programming language statements. 1.What are the instructions or steps to compute the average of 5 numbers? 2.What are the instructions or steps to display if the inputted number is positive or negative? 3.What are the instructions or steps of a program that will only allow to login the username “administrator” if the password is correct?
  • 30. RUBRIC 4 3 2 1 SCORE Solution A completed steps or instructions and has met what is asked in the situation. A completed steps or instructions and has almost met what is asked in the situation. A completed steps or instructions but has not met what is asked in the situation. Incomplete steps or instructions and has not met what is asked in the situation.

Editor's Notes

  1. Ask them the difference. Difference sana is an una naka sequence. Then ask the possible the topic.
  2. Notice the arrows of the flowchart, it is in one direction which is going down. This is an example of sequential instructions.
  3. When you write lines of codes or instructions, there are three ways you can control the order of these lines to be executed by the computer: