TEACHER PRESENTATION

Download Report

Transcript TEACHER PRESENTATION

Binary
Data Representation
Objectives
 Know
the key terms used in data
representation
 Understand
 Be
how computers count in binary
able convert numbers up to 255
between denary (decimal) and binary
The basics

Computer hardware is made of electronic circuits.

The circuit pathways can have electricity flowing
through them.

Electricity has two states:
On - 1
Off - 0
A little bit of maths

The number system that we use is called
denary or base 10


This means that we have numbers from
0 to 9
Computers don’t have this because of the
two states, so you can only ever have 1 or
0, this is called binary or base 2

If you have a 1 or a 0 its called a bit
which stand for binary digit.
Binary Digit
Denary
Binary
0
0
1
1
2
3
4
5
6
7
8
Bit
9
Memory sizes

0 or 1 = 1 Bit

4 bits = nibble (This will be important later on!)

8 bits = Byte

1024 Bytes = 1 Kilobyte (Kb)

1024 Kilobytes = 1 Megabyte (Mb)

1024 Megabytes = 1 Gigabyte (Gb)

1024 Gigabytes = 1 Terabyte (Tb)
How to convert to binary

You will need to know how to convert to binary (and also the other way)

You will only ever be asked to convert 8 bit
Each one goes up to the
power of 2
128
64
32
16
The magic numbers
8
4
2
1
Step by step – Converting to Binary
1.
Layout the magic numbers on your paper
128 64
32
16
8
4
2
1
1.
Think greedy, and work from left to right
2.
Go through each number and work out whether it goes into the number you
are wishing to convert, if its no then you need to put a 0, if its yes then put a
1 underneath – we are converting 80
128 64
Remainder - 16
32
16
Does 128 go into 80 - No
0
Does 64 go into 80 - Yes
0
1
Does 32 go into 16 - No
0
1
0
Does 16 go into 16 - Yes
0
1
0
1
We have converted
everything just add 0s
0
1
0
1
8
4
2
1
0
0
0
0