CSS ASCII
CSS ASCII
Lesson V
Data Processing of Computer
At its most basic level, the computer is a gadget that receives input, does something with that input, and
then produces output. Figure below illustrates this concept.
OUTPUT DEVICE
INPUT DEVICE MEMORY
If the instruction is not expressed in the machine language, the software translator encodes all
instruction and data into strings of 0’s and 1’s.
During the translation and subsequent execution, the central processing unit (CPU) fetches the
instructions from the memory.
The CPU also fetches from the memory the necessary data items and applies to them the
necessary instructions.
The intermediate and final results are also stored in the memory.
As the execution of the program is progressing, the results may be communicated in the outside
world via an output device.
Data Representation
Lesson 5 – Data Processing of Computer 42
To a computer, everything is number. Numbers, letters, punctuation mark, sounds, pictures and even the
computers own instructions are represented by numbers. People normally used base-10 to present
numbers and the system is called decimal number system. (0,1,2,3,4,5,6,7,8,9,). In this system, each
symbol or number is called digit.
In a computer, all data must be reduced to electrical switches. A switch has only two possible states – on
and off – and it is represented by two numeric symbols: 0 (zero) for off and 1 (one) for on. Because
there are only two numeric symbols, computers are said to function in base-2, which is also known as
binary system.
Each letter, number, symbols and the rest have their own equivalent to binary as well as in
decimal form. For example, A is 01000001 in binary and 65 in decimal equivalent. The word MIGUEL
is represented by:
Binary Decimal
equivalent equivalent
M 01001101 77
I 01001001 72
G 01000111 71
U 01010101 85
E 01000101 69
L 01001100 76
Note that “MIGUEL”, using uppercase letters, is different from “miguel” using lowercase letter.
Binary Decimal
equivalent equivalent
m 01101101 109
i 01101001 105
g 01100111 103
u 01110101 117
e 01100101 101
l 01101100 108
When referring to a computerized data, each switch - whether on or off - is called a bit. A bit is a
smallest possible unit of data. To represent a meaningful data, the computer needs a group of bits.
After a bit, the next larger unit of data is byte. A byte is a string of 8-bits, each representing a
single character. With string of 8 bits (1 byte), a computer can represent up to 256 different values –
from 0 to 255. The byte is an important unit because there are enough different eight-bit combinations to
represent all characters on the keyboard, including letters (uppercase / lowercase), numbers, punctuation
marks, and other symbols.
Text Codes
Lesson 5 – Data Processing of Computer 43
Early in the history of computing, programmers realized the need for a standard code – a system they
could all agree on – in which numbers stood for the letters of alphabet, punctuation marks, and other
symbols. EBCDIC, Unicode, and ASCII are three of the most popular systems that were invented.
EBCDIC (Extended Binary Coded Decimal Interchange Code) – an 8-bit code and still used in
IBM’s mainframe and mid-range system but is rarely used personal computer.
Unicode (Unicode Worldwide Character Standard) – a new system using 2 bytes to represent
each symbol. With 16-bits, Unicode character could be any one of more than 65,536 different
characters and symbols in the world, including that vast Chinese, Korean and Japanese character
set.
ASCII (American Standard Code for Information Interchange) – a 7-bit code that defines 128
symbols. This system was developed by ANSI (American National Standard Institute)
Breakdown:
0-31 Control characters
32-64 Special characters and numbers
65-90 uppercase letters
91-96 Punctuation marks and symbols
97-127 lowercase letters
128-255 Different characters sets (EXTENDED ASCII)
Lesson V: Exercise 1
Write your first name and last name downward in the boxes provided.
Using the ASCII table, write the binary equivalent of every letter of your name including spaces.