pick a number 1 to 31 and tell me in which columns your number is present in the grid

30
Pick a number 1 to 31 and tell me in which columns your number is present in the grid. Be careful to check all columns. Example – No. 23 is in columns 1, 3, 4 & 5. Col 1 Col 2 Col 3 Col 4 Col 5 16 8 4 2 1 17 9 5 3 3 18 10 6 6 5 19 11 7 7 7 20 12 12 10 9 21 13 13 11 11 22 14 14 14 13 23 15 15 15 15 24 24 20 18 17 25 25 21 19 19 26 26 22 22 21 27 27 23 23 23 28 28 28 26 25 29 29 29 27 27 30 30 30 30 29 Applied maths- coding LO To learn basic computer coding using binary

Upload: charo

Post on 23-Feb-2016

36 views

Category:

Documents


0 download

DESCRIPTION

Applied maths- coding. LO To learn basic computer coding using binary. Pick a number 1 to 31 and tell me in which columns your number is present in the grid. Be careful to check all columns. Example – No. 23 is in columns 1, 3, 4 & 5. How does this work?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

• Pick a number 1 to 31 and tell me in which columns your number is present in the grid.

• Be careful to check all columns.

• Example – No. 23 is in columns 1, 3, 4 & 5.

Col1

Col2

Col3

Col4

Col5

16 8 4 2 117 9 5 3 318 10 6 6 519 11 7 7 720 12 12 10 921 13 13 11 1122 14 14 14 1323 15 15 15 1524 24 20 18 1725 25 21 19 1926 26 22 22 2127 27 23 23 2328 28 28 26 2529 29 29 27 2730 30 30 30 2931 31 31 31 31

Applied maths- codingLO To learn basic computer coding using binary

Page 2: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

How does this work?

Only 4 columns hereCan you spot the trick now?

Pick a number 1 to 15 and tell me in which columns your number is present in the grid.

Col1

Col2

Col3

Col4

8 4 2 19 5 3 3

10 6 6 511 7 7 712 12 10 913 13 11 1114 14 14 1315 15 15 15

8 4 2 1

9 5 3 3

10 6 6 5

11 7 7 7

12 12 10 9

13 13 11 11

14 14 14 13

15 15 15 15Tell me the number at the top of each column where your number is present. Any ideas?

Page 3: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

So this is how the game is played:-

8 4 2 1

9 5 3 3

10 6 6 5

11 7 7 7

12 12 10 9

13 13 11 11

14 14 14 13

15 15 15 15

Explanation

4 + 2 = 6

At the top of the columns where 6 is present we have 4 & 2.

Pick a number - 6

Page 4: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Your turn

Looking at the top two rows we see:

Pick a number - is in columns 1, 3, 4 & 5. A bit of practice needed to

remember the top row numbers16 + 4 + 2 + 1 = 23

Col1

Col2

Col3

Col4

Col5

16 8 4 2 117 9 5 3 318 10 6 6 519 11 7 7 720 12 12 10 921 13 13 11 1122 14 14 14 1323 15 15 15 1524 24 20 18 1725 25 21 19 1926 26 22 22 2127 27 23 23 2328 28 28 26 2529 29 29 27 2730 30 30 30 2931 31 31 31 31

Col1

Col2

Col3

Col4

Col5

16 8 4 2 1

Now you can impress your friends with this trick!

Page 5: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Computers are not as smart as you think, in fact, they only know 2 things…

0 and 1

Binary Code

0100001001101001011011100110000101110010011110010010000001000011011011110110010001100101

Everything else is told to the computer by a human, this is called programming.

Page 7: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Humans need to learn the computer’s language to be able to tell computers what to do.Computer language is Binary.

Here is an example of what binary code looks like:0101010001101000011010010111001100100000011010010111001100100000011001010110000101110011011110010000110100001010

Page 8: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

The computer can only use 0s and 1s So for a computer numbers go like is this…

Denary (our numbers) Binary

0 01 12 103 114 1005 1016 1107 1118 10009 1001

10 101011 101112 1100

Page 9: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Method

To make the number 5, place a 1 under the numbers that you need and a 0 under the numbers that you don’t…

128 64 32 16 8 4 2 1

Make a table like this..

128 64 32 16 8 4 2 1

0 0 0 0 0 1 0 1

Denary

numbers –

keep

doubling!

This is Binary

Page 10: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

So 5 for us, is 00000101 for the computer

128 64 32 16 8 4 2 1

0 0 0 0 0 1 0 1

