Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Working with Variables code-it.co.uk By Phil Bagge."— Presentation transcript:

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

2 Variable means changeable The weather is variable His moods are variable

3 Common sums 34x2=68, 12x2=24, 56x2=112, Which aspect changes in each sum?

4 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 56 68 24 112

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

6 Challenge write a formula for any number divide by 4 */+ - NUMBER1TOTAL Things you could use

7 NUMBER1 / 4 = TOTAL Challenge write a formula for any number divide by 4 NUMBER1 = TOTAL / 4

8 Challenge write a formula for any number add any number */+- NUMBER1 TOTAL Things you could use NUMBER2

9 Answer write a formula for any number add any number = NUMBER1 TOTAL NUMBER2 + = NUMBER1 TOTAL NUMBER2 +

10 Challenge write a formula for any number subtract any number */+- NUMBER1 TOTAL Things you could use NUMBER2

11 Answer write a formula for any number subtract any number = NUMBER1 TOTAL NUMBER2 - = NUMBER1 TOTAL NUMBER2 -


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

Similar presentations


Ads by Google