SlideShare a Scribd company logo
4
Most read
7
Most read
8
Most read
ALGORITHMS & PROGRAMMING
FOR KS3
LEARNING OBJECTIVES
ALGORITHMS
• What is an algorithm?
• Designing an algorithm
• Why use flowcharts or
pseudocode?
PROGRAMMING BASICS
• Program Structure
• Sequencing
• Selection
• Iteration
• Variables
STARTER
SIMON SAYS
WHAT IS AN ALGORITHM?
• An algorithm is a set of step-by-step
instructions to complete a task or solve a
problem.
• Algorithms are NOT computer programs! They help us plan and design the
computer program code that will do the task.
• Flow charts or pseudocode are useful for
developing and visualising algorithms.
REAL-WORLD ALGORITHMS
TASK ALGORITHM EXAMPLE
Building flat-pack
furniture
Affix part A to part B using the
supplied Allan key.
Making a dress Cut along the grain of the fabric.
Use of Television Press ‘Guide’ to access program
listings.
Assembly
Instructions
Sewing
Pattern
TV
Operating
Manual
SIMPLE ALGORITHM
GETTING WASHED & DRESSED STEP 1 – GET UP
1. Get out of bed.
2. Eat breakfast.
STEP 2 – WASH
1. Go to bathroom.
2. Wash face.
STEP 3 - GET DRESSED
1. Remove pyjamas.
2. Put clothes on.
1. What are the INPUTS required to
achieve the OUTPUTS required?
2. What STEPS are needed and in
which SEQUENCE?
3. Are any DECISIONS needed?
4. Is there any REPETITION in the
process?
DO: Write an algorithm for brushing your teeth!
DESIGNING
ALGORITHMS
• Computers need exact instructions
on how and when to perform a task.
• We create a program that performs
exact instructions in the algorithm.
• An algorithm written using a
flowchart or pseudocode can help
us to write effective computer
programming code.
• They help to structure and
SEQUENCE (order) the instructions.
FLOWCHART & PSEUDOCODE EXAMPLE
WHAT IS PROGRAMMING?
A Program is CODE written in a
LANGUAGE that computers
understand.
• SEQUENCE is important so that a computer does
the task in the right order.
• SELECTION is the decision to make or question to
answer. E.g. IF, THEN, ELSE. The path through a
program changes depending on the answers.
• ITERATION is looping through (repeating) a path
until we reach our goal using FOR and WHILE
statements. Iterative programming reduces the
steps required by a program.
Code contains
STATEMENTS
(single instructions)
that tell the computer what to do.
EXAMPLE
Declaring variables to store our
information for use later on.
DO: Identify the variables for the ‘brushing your teeth.’
Using iteration to loop through the steps
whilst the ‘awake’ condition remains true.
Using conditional selection to determine
the path the program will take.
REFLECTION (PLENARY)
WHAT DID YOU LEARN?
What are your key takeaways from the lesson today?
CONFIDENCE LEVEL?
1. Understood ALL of it, very confident.
2. Understood MOST of it, fairly confident.
3. Understood SOME of it and need some support. FURTHER LEARNING…
NEXT LESSON: Datatypes, Variables, Constants and Operators.

More Related Content

PPTX
JAVA Platform Independence
PPTX
Human computer interaction
PPTX
Unix operating system
PPTX
Motherboard
PPTX
PPTX
Programming Paradigm & Languages
PPTX
Control panel
JAVA Platform Independence
Human computer interaction
Unix operating system
Motherboard
Programming Paradigm & Languages
Control panel

What's hot (20)

