Lesson Aim (Data representation) To be able to: Convert B/D D/B Convert D/H H/D Convert H/B B/H...

9
Lesson Aim (Data representation) To be able to: Convert B/D & D/B Convert D/H & H/D Convert H/B & B/H Perform simple binary arithmetic Represent a number with fractional part in binary

description

The bigger picture Why is binary important? Why is binary important? Fundamental to all modern computers Fundamental to all modern computers Used to represent data stored on a computer Used to represent data stored on a computer It influences: encryption, error checking, data compression etc It influences: encryption, error checking, data compression etc Data transmission Data transmission

Transcript of Lesson Aim (Data representation) To be able to: Convert B/D D/B Convert D/H H/D Convert H/B B/H...

Page 1: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

Lesson Aim (Data representation) To be able to:

Convert B/D & D/B Convert D/H & H/D Convert H/B & B/H Perform simple binary arithmetic Represent a number with fractional

part in binary

Page 2: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

Starter (15)Starter (15) Bit, bits, nibble, byte, kilobyte, megabyte, Bit, bits, nibble, byte, kilobyte, megabyte,

gigabyte, terabyte, petabytegigabyte, terabyte, petabyte Explain the capacity for each oneExplain the capacity for each one Find out what a (word) is Find out what a (word) is Find out what computers use to store data Find out what computers use to store data Explain why a 500GB hardware is not Explain why a 500GB hardware is not

actually 500GB but 465GBactually 500GB but 465GB

Page 3: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

The bigger pictureThe bigger picture Why is binary important?Why is binary important? Fundamental to all modern computersFundamental to all modern computers Used to represent data stored on a Used to represent data stored on a

computercomputer It influences: encryption, error checking, It influences: encryption, error checking,

data compression etcdata compression etc Data transmission Data transmission

Page 4: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

Activity 1 (15)Activity 1 (15) Binary 1/0 1= high voltage 0 = lowBinary 1/0 1= high voltage 0 = low Denary/binary B/DDenary/binary B/D Use 8 bit systemUse 8 bit system B/D = count the onesB/D = count the ones D/B see if it fitsD/B see if it fits Access Google Docs and download Access Google Docs and download

the worksheet (Inside 5.1 folder)the worksheet (Inside 5.1 folder)

Page 5: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

Activity 2 (15)Activity 2 (15) Hexadecimal presentation

Page 6: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

Activity 2(15)Activity 2(15) Breakdown each hexadecimal into 4 Breakdown each hexadecimal into 4

bitsbits Why do we do this?Why do we do this? 8 4 2 18 4 2 1

Page 7: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

Binary additionBinary addition Same as denary, if a number > 9 we use a Same as denary, if a number > 9 we use a

place value and carry a 1 to the column on place value and carry a 1 to the column on the leftthe left

Rules:Rules: 0 + 0 =00 + 0 =0 0 + 1 = 1 + 0 = 10 + 1 = 1 + 0 = 1 1 + 1 = 10 (0 and carry 1(to the left))1 + 1 = 10 (0 and carry 1(to the left)) Add 2 digits at a timeAdd 2 digits at a time Carry over numbers to the sideCarry over numbers to the side

Page 8: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

1011 + 1011 + 10011001

Can we cheat a littleCan we cheat a little 0 + 0 = 00 + 0 = 0 0 + 1 = 10 + 1 = 1 1 + 0 = 11 + 0 = 1 1 + 1 = 10 (?)1 + 1 = 10 (?) 1 + 1 + 1 = (1 and carry 1)1 + 1 + 1 = (1 and carry 1)

Page 9: Lesson Aim (Data representation) To be able to: Convert B/D  D/B Convert D/H  H/D Convert H/B  B/H Perform simple binary arithmetic Represent a number.

MultiplicationMultiplication 0 x 0= 00 x 0= 0 0 x 1 = 10 x 1 = 1 1 x 0 = 01 x 0 = 0 1 x 1 = 11 x 1 = 1 0101 * 0101 * 00110011