Chapter One Lecture Note - PDF FF
Chapter One Lecture Note - PDF FF
Chapter One Lecture Note - PDF FF
Introduction to Computer
What is a computer?
A. Computer Hardware
A Computer Hardware is the physical equipment of the
computer you see, you use to and the parts you can touch.
How a computer operates:
• It takes input(in various forms)
• Process it (according to a given set of
instructions) and produce an output (in required
form).
The different hardware parts of a computer which are responsible
for these operations are illustrated by the following model.
1
Compiled by Daniel k
The Central Processing Unit (CPU)
• The CPU is the collection of electronic circuits made up of
millions of transistors placed onto integrated circuits.
• Integrated circuits are also called chips or microchips.
• Each transistor is an electrical switch that can be in one of
two states “on” or “off”
• It is the part of a computer hardware that executes program
instructions.
• Is the most costly and main component of the computer system;
• Consists of the Control Unit & the Arithmetic Logic Unit and
main memory;
2
Compiled by Daniel k
The Arithmetic Logical Unit (ALU)
o Is the other component of the CPU which contains the electronic
circuitry that performs the two activities that underline all
computing capabilities -arithmetic operations and logical
operations and controls the speed of those operations.
Registers
• Special high-speed circuitry areas that temporarily store data
during processing and provide working areas for computation
• Registers are contained in the processor and hold material to
be processed immediately. Main memory, which is outside the
processor, holds material that will be used "a little bit later.
• Data and program instructions are loaded from main memory into
the registers just before processing
• When an instruction is loaded from main memory, it is placed
first in the register to wait instructions from the control
unit.
• Data are also stored in registers prior to execution in the ALU.
Memory
• Is also called as primary storage, main memory or internal memory
is physically located close to the CPU (to decrease access time).
• Is separate from the CPU.
• Memory provides the CPU with a working storage area for program
instructions and data. The chief feature of memory is that it
rapidly provides the data and instructions to the CPU
Input Unit
• It is the unit used to enter data into the computer so
that it can be processed.
• It converts information from a form suitable to human
beings to one understandable by the computer.
• Example: pointing devices, game controllers, keyboards,
scanners, cameras, microphones and etc.
3
Compiled by Daniel k
• Used to get data out of a computer so that it can be
examined, analyzed or distributed to others.
• Convert the result of the only-machine understandable form
to a form understandable by human beings
• Hard disk and floppy disk are a special type of input and
output devices.
B. Computer Software
Software - a collection of programs and routines that support
the operations of performing a task using a computer.
The computer software is divided into two major categories:
1) System software and
2) Application software
1) System software:
• The system software handles the computer hardware so that the
user can operate the computer with little knowledge about the
computer hardware.
• It organizes and manages the machine’s resources, handles the
input/output devices.
• System programs make complex hardware more user friendly.
• It acts as intermediate between the user and the hardware.
4
Compiled by Daniel k
The important categories of system software are:
i) Operating system
ii) Language software
i) Operating system:
Evolution of OS:
1. Single-tasking processing – only one job at a time. The
computer runs a single program at a time while processing data
in groups or batches. E.g. Dos
5
Compiled by Daniel k
• It is software which is used by programmers to develop application
software and translate programs to machine code.
• A generic name consisting of various programs that serve as editors
& translators to develop programs in a number of programming
languages.
• There are different types of language software and each of them
briefly discussed in the following sections:-
1. Machine Language (Low-level language)
Machine language uses machine codes (strings of binary digits) to
write Computer programs.
Each computer design has its own unique machine codes
Advantages:
More powerful in utilizing resources of the computer
Machine languages allow the programmer to interact directly
with the hardware, and it can be executed by the computer
without the need for a translator.
Disadvantage:
Difficult to write applications with
Prone to errors
Difficult to correct or modify errors
Machine dependent
Require a high level of programming skill
2. Assembly language
.
Advantages:
Easier to learn
Fewer errors are made
6
Compiled by Daniel k
Easier to locate and correct errors
Example ADD A, B
This adds two numbers in memory location A and B
Disadvantages:
Coding is time consuming
Machine-oriented program.
It is not directly executable by the computer. It needs
assembler to translate it into machine codes
Disadvantage
Require more time to run and more computer memory space
Cannot access all components of the computer hardware such computer
accessories. In that case we have to use lower level languages
They require additional time during translation
They are less efficient compared to the machine code languages.
2) Application software
8
Compiled by Daniel k