data representation number

20
STARTER – CRACK THE CODE 15 21 20 3 15 13 5 9 3 1 14 3 15 14 22 5 18 20 21 19 9 14 7 2 9 14 1 18 25

Upload: ahunneyball

Post on 18-Dec-2014

38 views

Category:

Education


0 download

DESCRIPTION

Presentation

TRANSCRIPT

Page 1: Data representation   number

STARTER – CRACK THE CODE

15 21 20 3 15 13 5

9

3 1 14

3 15 14 22 5 18 20

21 19 9 14 7

2 9 14 1 18 25

Page 2: Data representation   number

STARTER – CRACK THE CODE

15 21 20 3 15 13 5

O U T C O M E

9

I

3 1 14

C A N

3 15 14 22 5 18 20

C O N V E R T

21 19 9 14 7

U S I N G

2 9 14 1 18 25

B I N A R Y

Page 3: Data representation   number

DATA R

EPRES

ENTA

TION -

NUMBER

YE

AR

8 –

CO

MP

UT

I NG

Page 4: Data representation   number

OUTCOMES

• All students will be able to convert using 8 bit numbers

• Most students will be able to convert between binary, denary and binary to hexadecimal.

• Some students will be able to convert confidently between binary, denary and hexadecimal

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 5: Data representation   number

HOW DO COMPUTERS TALK?

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 6: Data representation   number

EXAMPLE

128 64 32 16 8 4 2 1

0 0 0 0 1 0 0 1

1 = On0 = Off

Take the “On” numbers and add them together

8+1 = 9

So;

1001 in Binary is equal to the denary (integer)

9

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 7: Data representation   number

TASK ONE - A

Binary Denary

11100101

01011010

10110101

01000101

11011111

11110000

10000000

11111111

2) So how ….. can I represent the number 256 in

binary?

1

128 64 32 16 8 4 2 1

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 8: Data representation   number

TASK ONE - A

Binary Denary

11100101 229

01011010 90

10110101 181

01000101 69

11011111 223

11110000 240

10000000 128

11111111 255

2) So how ….. can I represent the number 16 in

binary?

1

128 64 32 16 8 4 2 1

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 9: Data representation   number

CAN WE MAKE NUMBERS INTO BINARY?

So we know that 00000110 is equal to 5 but how to we make numbers into

binary code.

Simple!

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 10: Data representation   number
Page 11: Data representation   number

DENARY TO BINARY

99 =

Why? 64+31+2+1 = 99

128 64 32 16 8 4 2 1

0 1 1 0 0 0 1 1

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 12: Data representation   number

TASK ONE – B – CONVERT THE DENARY

Binary Decimal

8

12

56

93

121

187

209

254

2) So what is 110110100 in denary form?

1

128 64 32 16 8 4 2 1

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 13: Data representation   number

TASK ONE – B – CONVERT THE DENARY

Binary Decimal

00001000 8

00001100 12

00111000 56

01011101 93

01111001 121

10111011 187

11010001 209

11111110 254

2) So what is 110110100 in denary form?

1

128 64 32 16 8 4 2 1

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 14: Data representation   number

PROGRESS CHECK

Can we all confidently

convert using 8 bit binary numbers?

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 15: Data representation   number

THE SOLUTION TO BIGGER NUMBERS ….

Sometimes binary numbers get really long – so we use Hexadecimal to

shorten them – making them easier to store and remember.

In this example, the relatively small number of 42,780 in binary is

1010011100011100

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 16: Data representation   number

CONVERSION TO HEXADECIMAL

1010 0111 0001 1100

10 7 1 12

A 7 1 C

1) Split the binary into groups of 4

2) Using the table system convert to denary numbers

3) Use the Hex table to convert

8 4 2 1

1 0 1 0

8 2 4 1

0 1 1 1

8 4 2 1

0 0 0 1

8 4 2 1

1 1 0 0

0 1 2 3 4 5 6 7 8 9 10

11

12

13

14

15

0 1 2 3 4 5 6 7 8 9 A B C D E F

Page 17: Data representation   number

TASK TWO A – BINARY TO HEXBinary

Hex

0 0

1 1

2 2

3 3

4 4

5 5

6 6

7 7

8 8

9 9

10 A

11 B

12 C

13 D

14 E

15 F

Convert the following from Binary to Hexadecimal:

1. 1001 1111 1010 1110 1110

2. 1110 0010 1110 0010 1101

3. 1101 0010 0100 0000 1110

4. 0101 0100 1001 0100 0100

5. 0001 0001 1110 1110 1110 Convert:

8F to Decimal 6F8AB to

Binary

Page 18: Data representation   number

TASK TWO A – BINARY TO HEXBinary

Hex

0 0

1 1

2 2

3 3

4 4

5 5

6 6

7 7

8 8

9 9

10 A

11 B

12 C

13 D

14 E

15 F

Convert the following from Binary to Hexadecimal:

1. 1001 1111 1010 1110 1110 9FAEE

2. 1110 0010 1110 0010 1101 E2E2D

3. 1101 0010 0100 0000 1110 D240E

4. 0101 0100 1001 0100 0100 54944

5. 0001 0001 1110 1110 1110 11EEE Convert:

8F to Decimal 143 6F8AB to Binary

1101111100010101011

Page 19: Data representation   number

PLENARYUsing what you have learnt this lesson answer the

following questions;

1. Convert the denary number 110 to binary.

2. Convert the binary for 110 to Hexadecimal.

3. Convert the Hexadecimal E2 to binary

4. Convert the binary for E2 to denary

Objective:

I can convert using binary, denary and hexadecimal numbers

Page 20: Data representation   number

ProgressAchievement

Challenge

Objective:

I can convert using binary, denary and hexadecimal numbers