Computer Science
Computer Science
by: Ebisa B.
Definition of Computer
What is a computer?
Computer is an electronic and electro-mechanical machine that is
programmable and capable of performing the following basic
computing functions:
accept data (input)
process data
generate output (information) and
store data/information
Computer systems are designed, built and used by people for
entertainment, finance, defense, transportation, shopping, dating,
studying, etc.
N B:The success of a system is determined by the community of
people who use it.
2
Definitions of ICT
It refers to a broad field encompassing computers,
communication equipments and the services associated
with them.
It is also a contemporary term that describes the
combination of computer technology (hardware and
software) with telecommunication technology (data,
image, and voice network).
Components of ICT/IT is divided into three (3);
Computers
Communication networks
Know-how
3
Generation of Computers
The beginning of the commercial computer age began on June 14,
1951 with the delivery of UNIVAC--Universal Automatic
Computer to the U.S. Bureau of Census.
However, prior to this Charles Babbage invented the Difference
Engine and conceived of another machine called the Analytical
Engine that had all the components of the computer: input, output,
processing and storage. Babbage is called the father of computers.
There are five generations of computers
First generation (1951-1958): Vacuum tubes were used as the
internal computer components, punched cards and magnetic tapes
for storing data, and machine language for programming.
Second generation (1959-1964): Transistors replaces vacuum
tubes, assembly language and high level languages replaced
machine language, and the removable disk replaced punched cards.
4 Transistors enabled manufacturers to produce smaller computers.
Generation of Computers (cont’d)
• Third generation (1965-1970): Integrated circuits a
complete electronic circuits on a silicon chip were developed.
ICs led to the production of even smaller computers called
mini computers. Software became more sophisticated and
interactive processing possible
• Fourth generation (1971-present): The microprocessor or
computer on a chip was developed. This made PCs, and other
applications possible (calculators, banking, etc)
• Fifth generation (present and beyond): still difficult to define
since most of the technology is in its infancy - artificial
intelligence, neural systems, voice recognition - while others
are still at the experimental stage.
5
Types of computers
• Computers that occupy more physical space are more
powerful since their bigger sizes allow them to
accommodate more processors and other essential
devices.
• Computers are grouped according to physical size and
processing capabilities, accordingly there are four types
of computers. These are;
1. Supercomputer - is a computer that is at the frontline
of current processing capacity, particularly speed of
calculation. It is used for scientific and engineering
problems which are limited by processing speed and
memory size.
6
Types of computers (cont’d..)
2. Mainframe computer - are powerful computers used mainly
by large organizations for critical applications, typically bulk
data processing such as census, industry & consumer
statistics, enterprise resource planning, and
financial transaction processing.
3. Minicomputer – this is very powerful and expensive. The mini-
computers were used by mid-sized companies also known as
workstations mostly for scientific calculations.
4. Microcomputer – also called personal computer. It is the most
widely used: desktop, laptop and palmtop.
7
Computer System
A computer system is mainly composed of computer
hardware and computer software.
10
Hardware Computer (cont’d..)
II. Printer-device that is used to generate hard copy –
printed, paper materials.
Printers can be categorized in to two depending on how
images are made (impact and non-impact printers)
• Impact printers are those that make physical contact with
the paper, like traditional typewriter.
Dot Matrix printer is an example of impact printer.
• Non-impact printers use a different technology (without
physical contact with the paper) to produce prints on
hardcopy. Inkjet and Laser printers are example of non-
impact printers.
III. Speaker- are used to generate sound output.
11
Hardware Computer (cont’d..)
3. Processing Unit:-is the core component of the computer
system where the major task of processing data
(converting data into information) is carried out.
Central Processing Unit (CPU)– it is the brain of the
computer that actually converts data into information. It
manages and controls the overall functionality of the
computer.
The main components of the processing unit are three:
Arithmetic Logic Unit (ALU):-performs the
mathematical (addition, subtraction, division and
multiplication), comparison (greater than, less than,
equal), and logical (and, or, not) operation.
12
Hardware Computer (cont’d..)
Control unit (CU):-responsible for directing the system
to carryout various internal tasks, like interpreting and
executing program instructions.
Controls the electronic flow of information, fetching and
storing data and instruction from/to registers & memory.
Registers:-registers are the high-speed storage area used
by the CPU. They are used to store data temporarily and
instruction that relate to the process being executed.
13
Hardware Computer (cont’d..)
4. Storage Devices
Storage devices are grouped into two; primary and secondary
A. Primary Storage Devices (RAM & ROM)
Memory is an internal primary data storage device that is used
by the computer system.
Internal memory stores:
Whole or part of the program under execution
Data that is being processed
Operating system that is used to manage the operation of
the computer
There are two major types of memory; they are
Read Only Memory (ROM) and
Random Access Memory (RAM).
14
Primary Storages (cont’d)
1. ROM provides start-up instruction when the computer starts.
Information stored in ROM is written only once by the
manufacturer and cannot be changed by the user.
It can be read, but not modified in any way other than replacing the
memory chips themselves.
The ROM on the computer's motherboard contains instructions that
tell the machine how to execute the "boot process".
ROM is not volatile; data stored there are kept permanently.
2. RAM -is a temporary /volatile memory space used to store data and
instructions by the computer while performing operations. Data
stored in RAM exists as long as power is on.
The performance of memory (RAM) is by the amount of bits it can
store and speed at which data can be accessed from the memory.
15
B. Secondary /External storage Devices
are internal or external storage devices that are used to store
programs and user data for later access.
Why Secondary Storage?
Convenience: data stored on a secondary storage can be accessed
at a latter time, unlike primary storage which stores data
temporarily
Economical: secondary storage media is less expensive and
hence users can store vast amount data that can be accessed at a
latter stage
Reliability: data on a secondary storage is usually physically safe
There are three major categories of storage devices; these are:
16
Secondary Storage Devices (cont’d)
1. Magnetic Tape
Magnetic tapes are made of thin plastic material coated
with magnetic coding.
Magnetic tapes look like an audiocassette and used to
store data.
Data is expressed in terms of density, the number of
(bytes) or characters per inch
Sequential data storage and access
Very slow read/write operation
Example: Tape Cartridge
1
7
Secondary Storage Devices (cont’d)
2. Magnetic Disk
Magnetic disk is made of thin metal (for hard disks) or plastic (for
floppy disks) platter coated with magnetic oxide.
Disk performances can be measured in terms of data access time
and data transfer rate
Magnetic disks have fast read/write operation
3. Optical disks: optical disks are newly introduced and
technologically developing storage devices that use laser technology
for writing/reading data to/from optical spots on disks.
Examples are: Compact Disk (CD), CD-ROM, CD-R/W (Read and
write), Digital Video (Versatile) disks – DVD,
Note: Data and instructions are moved around inside the computer
by means of a bus. The bus carries the data between RAM and the
1 CPU as well as within the CPU itself.
8
Communication Hardware
This are the hardware used for communication
purposes.
Eg: Network interface card (NIC), modem, router,
switch, etc.
19
Computer Software
In order to process data, a computer requires instructions.
These instructions are called software.
Software is a program or a set of programs, which is loaded
and run by a computer system.
Software generally remains in storage (on a hard disk) until
the computer needs to use it, the computer then loads the
software into memory, where it can access the software much
more quickly than when it is in storage.
Computer software is categorized into two: system and
application software.
20
Computer Software (cont’d…)
I. Application Software
Application software is designed to assist users in
completing a specific task.
It makes a computer one of the most versatile tools
available;
Allowing the user to write letters and books,
Draw pictures,
Manipulate numbers,
Access data from all over the world,
Play games alone or with others and much more.
21
II. System Software
System software is the essential software to a computer.
It performs all the basic operations of the computer, such as input and
output, as well as allocating resources such as RAM, storage,
processing, etc. Typical system software is operating system software.
Operating systems / operating software is a program or a set of
programs that serves as an Interface between the users, application
programs and the hardware of a computer system.
Operating System (OS) is the basic software that controls a computer.
It coordinates and manipulates computer hardware, such as computer
memory, printers, disks, keyboard, mouse, and monitor; it organizes
files on a variety of storage media, such as floppy disk, hard drive,
compact disc, digital video disc, and tape; and it manages hardware
errors and the loss of data.
Operating systems control different (all) computer processes.
22
Types of Operating System
Based on the interface provided by the operating system
1. Command Line Interface (CLI) - users have to enter instruction
one by one using the keyboard.
Example: Microsoft Disk Operating System – MS-DOS
25
Characteristics of Computer (cont’d)
Automation: once a program is done, individual instructions
are transferred one after the other to control unit
of execution.
Diligence: computer doesn’t suffer from human traits.
Reliability: computer can perform different complex tasks in
much more reliable way.
Using computers is much more convenient
than the manual operations.
Flexibility: computer perform different tasks at a time
(multipurpose).
Communication: easy to communicate using computer
technology through e-mail, website, etc.
26
Importance of Computer
Making learning more interesting especially for hard-to-
understand issues
Bridging distances – e.g. using e-mails, phone, video
conferencing etc.
Breaking literacy barriers in communication – e.g using
video and radio.
Research and information sharing – e.g. using Internet
Access information on jobs/internships.
Creation of new employment opportunities.
27
Importance of Computer
Enhance interaction with peers over long distances.
28
Data Processing
It involves the selection and combination of facts in
Verification
Validation
Sorting
Merging
Computing
Comparing
Updating, etc…
30
Information Processing
Information processing includes all those activities
31
Information Processing
Information Processing involves 4 stages;
o Information acquisition,
o Organization /integration,
o Utilization, and
o Evaluation from different sources.
The following can be used in information processing
Word processing: creation of text-based documents
34
Data Representation (cont’d)
The smallest unit is the bit.
A bit is a single element in the computer or on a disc, that
is either "ON" (1) or "OFF"(0).
Combination of 0’s and 1’s (bit) in-groups of 8 forms one
byte.
Practically one byte is the space needed to store a
character (a single letter, a number, or symbols such as +,
space, ~, etc).
35
Data Representation (cont’d)
Bit is the smallest storage unit.
For this reason we use;
Kilobytes (KB),
Megabytes (MB) and
Gigabytes (GB)
8 bit 1 byte 1 character
1 KB 210 bytes ~ 1,024 bytes
1 MB 220bytes ~ 1,048.546 bytes
1GB 230 bytes ~ 1,073,741,824 byte
36
Coding Schemes of Data
There are usually 8 bits in a byte.
Computer interpret words, statements and paragraphs formed by
these characters as a string or combination of bytes.
Octal Number System
The octal number system consists of eight digits (0 to 7).
All octal numbers are represented using these eight digits. For
example, 273, 103, 2375, etc.
The position value and quantity of a digit at different positions in a
number are as follows;
Position: 3 2 1 0 . –1 –2 –3
Position Value: 83 82 81 80 8–1 8–2 8–3
Quantity: 512 64 8 1 1/8 1/64 1/51 2
37
Hexadecimal Number System
The hexadecimal number system consists of ten digits (0
to 9) and (A-F).
The position value and quantity of a digit at different
positions in a number are as follows;
Position: 3 2 1 0 . –1 –2 –3
Position Value: 163 162 161 160 16–1 16–2 16–3
Quantity: 4096 256 16 1 1/16 1/256 1/4096
38
Hexadecimal Number System
Base Digits Largest Digits
Binary 2 0,1 1
Octal 8 0-7 7
Decimal 10 0-9 9
39
Course Status
Section one ends here;
40