We can forget the first few 0s and our binary number 5 looks like this…

101

Page 11: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Convert binary to denary digits

128 64 32 16 8 4 2 1

0 1 0 0 0 0 1 0

128 64 32 16 8 4 2 1

0 0 1 0 0 1 0 1

128 64 32 16 8 4 2 1

1 0 0 0 0 0 0 1

a)

b)

c)

ACTIVITY

Page 12: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Convert binary to denary digits

128 64 32 16 8 4 2 1

0 1 0 0 0 0 1 0

a)

ACTIVITY

64 + 2 = 66

Page 13: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Convert binary to denary digits128 64 32 16 8 4 2 1

0 0 1 0 0 1 0 1

b)

ACTIVITY

32 + 4 + 1 = 37

Page 14: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Convert binary to denary digits

128 64 32 16 8 4 2 1

1 0 0 0 0 0 0 1

c)

ACTIVITY

128 + 1 = 129

Page 18: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

3206

101720424771

146255

111001101010100011010010101010111110001111001001011111111

Answers

>>>EXT:

Page 20: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

24 000110005 00000101 22 00010110107 01101011120 01111000164 10100100 165 10100101 188 10111100 215 11010111 230 11100110250 11111010

Answers

Page 21: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

11001% of people in the world do not have access to a mobile phone.

ACTIVITYDe-code the following:

A giraffe can clean its ears with its 10101 inch tongue!

Gorillas sleep as much as 1110 hours per day.

You can tell the sex of a horse by its teeth. Most males have 101000, females have 100100.

On average, 1100 newborns will be given to the wrong parents daily.

A man named Charles Osborne had the hiccups for 1000101 years!

Page 22: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

25% of people in the world do not have access to a mobile phone .

AnswersDe-code the following:

A giraffe can clean its ears with its 21 inch tongue!

Gorillas sleep as much as fourteen hours per day.

You can tell the sex of a horse by its teeth. Most males have 40, females have 36.

On average, 12 newborns will be given to the wrong parents daily.

A man named Charles Osborne had the hiccups for 69 years!

Page 26: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

From the

ASCII table…

Symbol Decimal BinaryA 65 01000001B 66 01000010C 67 01000011D 68 01000100E 69 01000101F 70 01000110G 71 01000111H 72 01001000I 73 01001001J 74 01001010K 75 01001011L 76 01001100M 77 01001101N 78 01001110O 79 01001111P 80 01010000Q 81 01010001R 82 01010010S 83 01010011T 84 01010100U 85 01010101V 86 01010110W 87 01010111X 88 01011000Y 89 01011001Z 90 01011010

Symbol Decimal Binarya 97 01100001b 98 01100010c 99 01100011d 100 01100100e 101 01100101f 102 01100110g 103 01100111h 104 01101000i 105 01101001j 106 01101010k 107 01101011l 108 01101100

m 109 01101101n 110 01101110o 111 01101111p 112 01110000q 113 01110001r 114 01110010s 115 01110011t 116 01110100u 117 01110101v 118 01110110w 119 01110111x 120 01111000y 121 01111001z 122 01111010

Page 27: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

You can write your name in binary…

010010000110000101101110011011100110000101001000

H a n n a h

Page 28: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Every time you type a letter on your keyboard, the computer understands is as loads of 0s and 1s!

Here are some other characters you might need from the ASCII table…

Page 29: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Symbol Decimal BinarySpace 32 00100000

! 33 00100001" 34 00100010# 35 00100011$ 36 00100100% 37 00100101& 38 00100110' 39 00100111( 40 00101000) 41 00101001* 42 00101010+ 43 00101011, 44 00101100- 45 00101101. 46 00101110/ 47 00101111: 58 00111010; 59 00111011< 60 00111100= 61 00111101> 62 00111110? 63 00111111

Symbol Decimal Binary@ 64 01000000[ 91 01011011\ 92 01011100] 93 01011101^ 94 01011110_ 95 01011111` 96 01100000{ 123 01111011¦ 124 01111100} 125 01111101~ 126 01111110

Page 30: Pick a number 1 to 31 and tell me in which columns your number is present in the grid

Decode this message:

010010010110011000100000011110010110111101110101001000000110001101100001011011100010000001110010011001010110000101100100001000000111010001101000011010010111001100100000011110010110111101110101001000000110100001100001011101100110010100100000011000110111001001100001011000110110101101100101011001000010000001100010011010010110111001100001011100100111100100100001