Task 5 Objectives:

Today you will learn:

· How we can make control systems more efficient by using subroutines.

 

I am looking for you to:

· Explain what a subroutine does

· Recognise where a subroutine could be used

· Create a subroutine

·                  Use a subroutine to carry out repeated instructions making your flowchart more efficient.

 

 

Teacher feedback wiki

Instructions     

Help and Resources 

Examples

Time

 

Welcome

 

 

5.1 Watch the slideshow of a flashing light.

View Flashing Light

 

5

5.2 Discuss Teacher resource 7b. This shows how a program can be broken down into subroutines to make it more efficient.

View Cleaning Shoes

 

 10

5.3 Discuss the Lighthouse Planner and complete the tasks.

Save Lighthouse Planner

 Save this file to My Documents and open from within FlowOL

 25

Extension Return to the Pelican program you wrote in an earlier lesson. Use a sub routine to make the green pedestrian light flash five times before the red pedestrian light comes on.

 

 

 

Plenary

 View Plenary

 

 10

 

Teacher info: KS3 Strategy lesson plan

Keywords:

From Year 6:      procedure, refine, switch

From Year 7:      improve, subtask, system