Presentation is loading. Please wait.

Presentation is loading. Please wait.

LO To learn basic computer coding using binary

Similar presentations


Presentation on theme: "LO To learn basic computer coding using binary"— Presentation transcript:

1 LO To learn basic computer coding using binary
Applied maths- coding LO To learn basic computer coding using binary Col 1 2 3 4 5 16 8 17 9 18 10 6 19 11 7 20 12 21 13 22 14 23 15 24 25 26 27 28 29 30 31 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. Ask all pupils to think of a number and write it down on their MWB. Choose a few pupils at random and show how you can find their number. Ask them to show MWB to class to confirm.

2 Only 4 columns here Can you spot the trick now?
How does this work? Only 4 columns here Can you spot the trick now? Pick a number 1 to 15 and tell me in which columns your number is present in the grid. 8 4 2 1 9 5 3 10 6 11 7 12 13 14 15 Col 1 2 3 4 8 9 5 10 6 11 7 12 13 14 15 Tell me the number at the top of each column where your number is present. Any ideas?

3 So this is how the game is played:-
Explanation So this is how the game is played:- 8 4 2 1 9 5 3 10 6 11 7 12 13 14 15 Pick a number - 6 At the top of the columns where 6 is present we have 4 & 2. 4 + 2 = 6

4 Your turn Now you can impress your friends with this trick!
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 numbers = 23 Col 1 2 3 4 5 16 8 17 9 18 10 6 19 11 7 20 12 21 13 22 14 23 15 24 25 26 27 28 29 30 31 Col 1 2 3 4 5 16 8 Now you can impress your friends with this trick!

5 Binary Code Computers are not as smart as you think, in fact, they only know 2 things… 0 and 1 Everything else is told to the computer by a human, this is called programming.

6 For a computer 0 means turn a circuit off 1 means turn a circuit on
Computers have millions of tiny circuits inside. For a computer 0 means turn a circuit off 1 means turn a circuit on

7 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:

8 The computer can only use 0s and 1s
Denary (our numbers) Binary 1 2 10 3 11 4 100 5 101 6 110 7 111 8 1000 9 1001 1010 1011 12 1100 The computer can only use 0s and 1s So for a computer numbers go like is this…

9 Denary numbers – keep doubling!
Method Denary numbers – keep doubling! Make a table like this.. 128 64 32 16 8 4 2 1 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 This is Binary

10 So 5 for us, is 00000101 for the computer
128 64 32 16 8 4 2 1 We can forget the first few 0s and our binary number 5 looks like this… 101

11 Convert binary to denary digits
ACTIVITY Convert binary to denary digits a) 128 64 32 16 8 4 2 1 b) 128 64 32 16 8 4 2 1 c) 128 64 32 16 8 4 2 1

12 Convert binary to denary digits
ACTIVITY Convert binary to denary digits a) 128 64 32 16 8 4 2 1 = 66

13 Convert binary to denary digits
ACTIVITY Convert binary to denary digits b) 128 64 32 16 8 4 2 1 = 37

14 Convert binary to denary digits
ACTIVITY Convert binary to denary digits c) 128 64 32 16 8 4 2 1 = 129

15 ACTIVITY 1. Show your shoe size in binary 2. Show the date of the month you were born in binary 3. Show your age in binary 4. Show your height in cm in binary 5. Show the amount of siblings you have in binary 6. Show your house number in binary

16 give your partner any number under 255
ACTIVITY Working in pairs; give your partner any number under 255 see if they can convert it into binary. >>>EXT Is there any number that CAN’T be made? Additional discussion points could examine why I have asked them to choose a number less than 255.

17 Use your table to convert these numbers to binary:
ACTIVITY 3 2 6 10 17 20 42 47 71 146 255 Use your table to convert these numbers to binary: >>>EXT:

18 >>>EXT: Answers 3 2 6 10 17 20 42 47 71 146 255 11 10 110
6 10 17 20 42 47 71 146 255 11 10 110 1010 10001 10100 101010 101111 >>>EXT:

19 Convert these binary numbers into denary
ACTIVITY Convert these binary numbers into denary a) b) c) d) e) f) g) h) i) j) k)

20 Answers             

21 11001% of people in the world do not have access to a mobile phone.
ACTIVITY De-code the following: 11001% of people in the world do not have access to a mobile phone. Gorillas sleep as much as 1110 hours per day. You can tell the sex of a horse by its teeth. Most males have , females have On average, 1100 newborns will be given to the wrong parents daily. A giraffe can clean its ears with its inch tongue! A man named Charles Osborne had the hiccups for years!

22 25% of people in the world do not have access to a mobile phone .
Answers De-code the following: 25% of people in the world do not have access to a mobile phone . 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 giraffe can clean its ears with its 21 inch tongue! A man named Charles Osborne had the hiccups for 69 years!

23 GAME Try playing this Cisco games in groups alongside coding competing against each other for highest score.

24 Discussion as to how this joke works.

25 Binary code is not just about numbers
Binary code is not just about numbers. Every number, letter and symbol on your keyboard needs to be converted into binary so the computer can understand it. We can see all these conversions in something called an ASCII table.

26 From the ASCII table… Symbol Decimal Binary A 65 01000001 B 66
C 67 D 68 E 69 F 70 G 71 H 72 I 73 J 74 K 75 L 76 M 77 N 78 O 79 P 80 Q 81 R 82 S 83 T 84 U 85 V 86 W 87 X 88 Y 89 Z 90 Symbol Decimal Binary a 97 b 98 c 99 d 100 e 101 f 102 g 103 h 104 i 105 j 106 k 107 l 108 m 109 n 110 o 111 p 112 q 113 r 114 s 115 t 116 u 117 v 118 w 119 x 120 y 121 z 122 From the ASCII table…

27 You can write your name in binary…
H a n n a h

28 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…

29 Symbol Decimal Binary Space 32 ! 33 " 34 # 35 $ 36 % 37 & 38 ' 39 ( 40 ) 41 * 42 + 43 , 44 - 45 . 46 / 47 : 58 ; 59 < 60 = 61 > 62 ? 63 Symbol Decimal Binary @ 64 [ 91 \ 92 ] 93 ^ 94 _ 95 ` 96 { 123 124 } 125 ~ 126

30 Decode this message: Message reads: If you can read this you have cracked binary! Encode a personalised message here


Download ppt "LO To learn basic computer coding using binary"

Similar presentations


Ads by Google