PPT
Hci In The Software Process
PPTX
Hardware & software
PPTX
GIMP Tutorial.pptx
PPT
Introduction to computer programming
PPTX
CPUs, Form Factor And Sockets
PPTX
What is a Keyboard
PPT
software development and programming languages
PPTX
Intel processor family
PPSX
Problem solving and design
ODP
Analog and digital
PPTX
Computer organization
PPT
Computer memory
PPTX
Computer Programming
PPTX
Install operating system
ODP
Application Software
PPT
Programming
PPTX
Operating system
PPTX
Presentation on - Processors
PPTX
Intro to Bits, Bytes, and Storage
PPTX
SOC - system on a chip
Hci In The Software Process
Hardware & software
GIMP Tutorial.pptx
Introduction to computer programming
CPUs, Form Factor And Sockets
What is a Keyboard
software development and programming languages
Intel processor family
Problem solving and design
Analog and digital
Computer organization
Computer memory
Computer Programming
Install operating system
Application Software
Programming
Operating system
Presentation on - Processors
Intro to Bits, Bytes, and Storage
SOC - system on a chip
Ad

Similar to Algorithms and Programming (20)

PDF
Unit 1-problem solving with algorithm
PPT
Fundamentals of Programming Chapter 3
PPT
3 algorithm-and-flowchart
PPT
programming language(C++) chapter-one contd.ppt
PDF
Algorithm defination, design & Implementation
PPTX
Lesson 1 of c programming algorithms and flowcharts.pptx
DOCX
programming concept
PDF
lect 1-ds algo(final)_2.pdf
PPTX
10 lesson8
PDF
Introduction to programming : flowchart, algorithm
PPTX
Data Structures_Introduction to algorithms.pptx
PDF
Introduction to Problem Solving Techniques- Python
PPTX
Programming C ppt for learning foundations
PDF
Algorithmic problem sloving
PPTX
02 Algorithms and flowcharts - computers.pptx
PPSX
Algorithm and flowchart
PPTX
Lec-ProblemSolving.pptx
PPT
Proble, Solving & Automation
PPT
UNIT- 3-FOC.ppt
PPTX
PCCF UNIT 1.pptx
Unit 1-problem solving with algorithm
Fundamentals of Programming Chapter 3
3 algorithm-and-flowchart
programming language(C++) chapter-one contd.ppt
Algorithm defination, design & Implementation
Lesson 1 of c programming algorithms and flowcharts.pptx
programming concept
lect 1-ds algo(final)_2.pdf
10 lesson8
Introduction to programming : flowchart, algorithm
Data Structures_Introduction to algorithms.pptx
Introduction to Problem Solving Techniques- Python
Programming C ppt for learning foundations
Algorithmic problem sloving
02 Algorithms and flowcharts - computers.pptx
Algorithm and flowchart
Lec-ProblemSolving.pptx
Proble, Solving & Automation
UNIT- 3-FOC.ppt
PCCF UNIT 1.pptx
Ad

Recently uploaded (20)

PDF
English Language Teaching from Post-.pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Module 3: Health Systems Tutorial Slides S2 2025
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
PPTX
Introduction and Scope of Bichemistry.pptx
PDF
From loneliness to social connection charting
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Open folder Downloads.pdf yes yes ges yes
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
English Language Teaching from Post-.pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Module 3: Health Systems Tutorial Slides S2 2025
Open Quiz Monsoon Mind Game Prelims.pptx
Introduction and Scope of Bichemistry.pptx
From loneliness to social connection charting
Renaissance Architecture: A Journey from Faith to Humanism
Week 4 Term 3 Study Techniques revisited.pptx
UPPER GASTRO INTESTINAL DISORDER.docx
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
O7-L3 Supply Chain Operations - ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Open folder Downloads.pdf yes yes ges yes
Open Quiz Monsoon Mind Game Final Set.pptx
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
Anesthesia in Laparoscopic Surgery in India
STATICS OF THE RIGID BODIES Hibbelers.pdf

