Week8e Notecomputersss3datarepresentation
Week8e Notecomputersss3datarepresentation
DATA REPRESENTATION
CONTENTS:
1. Definition of data representation.
2. List methods of data representation:
(i) Bits
(ii) BCD
(i) EBCDIC
(ii) ASCII
3. Represent data in different character sets
(Computer Character sets)
WEEK 8
DATA REPRESENTATION
WHAT IS DATA REPRESENTATION?
Data Representation or Coding System is the way data is
represented in a physical storage medium.
8 bits = 1 byte
210 bytes = 1024 bytes = 1 Kilobyte (KB)
220 bytes = 1024 KB = 1 Megabyte (MB)
230 bytes = 1024 MB = 1 Gigabyte (GB)
240 bytes = 1024 GB = 1 Terabyte (TB)
250 bytes = 1024 TB = 1 Petabyte (PB)
METHODS OF DATA
REPRESENTATION/CODING
SYSTEM
There are four (4) basic coding systems or methods of data
representation:
1. Bits (Binary Digits)
EXPLANATION AND
SOLUTION
1. Bits (Binary Digits)
In computer system, all types of information are stored
internally in the same simple format, that is, a sequence of 0s
and 1s. This is referred to as BITS.
BCD and binary are not the same. For example, 49 10 in binary is
1100012, but 4910 in BCD 01001001BCD. Each decimal digit is
converted to its binary equivalent.
For example,
DECIMAL NUMBER BCD NUMBER
5 0101
8 1000
105 0001 0000 0101
EXAMPLE: Determine the BCD value for the decimal number
5319.
3. ASCII
(America Standard Code for Information
Interchange)
The ASCII uses 7-bits for representation, that is, 2 7 = 128
characters. It is referred to as ASCII – 7. It is a 7-bit code with the
8th bit as the parity bit.
The ASCII character set, for example, uses the numbers 0 through
127 to represent all English characters as well as special control
characters.
The code was developed by the American National Standards
Institute (ANSI) to provide a standard code that could be used
by many different computer manufacturers in order to make them
compatible.
For example,
CHARACTERS ASCII – 7
5 011 0101
8 011 1000
9 011 1001
zone bits numeric bits
The American Standard Code for Information Interchange
(ASCII) is a character-encoding scheme based on the ordering of
the English alphabet. ASCII codes represent text in computers,
communications equipment, and other devices that use text. Most
modern character-encoding schemes are based on ASCII, though
they support many more characters than ASCII does.
4. EBCDIC
(Extended Binary Coded Decimal Interchange
Code)
It uses 8-bits coding system, that is, 28 = 256 character. It is
referred to as ASCII – 8, because it uses the full 8-bits.
For example,
CHARACTERS EBCDIC
5 1111 0101
8 1111 1000
9 1111 1001
Zone bits numeric bits
COMPUTER CHARACTER
SETS
Computer character sets is a defined list of characters
recognized by the computer hardware and software. It is the set of
characters represented in different data representation method.
Each character is represented by a number.
1. TYPECASTING:
This is the changing or converting one data type to another.
2. PARITY BIT
A parity bit is the addition of one bit to the end of the bit
representing a character. This is automatically added to the end of
the bits to make the total numbers of bits odd or even number
(Odd parity or Even parity)
4. NIBBLE
A nibble or less commonly referred to as nybble is a computing