Control technolgy lesson 5

426 views

Published on

  • Be the first to comment

  • Be the first to like this

Control technolgy lesson 5

  1. 1. CONTROL TECHNOLOGY Lesson Five: Sub Routines
  2. 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. 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. 4. PUTTING ON SHOESSTART The yellow information isGET SHOE what is repeated.INSERT RIGHT FOOTTAKE THE LACESTIE A KNOTMAKE A BOWGET OTHER SHOEINSERT LEFT FOOTTAKE THE LACESTIE A KNOTMAKE A BOWSTOP• 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. 5. PUTTING ON SHOESWE CAN MAKE THEREPEATED INFORMATIONINTO A SUB ROUTINETHAT COULD LOOK LIKETHIS: 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. 6. SUB ROUTINESCan 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. 7. SUB ROUTINES SUB ROUTINE: TEETH SQUEEZE TOOTH PASTE ONTO BRUSH BRUSH ALL TEETHMAIN ROUTINE: RINSE MOUTH WITH WATERSTART RINSE BRUSHCLIMB THE STAIRS ENDCLEEN TEETHWASH FACE. SUB ROUTINE: FACE. FILL SINK, WET FLANNELSTOP 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. 8. PLENARYThink 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 workin 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

×