Chapter 1
Chapter 1
Module 1
Methodist Boys School Kuala Lumpur
Teacher: _______________
Date: __________
MODULE 1
DATA PROCESSING
1.1 INFORMATION PROCESSING CYCLE
Do you know how a computer works? We use the computer in our everyday lives but
not all of us know how this machine operates.
Human uses the brain to think, make decisions and process information. A computer
has a brain too, and the brain of a computer is the processor or the central processing
unit (CPU) that processes information.
Central Processing Unit (CPU) is the main part of the computer, which
executes the instruction given by the program. A
microprocessor will process data into information.
All processing activities are done in the CPU. It
utilises the computer memory to execute instructions
from the application software and accomplish a task.
For example: editing a letter, drawing a picture and
sorting numbers.
Module 1
Page - 1
Module 1
Methodist Boys School Kuala Lumpur
The processor must be connected to input devices, output devices and storage
devices to carry out the above mentioned tasks.
Audio is music, speech or any other sound. Video consists of images that provide
the appearance of full motion.
Module 1
Page - 2
Module 1
Methodist Boys School Kuala Lumpur
A storage medium, also called secondary storage is the physical material in the
computer that keeps data, instruction and information. A storage device is the
computer hardware that records or retrieves items to and from storage media.
Data is raw unprocessed that are inputs to a computer system that will give
compiled information where the computer processes those facts.
Data processing is any process that uses a computer program to enter data and
summarise, analyse or otherwise convert data into usable information. The
process may be automated and run on a computer.
Module 1
Page - 3
Module 1
Methodist Boys School Kuala Lumpur
CPU
-
consists of 3 components:
1. Control Unit can be thought of as the brain of the CPU itself. It controls based
on the instructions it decodes, how other parts of the CPU and in turn, rest of the
computer systems should work in order that the instruction gets executed in a
correct manner.
Module 1
Page - 4
Module 1
Methodist Boys School Kuala Lumpur
2. Registers
normally measured by the number of bits they can hold, for example, an
"8-bit register" or a "32-bit register"
Categories:
Module 1
Page - 5
Module 1
Methodist Boys School Kuala Lumpur
3.
The ALU can only do one thing at a time but can work extremely fast.
MAIN MEMORY
-
stores the commands that the CPU executes and the results
is where the computer stores the data and commands that are currently being
used
When the computer is turned off, all data in Main Memory vanishes
1. Operating system
Some common operating systems are various versions of Windows, Windows
XP, Windows 2003, Windows 2007, OS/2. When you turn on power to a
computer, certain operating system files (such as the files that determine how the
Windows Vista desktop appears) load into RAM from a storage device such as
hard disk.
Module 1
Page - 6
Module 1
Methodist Boys School Kuala Lumpur
2. Applications
These are various programs that are currently running on the computer. For
example, Microsoft Word, Internet Explorer, etc.
we can run more than one applications once using a computer- this is called
multi-tasking.
each running application has to have some data stored in Main Memory, even
if the application is on rest break. Some programs (especially graphics
programs) require a lot of the Main Memory space
3.
When you enter new data, the keystrokes must be stored until the computer
can do something with the new data.
When you want data printed out or displayed, it must be stored somewhere
handy first.
4. Working Storage
To store the numbers and characters that are the intermediate results of
computer operations until the final values are calculated. These values "in
progress" are kept in temporary locations.
Module 1
Page - 7
Module 1
Methodist Boys School Kuala Lumpur
5. Unused Storage
If space runs out in Main Memory, the computer will crash, that is, stop
working.
The CPU can fetch one piece of data in one machine cycle.
It takes numerous cycles to do even a simple addition of two numbers.
Module 1
Page - 8
Module 1
Methodist Boys School Kuala Lumpur
Action
Meaning
Fetch
Decode
Execute
E.g. = 4800
BINARY DIGIT
Computers recognize only two discrete states:
on and off. These states can be represented by
two digits, 0 and 1. Each 0 or 1 is called a bit in
the binary system.
Module 1
Page - 9
Module 1
Methodist Boys School Kuala Lumpur
BIT
A bit is the smallest unit of data that the computer can
process. Bit is a short for binary digit. A bit is
represented by the numbers 1 and 0. These numbers
represent the binary system. They correspond to the
states of on and off, true and false, or yes and no.
All digital data use the binary system to process the information. This information
include letters, digits or special character.
BYTE
Byte is a unit of information built from bits. One byte is equals to 8 bits. Eight bits that
are grouped together as a unit. A byte provides enough different combinations of 0s and
1s to represent 256 individual characters.
One byte represents a single character such as the number 3, letter b
or a $ symbol. Bits and bytes are the basis for representing all meaningful information
and programs on computers.
CHARACTER
8 bits = 1 byte
One byte represents one character such as A, 7, 9 and +.Eight bits that are grouped
together as a unit. A byte provides enough different combinations of 0s and 1s to
represent 256 individual characters.
Module 1
Page - 10
Module 1
Methodist Boys School Kuala Lumpur
For example, the capital letter F is represented by the binary code 01000110 that can
be understood by the computer system. Eight bits grouped together as a unit are called
a byte. A byte represents a single character in the computer.
For example,
11810 in binary is 1 110 1102
(ii)
Remainder
118
------------ 0
59
------------ 1
29
------------ 1
14
------------ 0
------------ 1
------------ 1
------------ 1
Module 1
Page - 11
Module 1
Methodist Boys School Kuala Lumpur
Data Measurement
KILOBYTE (KB)
20 = 1
21 = 2
22 = 4
23 = 8
24 = 16
1 KB = 210 bytes
25 = 32
26 = 64
27 = 128
28 = 256
29 = 512
210 = 1024
Module 1
Page - 12
Module 1
Methodist Boys School Kuala Lumpur
MEGABYTE (MB)
1 MB = 1 048 576 bytes or it can be said as:
1 MB = 220 bytes
GIGABYTE (GB)
1 GB = 1 073 741 824 bytes or it can be said as:
1 GB = 230 bytes
TERABYTE (TB)
1 TB = 1 099 511 627 776 bytes or it can be said as:
1 TB = 240 bytes
SI prefixes/Metric prefixes
1.
2.
Module 1
Capacity Measurement
a. 1 Terabyte
= 1 1012
bytes
b. 1 Gigabyte
= 1 109
bytes
c. 1 Megabyte
= 1 106
bytes
d. 1 Kilobyte
= 1 103
bytes
a. 1 milisecond
= 1 10-3
second
b. 1 microsecond
= 1 10-6
second
c. 1 nanosecond
= 1 10-9
second
d. 1 picosecond
= 1 10-12
second
Speed Measurement
Page - 13
Module 1
Methodist Boys School Kuala Lumpur
Computers use binary codes to communicate. One of the widely used binary codes is
the American Standard Code for Information Interchange (ASCII).
Module 1
Page - 14
Module 1
Methodist Boys School Kuala Lumpur
CHARACTER CODES
There are three character codes to represent characters
which are ASCII, EBCDIC and Unicode. Each byte contains
eight bits. A byte provides enough different combination of 0s
and 1s to represent 256 characters.
The combinations of 0s and 1s are defined by patterns. These patterns are called
coding scheme. The 256-character capability of ASCII and EBCDIC is too small to
Module 1
Page - 15
Module 1
Methodist Boys School Kuala Lumpur
handle the characters that are used by other languages such as Arabic, Japanese and
Chinese.
The Unicode coding scheme is designed to solve this problem. It uses two bytes (16
bits) to represent one character. Unicode will have more than 65,000 different
characters. This can cover all the worlds languages.
WHAT IS ASCII?
ASCII pronounced as "ask-key" stands for the American Standard Code for Information
Interchange and was proposed by ASA (American Standard Association) in 963 and
was finalised in 1968.ASCII is a standard of 7-bit code used to represent characters,
which include letters, numbers and punctuation marks.
7 bits allow the computer to encode a total of 128 characters for the numbers 0-9,
uppercase and lowercase letters A-Z and a few punctuation symbols. However this 128
bit code only suitable for english language speaking users.
IBM and Apple expanded the amount of space reserved for the character codes to 8bits, equivalent to 1 byte.
Module 1
Page - 16
Module 1
Methodist Boys School Kuala Lumpur
FUNCTIONS OF ASCII
ASCII was established to achieve compatibility
between various types of data processing equipment
making it possible for the components to
communicate with each other successfully.
ASCII makes it possible for humans to interact with a computer. It also enables users to
purchase components that are compatible with their computer configurations.
Module 1
Page - 17
Module 1
Methodist Boys School Kuala Lumpur
ASCII Codes
Binary
Character
Binary
Character
100 0001
100 1110
100 0010
100 1111
100 0011
101 0000
100 0100
101 0001
100 0101
101 0010
100 0110
101 0011
100 0111
101 0100
100 1000
101 0101
100 1001
101 0110
100 1010
101 0111
100 1011
101 1000
100 1100
101 1001
100 1101
101 1010
Example:
BAD: 100 0010 100 0001 100 010
Module 1
Page - 18
Exercise
1.
Action
Meaning
Give an example
1.
2.
3.
4.
19
2.
Write out the exact number of bytes, in terms of the power of 2, for the
following:
a) 1 KB = ______________ bytes
b) 1 MB = ______________ bytes
c) 1 GB = ______________ bytes
d) 1 TB = ______________ bytes
3.
bytes
= ____________________
b. 1 10-12
second
= ____________________
c. 1 1012
bytes
= ____________________
d. 1 10-6
second
= ____________________
e. 1 10-3
second
= ____________________
f. 1 103
bytes
= ____________________
g. 1 109
bytes
= ____________________
e. 1 10-9
second
= ____________________
20
4.
Character
Binary
Character
PROJECT 1:
a) Explain the machine cycle.
b) Compare the different types of network.
21
5.
NO
STATEMENT
10
22
TRUE
FALSE