Chapter 1 Data Storage 2
Chapter 1 Data Storage 2
Data Storage
by
J. Glenn Brookshear
3
Binary Number
(base 2)
Decimal Number
(base 10) How Computers
0
1
0
1
Represent Data
10 2
11 3
100 4 Computers work with
101 5
110 6
binary numbers,
111 7 which include only
1000 8 0s and 1s.
1001 9
1010 10
1011 11
1100 12
1101 13
1110 14
1111 15
How Computers
Represent Data
Binary numbers : Computers work with binary
numbers, which include only 0s and 1s.
Bit : is the smallest piece of data (or unit of
information) a computer can work with
OFF ON
OFF
ON
A bit is either “on”
OR = 1 bit
or “off,” a 0 or a 1.
0 1
Eight bits, a Byte, signify a single unit of storage.
1 Byte = 8 bits = 1 Byte
0 1 0 0 0 0 0 1
5
How Computers
Represent Data
Bits
Bytes
8 bits = 1 Byte
one thousand Bytes = 1 Kilobyte (KB)
one million Bytes = 1 Megabyte (MB)
one billion Bytes = 1 Gigabyte (GB)
6
one trillion Bytes = 1 Terabyte (TB)
How Computers
Represent Data
The common measurement of a data
transfer rate is in bits per second,
Example: gigabits per second (Gbps).
The common measurement of data
storage is in bytes, such as gigabytes
(GB).
1-9
1-10
1-13
1-14
1-15
1-16
1-17
1-18
11 (carry)
1010
1111+
11001
1-19
1-20
1-21
1-22
1-23
1-24
1-25
1-26
1-28
28
Copyright © 2011 Pearson
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Education, Inc. Publishing as
Prentice Hall
Character codes
1-29
29
Copyright © 2011 Pearson
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Education, Inc. Publishing as
Prentice Hall
Character codes
1-30
30
Copyright © 2011 Pearson
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Education, Inc. Publishing as
Prentice Hall
ASCII and EBCDIC Code
1-31
31
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Example : Binary encoding using ASCII Code
1-32
32
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley