slide 1 controlling sequences of events traffic lights event table

9
Slide 1 Controlling Sequences of Events Traffic lights Event table

Upload: lesley-houston

Post on 18-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 1

Controlling Sequences of Events

Traffic lights

Event table

Page 3: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 3

Advantages of Automatic System

It is always there, day and night.

It doesn’t need anyone to oversee it.

It keeps watch all the time and stays alert. School crossing patrol officers might accidentally be late for work and are only there at certain times of day.

A human might be distracted or lose attention momentarily.

Page 4: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 4

Advantages of Human System

A person can make quick decisions based on what they hear or see.

A person would not allow children to cross before the traffic has stopped.

A pelican crossing can’t stop cars from going through on red.

Page 5: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 5

Objectives

an ordered set of instructions is called a sequence of instructions.

In this lesson, you will learn how to break a task down into smaller parts how to use a flow chart to represent instructions for carrying out the task.

Page 6: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 6

Flowchart symbols

Start or stop (sausage for start)

Subroutine

Decision(diamond for decision)

Input or output

Process(packet for process)

Page 7: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 7

Making coffeeFlow chart Start

Put coffee in cup

Milk?

Drink coffee

Stop

Add milk

Boil water

Add water

Yes

NoTeacher:Explain that instructions for computers can be summarised in flowcharts, using special symbols and language. Show and talk through slide 2, a simplified flowchart for making a cup of coffee, drawing attention to the symbols for ‘Start’ and ‘Stop’, decision and process boxes, and explaining their purpose. Stress that a computer expects a decision box to have the answer ‘yes’ or ‘no’ and that the outcome of the decision affects exactly which instructions are carried out.

Page 8: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 8

Watching TVStart

Is programme interesting?

Stop

Watch programme

Switch on TV

Yes

No

Switch off TV

Page 9: Slide 1 Controlling Sequences of Events Traffic lights Event table

Slide 9

This Lesson

an ordered set of instructions is called a sequence of instructions.

In this lesson, you will learn how to break a task down into smaller parts and how to use a diagram to represent instructions for carrying out the task.

Return to lesson objectives