Presentation is loading. Please wait.

Presentation is loading. Please wait.

TOPICS:  Introduction  Place Value  Binary  Decimal conversion  Decimal  Binary conversion  Related terms  Quiz.

Similar presentations


Presentation on theme: "TOPICS:  Introduction  Place Value  Binary  Decimal conversion  Decimal  Binary conversion  Related terms  Quiz."— Presentation transcript:

1

2 TOPICS:  Introduction  Place Value  Binary  Decimal conversion  Decimal  Binary conversion  Related terms  Quiz

3 Computers are used daily by nearly everyone at home, school and work, for business, education and entertainment.

4 How do computers work? Are they really smart?

5 Computers don’t really think. They are electronic equipment made up of electrical circuits that are either “ON” or “OFF”

6 How do computers store information? Computers store information as strings of electrical impulses. They are either “ON” (there is electricity) or they are “OFF” (there isn’t electricity). The number “1” is “ON” and the number “0” is “OFF”.

7 0 and 1 All data and programming is changed to zeros and ones. Each of these digits, either 0 or 1 is a BIT… That is short for Binary digit

8 Bits & Bytes While each piece A string of of data, 0 or 1, data that is a is a BIT, specific number of bits is a BYTE BYTES are strings of 8 BITS. That is, a string of eight 0s and 1s together. Example: 01110101 or 10010011

9 BYTES!

10 LET’S REVIEW What is a BINARY DIGIT? BYTEBIT

11 OOPS!!! Try again!

12 YES!

13 LET’S REVIEW What is a string of BINARY DIGITS? BYTE BIT

14 OOPS!!! Try again!

15 YES!

16 Because computers use only these two numbers, we say they operate on a BINARY number System.

17 BINARY is a number system based on TWO numbers, 0 and 1, instead of the base 10 number system we use every day.

18 The base number system determines what digits are used. The base 10 system we commonly use includes the digits 0 - 9 and 0

19 Computers use 0 and 1 exclusively, so they use base 2, or a BINARY system.

20 Every number base uses digits 0 to one number less than the number base. So… Base 4 uses 0, 1, 2 and 3 Every number base uses digits 0 to one number less than the number base. So… Base 4 uses 0, 1, 2 and 3 Base 8 uses 0, 1, 2, 3, 4, 5, 6, and 7

21 What digits are in a binary number system? 0 - 4 0 - 2 CHECK UP  0 - 1

22 OOPS!!! Try again!

23 YES!

24 How do you change a number to binary? First you have to understand how we determine the value of numbers. How do you change a number to binary? First you have to understand how we determine the value of numbers.

25 In whatever number system you are using, the VALUE of the number depends on the PLACE it is in. You learned this as PLACE VALUE. hundred’s place ten’s place one’s place In whatever number system you are using, the VALUE of the number depends on the PLACE it is in. You learned this as PLACE VALUE. hundred’s place ten’s place one’s place

26 That is, 2 is different than 20 or 200, because the 2 is in different places, which changes the VALUE. The zeroes just fill in empty columns. But place value is actually the POWER of the base… the one’s place is 10 0 the ten’s place is 10 1 the hundred’s place is 10 2.

27 When you learned numbers you read the VALUE of numbers by adding the place values…. 1,234 = 1 x 1000 = 1000 (or 1 x10 3 ) + 2 x 100 = 200 (or 2 x 10 2 ) + 3 x 10 = 30 (or 3 x 10 1 ) + 4 x 1 = 4 (or 4 x 10 0 ) = 1,234 When you learned numbers you read the VALUE of numbers by adding the place values…. 1,234 = 1 x 1000 = 1000 (or 1 x10 3 ) + 2 x 100 = 200 (or 2 x 10 2 ) + 3 x 10 = 30 (or 3 x 10 1 ) + 4 x 1 = 4 (or 4 x 10 0 ) = 1,234

28 You may remember this was called EXPANDED NOTATION

29 In BINARY, it works the same way, but the place values are in powers of 2 instead of Powers of 10. 2 5 2 4 2 3 2 2 2 1 2 0. 32 16 8 4 2 1

30 Place value is in powers of 2 64 32 16 8 4 2 1

31 To find the value of a binary number, just add up the place values. It is helpful to write the place values, and then add the number. Try this example: 10101 32 16 8 4 2 1 1 0 1 0 1 Adding the values = 16 + 4 + 1 = 21 To find the value of a binary number, just add up the place values. It is helpful to write the place values, and then add the number. Try this example: 10101 32 16 8 4 2 1 1 0 1 0 1 Adding the values = 16 + 4 + 1 = 21

32 When you add up the place values, you get the number in base 10 (conventional numbers). Example: 8 4 2 1 1 0 0 1 = 8 + 1 = 9

33 Try this again with the number 1110 Example: 8 4 2 1 1 1 1 0 = 8 + 4 + 2 = 14

34 Try this again with another number and greater powers of 2. 1001101 64 32 16 8 4 2 1 1 0 0 1 1 0 1 64 + 8 + 4 + 1 = 77 Try this again with another number and greater powers of 2. 1001101 64 32 16 8 4 2 1 1 0 0 1 1 0 1 64 + 8 + 4 + 1 = 77

35 Now try it on your own: Here are the place values: 32 16 8 4 2 1 1 1 0 0 0 1 What is the number? Now try it on your own: Here are the place values: 32 16 8 4 2 1 1 1 0 0 0 1 What is the number? Check answer here 49

36 Now try it on another one! Here are the place values: 32 16 8 4 2 1 1 0 0 1 0 1 Now try it on another one! Here are the place values: 32 16 8 4 2 1 1 0 0 1 0 1 Check answer here 37

37 You need to compare the PLACE VALUES of BINARY NUMBERS to the decimal number you are wanting to convert. What is the biggest binary number that is in it?

38

39

40

41

42 Try again with a bigger number: 47 47 > 32 but < 64 32 16 8 4 2 1 47 – 32 = 15 1 15 - 8 = 7 1 0 1 7 - 4 = 3 1 0 1 1 3 – 2 = 1 1 0 1 1 1 1 Check  Is 32 + 8 + 4 + 2 + 1 = 47? YES!!! Try again with a bigger number: 47 47 > 32 but < 64 32 16 8 4 2 1 47 – 32 = 15 1 15 - 8 = 7 1 0 1 7 - 4 = 3 1 0 1 1 3 – 2 = 1 1 0 1 1 1 1 Check  Is 32 + 8 + 4 + 2 + 1 = 47? YES!!!

43 Try again with a different number: 18 18 > 16 but < 32 32 16 8 4 2 1 18 – 16 = 2 1 2 - 2 = 0 1 0 0 1 0 Check  Is 16 + 2 = 18 YES!!! Try again with a different number: 18 18 > 16 but < 32 32 16 8 4 2 1 18 – 16 = 2 1 2 - 2 = 0 1 0 0 1 0 Check  Is 16 + 2 = 18 YES!!!

44 Now you try binary  decimal Change 1010 to base 10 (use the place values) 8 4 2 1 Now you try binary  decimal Change 1010 to base 10 (use the place values) 8 4 2 1 Check answer here 10

45 Try binary  decimal again Change 10011 to base 10 (use the place values) 16 8 4 2 1 Try binary  decimal again Change 10011 to base 10 (use the place values) 16 8 4 2 1 Check answer here 19

46 Now decimal  binary Change 35 to binary (subtract the place values from the number) 32 16 8 4 2 1 Now decimal  binary Change 35 to binary (subtract the place values from the number) 32 16 8 4 2 1 Check answer here 100011

47 Now decimal  binary Change 39 to binary (subtract the place values from the number) 32 16 8 4 2 1 Now decimal  binary Change 39 to binary (subtract the place values from the number) 32 16 8 4 2 1 Check answer here 100111

48 You can see that if 35 is a SIX DIGIT number in binary, then binary numbers get really BIG really FAST! That is why they have prefixes like…

49 KILO as in kilobyes which is 2 10 bytes MEGA as in megabytes which is 2 20 bytes And GIGA as in gigabytes which is 2 30 bytes This is to show how many binary digits are used. These are commonly used for file sizes and storage. KILO as in kilobyes which is 2 10 bytes MEGA as in megabytes which is 2 20 bytes And GIGA as in gigabytes which is 2 30 bytes This is to show how many binary digits are used. These are commonly used for file sizes and storage.

50 Then there are even BIGGER prefixes  TERA = 2 40 PETA = 2 50 EXA = 2 60 ZETTA = 2 70 And YOTTA = 2 80 Then there are even BIGGER prefixes  TERA = 2 40 PETA = 2 50 EXA = 2 60 ZETTA = 2 70 And YOTTA = 2 80

51 And then there is GOOGOL 1 with 100 zeros!! And then there is GOOGOL 1 with 100 zeros!!

52 CHECK UP! Match the answers. What is a binary digit? What is a string of binary digits? CHECK UP! Match the answers. What is a binary digit? What is a string of binary digits? byte bit Float your mouse here to find the pen you can use to draw a line to the correct answer.* * You will need to “unclick” the pen tool and click the “arrow” tool to go on to the next slide. Be sure to “discard” annotations when asked.

53 CHECK YOUR ANSWER! Match the answers. What is a binary digit? What is a string of binary digits? CHECK YOUR ANSWER! Match the answers. What is a binary digit? What is a string of binary digits? byte bit

54 What number system uses only digits 0 and 1? binary decimal

55 OOPS!!! Try again!

56 YES!

57 Convert the following binary numbers to decimal. 10110 16 8 4 2 1 111011 32 16 8 4 2 1 Convert the following binary numbers to decimal. 10110 16 8 4 2 1 111011 32 16 8 4 2 1 22 59 Check answer here Check answer here

58 Convert the following decimal numbers to binary. 17 16 8 4 2 1 38 32 16 8 4 2 1 Convert the following decimal numbers to binary. 17 16 8 4 2 1 38 32 16 8 4 2 1 10001 100110 Check answer here Check answer here

59 Now, answer this…. There are only 10 kinds of people, those who understand binary, and those who don’t. Which are you? Now, answer this…. There are only 10 kinds of people, those who understand binary, and those who don’t. Which are you?

60

61 All graphics sources are noted in normal Powerpoint view.


Download ppt "TOPICS:  Introduction  Place Value  Binary  Decimal conversion  Decimal  Binary conversion  Related terms  Quiz."

Similar presentations


Ads by Google