binary numbers. remember we count using the decimal system or base 10. that means there are 10...

22
Binary Numbers

Upload: oscar-moore

Post on 13-Jan-2016

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Binary Numbers

Page 2: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Remember we count using the decimal system or Base 10.That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9

Computers use the Binary or Base 2 system. They can only use 0 and 1 to represent numbers

Recap

Page 3: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

How do they do it?

16 8 4 2 1

0 1 1 0 1

Using the binary system we represent numbers in the following way.What number are we representing with this Binary code?

Page 4: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Using the cards on your desk can each group show me the binary code for the following decimal numbers.

Your term to be a computer!

Page 5: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

19

Page 6: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

27

Page 7: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

6

Page 8: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

12

Page 9: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

We can also go the other way. write down the decimal numbers that are represented by the following Binary codes.

Pop Quiz!

Page 10: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

00110

Page 11: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

11010

Page 12: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

11100

Page 13: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

10101

Page 14: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

10011

Page 15: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

How can we use binary to represent things other than numbers?

How can we represent an image using Binary?

How does a computer store an image when it can only use Binary numbers?

What good is Binary?

Page 16: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

A VERY Simple example

Page 17: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Run length compression

Page 18: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Example

Page 19: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

How could we extend this idea so that we were also able to represent different colours?

We can use another number to represent the colour of the run i.e.

1 = red, 2 = Blue, 3 = Yellowso3,2 would be a run of 3 pixels each coloured blue

What about colour?

Page 20: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Example

Page 21: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

List 5 reasons in your book

Why is compression important?

-Files are smaller

-Files run more smoothly

-Saves time transferring or uploading files

-Less chance of errors or glitches

-Does not require a high spec, expensive machine

Page 22: Binary Numbers. Remember we count using the decimal system or Base 10. That means there are 10 symbols: 0,1,2,3,4,5,6,7,8 and 9 Computers use the Binary

Copy out the Data Standards table from p148, provide the definition for each acronym and

it’s use.

Data Standards

Type of data

Standards Definition Used for

Images

JPEG

GIF Graphic Interchange File

Animations for the web

TIFF

BMP

Sound

WAV

MP3

AU