L3 Flowcharts Student
L3 Flowcharts Student
PROGRAMMING
CONSTRUCTS
AN INTRODUCTION WITH
PYTHON
FLOWCHART ALGORITHMS
DNA
BBC TECHNOLOGY section – READ and SHARE
Pl a
des nners
k on
STARTER
You’re in a room with three treasure chests
– At least one chest has treasure in it
– If a chest doesn’t have treasure it will have a deadly poison
– Each chest has a message, but all the messages are lying.
Which treasure chest would you open?
STARTER ANSWER
Learning Objectives:
• Identify flowchart symbols
• Develop flowchart(s) to solve problems
Key terms:
Literacy Objectives: • Flowchart
• Process
• Begin to use the relevant key terminology in
• Flow control
class discussions and written work • Input/output
https://www.youtube.com/wa
tch?v=kxZJv56BxU8
FLOWCHART SYMBOLS Optional YouTube video to
explain the symbols
Start/Stop
Decision
Process Input/Output
Flow control
EXAMPLE OF A FLOWCHART
Turn
Is Temp > 20? fan on
Turn
fan off
A hinge question is a diagnostic tool
which a teacher employs when their
Process
Get watering
can out of
garden shed
• This symbol is used to show a single step
that is part of a bigger problem Fill watering
can with water
• Process symbols may have only one line
going into and one line going out of them
• In this example the problem of how to water Pour water on
plants
plants in a garden has been broken down
into three steps
Stop
FLOWCHART SYMBOLS
Output Start
Stand at the
Decision kerb
Flowcharts are used often in program design but they are not the
only method. Another useful method is to write pseudocode.
STUDENT CHALLENGE #1
Complete the gaps, and place the activity (boxes) in the correct location.
S_ _ _ _ _ _ _ S_ _ _ _ _ _ _ _ I_ _ _ _ _ _ _ _ / L_ _ _
Go to the
Put on coat
cinema
Stay at home
Add water and watch TV
Is
Have
Check contents the cup at least £10?
Of wallet/purse
full?
Put on jumper
Stop Put on shirt
STUDENT CHALLENGE #1 - SOLUTION
Complete the gaps, and place the activity (boxes) in the correct location.
Check contents
Put on shirt
Of wallet/purse
Add water
Have
Stay at home
Put on jumper at least £10? and watch TV Is
the cup
full?
Go to the
Put on coat
cinema
Stop
STUDENT CHALLENGE #2
Drag text to each symbol to complete the flowchart. The first one’s done for you.
Start
STUDENT CHALLENGE #2 - SOLUTION
The completed flowchart…
?
Sequence
?
Selection
?
Iteration
STUDENT CHALLENGE #3
Are they a sequence, a selection or an iteration?
?
Selection
?
Iteration
?
Sequence
PROGRAMMING INTRODUCTION - RECAP
What are the 3 constructs used in computer programming?
? ?
?
Now attempt the Sequencing, Selection and Iteration Quiz
(Press Shift + F5 to run this slide, and then click the above link)
PYTHON CHALLENGE
If you already have some Python programming experience, try this challenge.
Here is the familiar ‘Hello World’ program. Cut & paste it to your IDLE editor.
language = input()
if language == "1":
print ("Hello World!")