Understanding A Computer - Part 2
Understanding A Computer - Part 2
Understanding A Computer - Part 2
1
Agenda
2
How do computers
represent data
3
Number System
• Number systems
– A manner of counting
– Several different number systems exist
• Decimal number system
– Used by humans to count
– Uses 10 symbols (0-9)
– Digits combine to make larger numbers
• Binary numbering system
– Uses only two symbols (1 and 0) to represent all
possible numbers 4
Data and Program Representation
1
How Computers Represent Data
6
How the CPU Works
16
Transistors
9
Data Representation
• Bits and bytes
– Binary numbers are made of
bits
– Bit represents a switch
– A byte is 8 bits
– A byte represents a single
character in the computer
10
Digital Data Representation
• Bit: The smallest unit of data that
a binary computer can recognize
(a single 1 or 0)
• Byte = 8 bits
• Byte terminology used to
express the size of documents
and other files, programs, etc.
• Prefixes are often used to
express larger quantities of
bytes: kilobyte (KB), megabyte
(MB), gigabyte (GB), terabyte
(TB), etc.
2
Data Representation
• Text codes
– Converts letters into binary
– Standard codes necessary for data transfer
– ASCII (7 bit)
• American English symbols
– Extended ASCII (8 bits)
• Graphics and other symbols
– Unicode (UTF-8, UTF-16, UTF-32)
• All languages on the planet
11
Data Representation
12
Data Representation
12