11
Working with Variables code-it.co.uk By Phil Bagge

Working with Variables code-it.co.uk By Phil Bagge

Embed Size (px)

Citation preview

Page 1: Working with Variables code-it.co.uk By Phil Bagge

Working with Variablescode-it.co.ukBy Phil Bagge

Page 2: Working with Variables code-it.co.uk By Phil Bagge

Variable means changeable

The weather is variable

His moods are variable

Page 3: Working with Variables code-it.co.uk By Phil Bagge

Common sums

34x2=68, 12x2=24, 56x2=112,

Which aspect changes in each sum?

Page 4: Working with Variables code-it.co.uk By Phil Bagge

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

Page 5: Working with Variables code-it.co.uk By Phil Bagge

Common sums

34 x2=68, 12x2=24, 56x2=112Replace symbols with computer symbols *=X /=÷ NUMBER1 * 2 = TOTAL

Page 6: Working with Variables code-it.co.uk By Phil Bagge

Challenge write a formula for any number divide by

4

*/+ -

NUMBER1 TOTAL

Things you could use

Page 7: Working with Variables code-it.co.uk By Phil Bagge

NUMBER1 / 4 = TOTAL

Challenge write a formula for any number divide by

4

NUMBER1= TOTAL / 4

Page 8: Working with Variables code-it.co.uk By Phil Bagge

Challenge write a formula for any number add any

number */+-

NUMBER1 TOTAL

Things you could use

NUMBER2

Page 9: Working with Variables code-it.co.uk By Phil Bagge

Answer write a formula for any number add any

number= NUMBER1TOTAL NUMBER2+

=NUMBER1 TOTALNUMBER2+

Page 10: Working with Variables code-it.co.uk By Phil Bagge

Challenge write a formula for any number subtract

any number */+-

NUMBER1 TOTAL

Things you could use

NUMBER2

Page 11: Working with Variables code-it.co.uk By Phil Bagge

Answer write a formula for any number subtract

any number= NUMBER1TOTAL NUMBER2-

=NUMBER1 TOTALNUMBER2-