SlideShare une entreprise Scribd logo
1  sur  8
CONTROL TECHNOLOGY
   Lesson Five: Sub Routines
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.
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
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
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
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
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
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

Contenu connexe

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Control technolgy lesson 5

  • 1. CONTROL TECHNOLOGY Lesson Five: Sub Routines
  • 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

  1. This should be a recap on children’s previous knowledge.