Upload
dayna-norris
View
218
Download
0
Embed Size (px)
Citation preview
Working with Variablescode-it.co.ukBy Phil Bagge
Variable means changeable
The weather is variable
His moods are variable
Common sums
34x2=68, 12x2=24, 56x2=112,
Which aspect changes in each sum?
Common sums
x2= , x2= , x2=Replace numbers with variables
NUMBER1 X 2 = TOTAL
Which part of this formula algorithm would a computer find hard to understand?
34 12 5668 24 112
Common sums
34 x2=68, 12x2=24, 56x2=112Replace symbols with computer symbols *=X /=÷ NUMBER1 * 2 = TOTAL
Challenge write a formula for any number divide by
4
*/+ -
NUMBER1 TOTAL
Things you could use
NUMBER1 / 4 = TOTAL
Challenge write a formula for any number divide by
4
NUMBER1= TOTAL / 4
Challenge write a formula for any number add any
number */+-
NUMBER1 TOTAL
Things you could use
NUMBER2
Answer write a formula for any number add any
number= NUMBER1TOTAL NUMBER2+
=NUMBER1 TOTALNUMBER2+
Challenge write a formula for any number subtract
any number */+-
NUMBER1 TOTAL
Things you could use
NUMBER2
Answer write a formula for any number subtract
any number= NUMBER1TOTAL NUMBER2-
=NUMBER1 TOTALNUMBER2-