Algorithms and Programming

  • 2. LEARNING OBJECTIVES ALGORITHMS • What is an algorithm? • Designing an algorithm • Why use flowcharts or pseudocode? PROGRAMMING BASICS • Program Structure • Sequencing • Selection • Iteration • Variables
  • 4. WHAT IS AN ALGORITHM? • An algorithm is a set of step-by-step instructions to complete a task or solve a problem. • Algorithms are NOT computer programs! They help us plan and design the computer program code that will do the task. • Flow charts or pseudocode are useful for developing and visualising algorithms.
  • 5. REAL-WORLD ALGORITHMS TASK ALGORITHM EXAMPLE Building flat-pack furniture Affix part A to part B using the supplied Allan key. Making a dress Cut along the grain of the fabric. Use of Television Press ‘Guide’ to access program listings. Assembly Instructions Sewing Pattern TV Operating Manual
  • 6. SIMPLE ALGORITHM GETTING WASHED & DRESSED STEP 1 – GET UP 1. Get out of bed. 2. Eat breakfast. STEP 2 – WASH 1. Go to bathroom. 2. Wash face. STEP 3 - GET DRESSED 1. Remove pyjamas. 2. Put clothes on. 1. What are the INPUTS required to achieve the OUTPUTS required? 2. What STEPS are needed and in which SEQUENCE? 3. Are any DECISIONS needed? 4. Is there any REPETITION in the process? DO: Write an algorithm for brushing your teeth!
  • 7. DESIGNING ALGORITHMS • Computers need exact instructions on how and when to perform a task. • We create a program that performs exact instructions in the algorithm. • An algorithm written using a flowchart or pseudocode can help us to write effective computer programming code. • They help to structure and SEQUENCE (order) the instructions. FLOWCHART & PSEUDOCODE EXAMPLE
  • 8. WHAT IS PROGRAMMING? A Program is CODE written in a LANGUAGE that computers understand. • SEQUENCE is important so that a computer does the task in the right order. • SELECTION is the decision to make or question to answer. E.g. IF, THEN, ELSE. The path through a program changes depending on the answers. • ITERATION is looping through (repeating) a path until we reach our goal using FOR and WHILE statements. Iterative programming reduces the steps required by a program. Code contains STATEMENTS (single instructions) that tell the computer what to do.
  • 9. EXAMPLE Declaring variables to store our information for use later on. DO: Identify the variables for the ‘brushing your teeth.’ Using iteration to loop through the steps whilst the ‘awake’ condition remains true. Using conditional selection to determine the path the program will take.
  • 10. REFLECTION (PLENARY) WHAT DID YOU LEARN? What are your key takeaways from the lesson today? CONFIDENCE LEVEL? 1. Understood ALL of it, very confident. 2. Understood MOST of it, fairly confident. 3. Understood SOME of it and need some support. FURTHER LEARNING… NEXT LESSON: Datatypes, Variables, Constants and Operators.

Editor's Notes

  • #5: Step-by-step: Like giving directions to a friend. How do we write an algorithm? For a comic, we might draw pictures in a story board. We use flow charts and pseudocode to visualise our algorithm easily. Pseudo means ‘not the real thing’ so pseudocode is the instructions in our own words. Let’s be clear: Algorithms are NOT computer programs!
  • #7: When we design an algorithm, it forces us to think about the overall goal; the individual steps needed to accomplish that task. We consider the inputs required to achieve the output needed. The algorithm design process can also help us to think about different ways of solving problems. END OF SLIDE: Now write your own simple algorithm for brushing their teeth.
  • #8: Computers need exact Instructions! Take away the “Is water boiled” question – our while loop (ITERATION) – we could end up with a cold cup of tea! Take away the “put teabag in cup” statement and you have just hot water. Equally, the order (SEQUENCE) is important… is it milk first or last? One to discuss outside of the lesson!
  • #9: THIS IS WHERE PROGRAMMING COMES IN! SELECTION is important to manage the various paths through a program depending on decision points. Without selection, there would only be 1 path and the program would be ineffective and unrealistic. ITERATION is efficient and requires less processing as it managed the repetitive tasks. It keeps the algorithm simple.
  • #11: We learned about algorithms, what can helps us to design them, Program structure and basic programming concepts. At the beginning of the next lesson (before moving on), I would ask the students what they can recall from the last lesson. Perhaps ask different students to come out “Be the teacher” and give 1 minute mini teach on the different areas.