2. LESSON AIMS
• ALL: Understand the purpose of sub
routines.
• MOST: Will put into context a subroutine
within a flowchart.
• SOME: Use more than one sub routine in
their program.
3. PUTTING ON SHOES
START
GET SHOE CAN YOU SPOT ANY
INSERT RIGHT FOOT INSTRUCTIONS THAT
TAKE THE LACES ARE REPEATED?
TIE A KNOT
MAKE A BOW
GET OTHER SHOE
INSERT LEFT FOOT
TIE A KNOT
MAKE A BOW
STOP
• ALL: Understand the purpose of sub routines.
• MOST: Will put into context a subroutine within a flowchart.
• SOME: Use more than one sub routine in their program
4. PUTTING ON SHOES
START
The yellow information is
GET SHOE
what is repeated.
INSERT RIGHT FOOT
TAKE THE LACES
TIE A KNOT
MAKE A BOW
GET OTHER SHOE
INSERT LEFT FOOT
TAKE THE LACES
TIE A KNOT
MAKE A BOW
STOP
• ALL: Understand the purpose of sub routines.
• MOST: Will put into context a subroutine within a flowchart.
• SOME: Use more than one sub routine in their program
5. PUTTING ON SHOES
WE CAN MAKE THE
REPEATED INFORMATION
INTO A SUB ROUTINE
THAT COULD LOOK LIKE
THIS: SUB ROUTINE: TIE LACE
START
TAKE THE LACES
MAIN ROUTINE: TIE A KNOT
START MAKE A BOW
TAKE SHOE
SUB ROUTINE: TIE LACE
TAKE OTHER SHOE
SUB ROUTINE: TIE LACE
STOP
• ALL: Understand the purpose of sub routines.
• MOST: Will put into context a subroutine within a flowchart.
• SOME: Use more than one sub routine in their program
6. SUB ROUTINES
Can you think of a sub routine for GO TO BED!?
GO TO BED NOW!
SHOULDN’T I GET
BRUSH MY TEETH AND
GET CHANGED TOO?!
• ALL: Understand the purpose of sub routines.
• MOST: Will put into context a subroutine within a flowchart.
• SOME: Use more than one sub routine in their program
7. SUB ROUTINES
SUB ROUTINE: TEETH
SQUEEZE TOOTH PASTE ONTO BRUSH
BRUSH ALL TEETH
MAIN ROUTINE: RINSE MOUTH WITH WATER
START RINSE BRUSH
CLIMB THE STAIRS END
CLEEN TEETH
WASH FACE
. SUB ROUTINE: FACE
. FILL SINK
, WET FLANNEL
STOP WASH FACE WITH FLANNEL
USE SOAP
WASH FACE AGAIN
DRY FACE
EMPTY SINK
END
• ALL: Understand the purpose of sub routines.
• MOST: Will put into context a subroutine within a flowchart.
• SOME: Use more than one sub routine in their program
8. PLENARY
Think of an every day event that includes a sub routine;
think back to the start of the lesson if needed.
Write out the instructions for this.
How can you check that the information is going to work
in your head?
How can you tell if your flow chart is efficient?
• ALL: Understand the purpose of sub routines.
• MOST: Will put into context a subroutine within a flowchart.
• SOME: Use more than one sub routine in their program
Notes de l'éditeur
This should be a recap on children’s previous knowledge.