HU - Computer Application Module (ICS) - NEW
HU - Computer Application Module (ICS) - NEW
Dayye Campus
2022 E.C
Dayye Campus
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
Contents
Chapter One....................................................................................................................................................1
Introduction to computer................................................................................................................................1
1.1. Overview of Computer and Information Technology......................................................................1
1.2. History and Generations of computer..............................................................................................2
1.3. Characteristics of computer.............................................................................................................2
1.4. Computers Vs Human beings..........................................................................................................3
1.5. Classification of Computers.............................................................................................................4
1.6. Limitation of computers...................................................................................................................6
1.7. Application of Computer.................................................................................................................7
Chapter Two...................................................................................................................................................9
Organization of Computer Systems................................................................................................................9
2.1. Computer Systems...........................................................................................................................9
2.2. Components of Computer Systems..................................................................................................9
2.2.1. Hardware Components of Computer......................................................................................10
2.2.2. Computer Software Components............................................................................................23
Chapter Three...............................................................................................................................................28
Data Representation in Computer System....................................................................................................28
3.1. Data Representation in Computer..................................................................................................28
3.2. Numbering System.........................................................................................................................28
3.3. Converting from One Number System to Another........................................................................30
3.3.1. Converting from another Base to Decimal (base 10).............................................................30
3.3.2. Converting from Decimal to another Base (Division Remainder Technique).......................30
3.3.3. Converting a Decimal Fraction to a fractional in base B........................................................31
3.3.4. Conversion of non-decimal base to another non-decimal base..............................................31
3.4. Computer Coding System..............................................................................................................32
Chapter - Four...............................................................................................................................................35
Data Communication and Computer Network.............................................................................................35
4.1. Data communication Basics...........................................................................................................35
4.2. Data Transmission Channels..........................................................................................................36
4.3. Modes of data transmission............................................................................................................36
4.4. Computer Network.........................................................................................................................37
4.4.1. Benefit of a Computer Network.............................................................................................38
4.4.2. Types of computer Networks..................................................................................................39
4.4.3. Computer Network Configuration..........................................................................................41
4.4.4. Network Topologies...............................................................................................................43
Chapter One
Introduction to computer
1.1. Overview of Computer and Information Technology
A computer is an electronic machine, operating under the control of instructions stored in its own
memory that can accept data, manipulate the data according to specified rules, produce results, and store
the results for future use. Computers process data to create information.
Data- is a collection of facts, unprocessed datum. It cannot give a meaning by itself. When symbols
(numbers, pictures, figures etc.) are represented based on a certain rules and standards, it forms data. Data
is an input for information system.
Information-is a processed data that has a meaning to its users. It is informative about something.
Information needs cognitive states of its users i.e. demands awareness of data.
Data Computer Information
Principal areas of study within Computer Science include artificial intelligence, computer systems and
networks, security, database systems, human computer interaction, vision and graphics, numerical
analysis, programming languages, software engineering, bioinformatics and theory of computing.
Although knowing how to program is essential to the study of computer science, it is only one element of
the field. Computer scientists design and analyze algorithms to solve programs and study the performance
of computer hardware and software. The problems that computer scientists encounter range from the
abstract-- determining what problems can be solved with computers and the complexity of the algorithms
that solve them – to the tangible – designing applications that perform well on handheld devices, that are
easy to use, and that uphold security measures.
encompasses all forms of technology to create, store, exchange information (such as business data, video,
audio, images, motion pictures, etc.) with high-speed communications links.
Assignment 1:- Write the major technologies and changes take place in each
generation history of computers.
than human beings in performing voluminous and repetitive jobs and can work for hours without
creating any error and without grumbling.
Versatility: - Computers are versatile machines and are capable of performing any task as long as it
can be broken down into a series of logical steps. The presence of computers can be seen in almost
every sphere – Railway/Air reservation, Banks, Hotels, Weather forecasting and many more.
Automatic: - Once necessary information and program is fed, the computer performs processing
without human intervention.
Storage capacity: - Today’s computers can store large volumes of data. A piece of information once
recorded (or stored) in the computer, can never be forgotten and can be retrieved almost
instantaneously. And the time it took to retrieve or process single information is not more than a
micro or nanoseconds.
Power of Remembering: - A computer can store and recall huge amount of information because of
its secondary storage capability.
No I.Q:- A computer is not a magical device. It can only perform tasks that a human being can. The
difference is that it performs these tasks with unthinkable speed and accuracy. It possesses no
intelligence of its own. Its I.Q. is zero. It has to be told what to do and in what sequence. Hence, only
the user can determine what tasks a computer will perform.
No Feelings:- Computers are devoid of emotion. They have no feelings and no instincts because
they are machines. Computers cannot make judgments on their own. Their judgment is based on the
instructions given to them in the form of programs that are written by us.
In general a computer has a capacity to store a very large amount of information in organized manner so
that accessing information is very fast.
“Human can do anything computer can do but a computer cannot do everything a human can do” is a true
statement based on the following table.
Based on the type of data they process computers can be classified as:
Analog computers
Digital computers
Hybrid computers
Analog
Computers that use analog signals for calculating and transmitting data are called Analog computers. It
can be defined as “A device that operates on data in the form of continuously varying physical quantities”.
They deal with continuous variables; they don’t compete directly with numbers. The values of the analog
signals are continuously changing with states in between high and low. Analog data is calculated using
the concept of “measuring values” like magnitude in terms of voltage, length, current, pressure, and
temperature. The analog data is transmitted in a continuous form that closely resembles the information it
represents. Electrical signals on a telephone line are nothing but analog data representing the original
voice.
They are special purpose computers. However, they have limited accuracy
Examples: Thermometer, Slide ruler, Voltmeter, Speedometer, Gasoline pomp etc.
Digital
The computers that use digital signals to calculate and transmit data are called Digital Computers. The
word digital is derived from the word “digit”. The word digit simply means numeral. Digital computers
deal with discrete variables; they operate by counting rather than measuring. They operate directly up on
numbers (or digits) that represent numbers, letters, or other special symbols. The digital signal has only
two states in which it can be represented. They are ON and OFF or HIGH and LOW or 1 and 0. Digital
data is calculated using the concept of “counting values”. The result obtained from the digital computer is
more accurate when compared to the analog computers. They are general purpose computers.
Examples: Abacus, Desk & pocket calculators
Course Module: Introduction to Computer Science/Computer Application Page 4
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
Hybrid
Hybrid computers inherit the best features of both analog and digital computers. Usually the Input is
continuous data (analog). Since Digital Processing is more accurate, processing takes place digitally. The
processed information – the output – could be either digital or analog, depending on the user preference or
the type of application.
Examples: digital camera, health monitoring machines in some hospitals,
2. Based on Size, Capacity and price
Size and capacity are also the other characteristics of computers that can be used to categorize computers.
Based on these characteristics computers can be classified as:
Super computer
The term supercomputer has been coined to describe a category of extremely powerful computer designed
for high-speed processing. They are the largest, fastest, most expensive and very powerful computers
available when compared to the types of computers discussed earlier. They occupy specially designed air-
conditioned rooms and are often used for research and to process complex scientific applications like
space technology centers (meteorology stations, astronomical observatories, inter-continental
communications, airline organizations, aircraft design), weather forecasting, oil exploration, mathematical
research etc. Unlike microcomputers, which generally have only one CPU, super computers have
hundreds of processors. CRAY-I and CYBER is typical example of super computer.
Generally, Supercomputers are:
The largest and the most efficient computers
Very expensive and very fast
Supports hundreds of users at different locations
Mainframe computer
Mainframe computers are more powerful in processing, faster in speed, have large memory, and very
expensive when compared to the micro and mini computers. The word mainframe refers to mean the
“Central Processor”. Their size varies depending on how many concurrent users they are serving – from
a few hundreds to thousands when used in networks and has the capacity to support many powerful
peripheral devices. Mainframe computers are used by multinational companies or by companies have
many branches all over the country like banks, airlines, insurance, etc.
Mini computer
Minicomputers are midrange computers that are larger and more powerful than most microcomputers but
are smaller and less powerful than mainframe computer systems. Minicomputers are being used for a large
number of business and scientific applications. They are popularly used in scientific laboratories, research
centers, universities and colleges, engineering firms, industrial process monitoring and control, etc.
Minicomputers can be used for general purpose applications and as a server for small networks.
Minicomputers use large hard-disk units as online secondary storage. They support many users.
Micro computers
Microcomputers are the smallest category of computer and also called as Personal Computers (PCs).
Since they are designed to be used by a single user, they have the least capacity as compared to the other
types of computers. They are also the least expensive of all types. These computers that can either fit next
Course Module: Introduction to Computer Science/Computer Application Page 5
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
to a desk (called the Desktop) or can be carried around (called the Laptop and Notebook).
Microcomputers use microprocessor as its important device. Microprocessor is a chip used to perform
arithmetic and logical operations. These computers can be used either as a standalone machine or
connected to a network. Microcomputers are used for general purpose business applications such as
invoicing, accounting etc.
Example:
The public telephone boxes
Traffic control system
Ticket machines (used in grocery, super market etc.)
Pocket-calculators etc.
Most analog computers are special purpose computers.
Special purpose computers:
Designed to perform one specific task
Instructions is built into, or permanently stored in the machine
Specialization results in the given task being performed very quickly and efficiently
It is inflexible and cannot be easily used to perform other operations.
Past, it was expensive.
2. General purpose computers
They are designed to solve variety of problems (purposes) through the use of “store program concept”.
A program or set of instructions designed to solve a problem is read and stored into the memory and
then executed by the computer one by one. The same computer can be applied to solve another set of
problem using different program. General computers are more flexible and versatile. For example, the
personal computers (PCs) currently in wide use are general-purpose computers.
A general-purpose computer is one that has the ability to store different programs of
instructions
Performs a variety of operations
It is designed to do a wide variety of jobs rather than perform a specific activity.
It is also called personal computers (PC’s)
Unlike human beings, computers are incapable to: Think, Create, Judge and Motivated
To store and process large amount of information with high speed and accuracy;
To transmit information across continents via communication channels;
To perform complex mathematical computations and make comparisons;
To perform repetitive process with great ease, speed and reliability;
For research purposes;
For diagnostic purposes;
For weather forecasts etc.
c. Computers in education
For instruction and administration purpose.
Can guide a user through a course of instruction.
Can guide /provide instruction and ask questions of the user.
CAE (Computer Assisted Education), online teaching, training, conferencing, and distance
learning are good examples of computer applications in the fields of education.
d. Computers in Medicine
Used as an aid to medical research by analyzing data produced from the trial of drugs.
Used as an aid for diagnosis.
Used to hold details of patients (to maintain detailed records of the medical history of
patients)
Medical imaging is the process of creating a picture of the inside of a human (or animal)
body. Ex X-rays
e. Computers in manufacturing
Stock and production control
Engineering design
Design, manufacturing and testing processes are all in computerized.
f. Computers in Biology
Biological simulations, like molecular scale the design of therapeutic drugs, predictions of
protein structure or microscopic exercises
Collection and analysis of biological data
Bioinformatics: It involves using computers in the analysis of DNA, RNA and protein
sequences. It is part of a larger field of biology called Computational Biology.
Implantable device that is mainly used for tasks like monitoring the body’s activities or
inducing therapeutic effects, all at the molecular or cellular level.
Review questions
1. Define the term computer and IT.
2. Differentiate computer generations based on the characteristics.
3. State types of computers.
4. List and explain the computer characteristics.
5. What are the applications of your mobile?
6. What are the applications areas of computers?
7. List some limitations of computers.
Chapter Two
Organization of Computer Systems
2.1. Computer Systems
In general, a system is a group of components that work together in coordination to achieve a common
goal.
Hardware is the physical component of the computer system that we can see, touch and sense. It includes
devices the computer system uses to interact with the external world, to process and store the data it has
received.
Software on the other hand, is the set of instructions that tell the hardware how to perform a task. Without
software, the hardware is useless.
Ü If hardware is the 'heart' of a computer system, then software is its 'soul'. Both are complimentary
to each other.
E.g. Common computer hardware components include a keyboard, mouse, microphone, scanner, Web
cam, printer, monitor, speakers, system unit, hard disk drive, external hard disk, optical disc drive(s), USB
flash drive, card reader/writer, memory cards, and modem.
Peripheral Devices: A peripheral device is any computer hardware (external) that is plugged /connected
into the computer. Input, output and storage devices can be considered as peripheral devices.
Keyboard
A computer keyboard is a peripheral modeled after the typewriter keyboard. Keyboards are designed for
the input of text and characters and also to control the operation of a computer. computer keyboards are an
arrangement of rectangular or near-rectangular buttons, or "keys". Keyboards typically have characters
engraved or printed on the keys; in most cases, each press of a key corresponds to a single written symbol.
However, to produce some symbols requires pressing and holding several keys simultaneously or in
sequence
The keys on the keyboard are grouped according to their functions as follows:
No Keys Description
1 Alphanumeric keys These keys include the letter keys (A-Z) and digit keys (0-9) which
(Typing Keys) generally give same layout as that of typewriters.
2 Numeric Keypad It is used to enter numeric data or cursor movement. Generally, it
consists of a set of 17 keys that are laid out in the same
configuration used by most adding machines and calculators.
These keys work with the special key called NumLock – located at
the left-top corner of the numeric keypad. when NumLock is on, the
numeric keypad is used to enter digits and arithmetic operators.
However, when NumLock is off, the numeric keypad is used as
cursor movement keys.
3 Function Keys The group of keys found at the top of keyboard labeled from F1 to
F12. These keys execute different commands based on the
applications that are running.
4 Cursor movement The Cursor, also called the insertion point, is the symbol on the
or Navigation keys display screen that shows where data may be entered next. The
cursor movement keys, or arrow keys, are used to move the cursor
around the text on the screen. These keys move the cursor left, right,
up or down. The keys labeled Page Up and Page Down move the
cursor, the equivalent of one page, up or down on the screen.
Similarly, the keys labeled Home and End move the cursor to the
beginning and end of the same line respectively.
5 Special Keys Keyboard also contains some special purpose keys such as Shift, Alt,
Caps Lock, Ctrl,Fn, Windows, Num Lock, and Print Screen. Special
keys are keys that are used to execute some commands. They also
Course Module: Introduction to Computer Science/Computer Application Page 12
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
Mouse
Mouse is a hand-held device connected to a computer by a cable. a device that is rolled about on a desktop
to direct a pointer on the computer’s display screen.
Fig. Mouse
As you move the mouse, the cursor or pointer on the screen moves in the same direction. Mouse usually
contain two or sometimes three buttons having different functions.
Primary button (Left button)
Secondary button (Right Button)
Scroll button
The following operations can be performed using the mouse.
Selection (Single click)
Giving Commands (Double click)
Dragging Objects (By pressing mouse button and moving the mouse)
Dropping Objects (By releasing mouse button)
Scanner
Scanner is an input device which works more like a photocopy machine. It is used when some information
is available on a paper and it is to be transferred to the hard copy of the computer for further manipulation.
Scanner captures images from the source which are then converted into the digital form that can be stored
on the disc. These images can be edited before they are printed.
Fig. Scanner
Joystick
Joystick is a pointing device that consists of a vertical handle mounted on a base containing one or two
buttons. The vertical handle of the joystick can be rotated around 360 degrees. As the handle is rotated
the cursor also moves on the screen. It is mainly used in Computer Aided Designing (CAD) and computer
games industry.
Joystick
Microphone
The word "microphone" (Greek mikros "small" and phone "voice" or "sound") originally referred to a
mechanical hearing aid for small sounds. Therefore, microphones have a great role in inputting sound or
voice data into the computer for processing. Without the microphone computers could not have produced
any sound nor could they have been used to manipulate music and sound.
Microphone
Touch screen
Touch screens or touch panels or touch screen panels are display overlays which have the ability to
display and receive information on the same screen. The effect of such overlays allows a display to be
used as an input device, removing the keyboard and/or the mouse as the primary input device for
interacting with the display's content.
Track ball
Track Ball is another pointing device and a variant of the mouse. It contains a rotating ball on top of the
stationery device. On rotating the ball, the cursor moves on the screen. The track ball contains two
buttons and the operations are as similar for the mouse. It requires less desk space when compared to the
mouse.
Track ball
Light pen
Light pen is a pointing device which is similar to a pen. It is used to select a displayed menu item or draw
pictures on the monitor screen. It consists of a photocell and an optical system placed in a small tube.
When the tip of a light pen is moved over the monitor screen and pen button is pressed, its photocell
sensing element detects the screen location and sends the corresponding signal to the CPU.
Light pen
Digital Stills Cameras capture an image which is stored in memory within the camera. When the memory
is full it can be erased and further images captured. The digital images can then be downloaded from the
camera to a computer where they can be displayed, manipulated or printed.
A digital camera
CPU
One of the basic features of a computer that affects its entire performance is the CPU speed. CPU speed is
measured in Hertz (Hz).
Arithmetic Logic Unit (ALU): The purpose of ALU is to execute instruction. It performs two operations:
Arithmetic operation
Logic Operation
Arithmetic operation: this includes mathematical operations like addition, subtraction,
multiplication, division, etc. If you give your computer the instruction 2+3, this will be included in
arithmetic operation and it is executed by Arithmetic Unit.
Logical Operation: this is concerned with the comparison of data and it is called logical
operation. It includes operators like less than, greater than, equal to, less or equal to, greater or
equal to, different from, etc. e.g. if mark>80, grade is 'A'.
Memory (Register) -is the memory found in CPU which store intermediate results of ALU. It is small
high-speed memory which is used to store temporary results and control information.
start. Similarly, the results produced by the computer after processing must also be kept somewhere
inside the computer system before those can be passed onto the output units. Moreover, the intermediate
results produced by the computer must also be preserved for ongoing processing.
In short, the specific functions of the storage unit are to store the following:
All data and instructions to be processed
Intermediate results of processing, and
Final results before sending them to output devices
Data can be stored on different storage media temporarily or permanently. Storage devices can be
categorized as:
1. Primary storage device
2. Secondary storage device
As the name refers, information can be only read from the ROM. The information is burnt into the
ROM at the manufacturing stage. Programs stored in ROM can only be read, they cannot be
changed.
The ROM is nonvolatile memory; i.e. it retains the stored information even if the power is
switched off.
Used to store programs and instructions that the computer frequently needs for its operations.
Its content is not lost when power to the computer is turned off.
iii. Cache memory
Cache memory is a very high-speed semiconductor memory which can speed up CPU. It acts as a buffer
between the CPU and main memory. It is used to hold those parts of data and program which are most
frequently used by CPU. The parts of data and programs are transferred from disk to cache memory by
operating system, from where CPU can access them. It stores instructions and data which are to be
immediately executed by the CPU.
Advantages
Ü Cache memory is faster and consumes less access time as compared to other main memory.
Ü It increases the operating speed of the system.
Ü It stores the program that can be executed within a short period of time.
Ü It stores data for temporary use.
Disadvantages
Ü Cache memory has limited capacity.
Ü It is very expensive and not accessible to users
2. Secondary Storage
Secondary storage (also called auxiliary storage) supplements the primary memory. They are devices that
permanently hold data and information as well as programs. CPU directly does not access these memories
instead they are accessed via input-output routines. Contents of secondary memories are first transferred to
main memory, and then CPU can access it.
Examples: - Floppy disk, Hard disk, Flash disk, Optical disk (CD, DVD, VCD)
Bit (Binary Digit): A bit of storage is like a light switch; it can be either on (1) or off (0). A single bit is
a one or a zero, a true or a false, an "on" or "off". The bit is the smallest unit of storage used in
computing.
Byte: is a contiguous sequence of a fixed number of bits. In recent years, the use of a byte to mean 8
bits has become nearly ubiquitous.
Byte = 8 bits = 1 character
KB (Kilo byte): A kilo byte is 210 bytes = 210 x 8 bits
23 GB = y
y = 23 GB x 230 byte/1 GB
y = 23x230 byte
23 GB = y
y = 23 GB x 8 x 230 bit/1 GB
y = 23 x 8 x 230 bit
Printers: is a device that produces a paper copy, sometimes called a hard copy of data stored in a
computer.
Plotter: is a computer hardware device much like a printer that is used for printing vector graphics.
Plotters produce high quality color graphics output by using pens for creating images. Plotters help to
draw maps from stored data. Plotters are ideal for Engineering, Drafting and many other applications
that require graphics.
Speaker: Speaker is an output device that allows you to hear voice, music, and other sounds from your
computer. It is used in computer system to produce sound or voice output. The sound is input from
external world into computer system via microphone and is output to external world via speaker.
LCD projector. LCD (Liquid-Crystal Device). displays optical effects to convert light from some
Course Module: Introduction to Computer Science/Computer Application Page 21
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
other source into graphics patterns on wall. An LCD projector is a type of video projector for
displaying video, images or computer data on a screen or other flat surface. It is a modern equivalent
of the slide projector or overhead projector.
Device Management— The device management tasks handled by OS are—(1) open, close and write
device drivers, and (2) communicate, control and monitor the device driver.
User Interface or Command Interpreter— Operating system provides an interface between the computer
user and the computer hardware. The user interface is a set of commands or a graphical user interface
via which the user interacts with the applications and the hardware.
Process Management— The process management activities handled by the OS are—(1) control access to
shared resources like file, memory, I/O and CPU, (2) control execution of applications, (3) create, execute
and delete a process (system process or user process), (4) cancel or resume a process (5) schedule a
process.
Memory Management — the activities of memory management handled by OS are—(1) allocate memory,
(2) free memory, (3) re-allocate memory to a program when a used block is freed, and (4) keep track of
memory usage.
File Management— The file management tasks include—(1) create and delete both files and directories,
(2) provide access to files, (3) allocate space for files, (4) keep back-up of files, and (5) secure files.
Protection and Security— OS protects the resources of system. User authentication, file attributes like
read, write, encryption, and back-up of data are used by OS to provide basic protection.
Device driver
Computers and their operating systems cannot be expected to know how to control every device, both now
and in the future. To solve this problem, operating systems essentially dictate how every type of device
should be controlled.
In short, device driver is a type of system software that introduces a new device to the operating system
and facilitates the communication between the operating system and the device.
Utilities software
Utility Programs are generally used to support, enhance or expand existing programs in a computer
system. Utilities software is programs that make computing easier. They perform specific tasks related to
managing computer resources or files. There are different utility programs:
i) Troubleshooting programs: enable us to recognize and correct computer problems before they
become serious.
ii) Anti-virus programs: they protect your computer against viruses or other malicious programs
that damage computer. E.g MacAfee, Sophos, Norton, etc.
iii) File compression programs: are used to reduce the size of files or data so that it takes less
storage space or network band. E.g WinZip, WinRAR, etc.
iv) Uninstall programs: this software enable us to safely and completely remove unneeded
programs/software from your computer.
v) Backup software: with the help of this software, we can make copies of files to be used in case
of the original data is lost/damaged. This copy is called back up.
vi) Screen savers: helps to prevent your work from being seen by others if you leave your computer
idle for some time.
Language Software
- Language software: it is the other subdivision of system software which is normally used by the
programmer to develop application program. It is a generic name consisting of various programs
that serves as compliers and translators to develop program in a number of different programming
language.
- Is software which is used by programmers to develop application software and translate programs
to machine code.
Basically, there are three types of programming languages: - Machine, Assembly and high- level.
Machine language: - There is the only language that the computer understands directly. A machine
language is a set of machine instructions which consists of zeros and ones. E.g., 01010100 00110
Assembly Language: - An Assembly language is a programming language which uses mnemonics (cues
or symbols or abbreviations) to write a program. It is machine dependent. It is also known as low-level
language. An assembly language was developed as a remedy to the drawbacks of programming in
machine languages. Because it is difficult to write large program using binary sequence of instructions and
it is hard to debug errors
So, assembly language is used as a mnemonic code rather than a machine code. E.g.
MUL- multiplying
SUB- subtracting
CLR- clearing
High-level language: - writing a program in assembly languages is easier as compared to machine
languages. But still assembly language has its own drawbacks, which is machine dependent. So, we need
other type of programming languages which are not machine dependent and more flexible. These
languages are called high-level languages.
Advantages of high-level languages: -
Easier to learn and understand (Looks like English)
Require less time to write and easier to debug errors.
Can be used on different machines with little modifications.
E.g. C++, Java, Fortran, c#, python, etc are also the most modern programming languages
Language translators
Language translator is a program that converts one or more languages to another language. Language
translators convert the programming instruction written by users into binary code that the computer
can understand. They are written for specific programming languages and computer system.
Three types of translators are assemblers, Compilers & interpreters.
Interpreter: - is a language translator that converts each high-level language into machine
language and executes immediately, statement by statement. It is a program that translates each
instruction of high-level language & executes the instruction before translating the next
instruction.
Compiler: - is a language translator that converts the entire program of a high-level language
into machine language before the computer executes the program. The programming
instructions of a high-level language are called source code. The compiler translates source
code into machine language, which in this case is called the object code.
Assemblers: - is a program that translates assembly languages into machine code.
Chapter Three
Data Representation in Computer System
3.1. Data Representation in Computer
Computer stores those data’s in a binary number system.
Do you think computer understand words as it is?
Every computer stores numbers, letters, & other special characters in a coded form not as it is.
Reason to use binary
The 1st reason is that the electronic & electrical components, by their very nature, operate in a
binary mode. Information is handled in the computer by electronic/electrical components such as
transistors, semiconductors, wires, etc all of which can only indicate 2 states or conditions – on (1)
or off (0). Transistors are either conducting (1) or no conducting (0); a voltage is present (1) or
absent (0) in wire. The binary number system, which has only two digits (0&1), is most suitable
for expressing the two possible states.
The second reason is that the computer circuits only have to handle two binary digits rather than
ten decimal digits. This greatly simplifies the internal circuit design of computers, resulting in less
expensive & more reliable circuits.
Finally, the binary system is used because everything that can be done in decimal number system
(addition, subtraction, division & multiplication) can also be done in binary number system.
Group discussion:
Why do we go for binary numbers instead of decimal numbers?
from 2108
4 8 2 Each Octal digit is converted to 3 binary digits (preferable and simplest method,
add zeros to the left to complete the triplets) but you can go from 8102
5 2 16 Group 4 binary digits together (preferable and simplest method) but you can go
from 21016
6 16 2 Each hexadecimal digit is converted to 4 binary digits(preferable and simplest
method) but you can go from 16102
7 8 10 Go from 8210 or Expand the octal number in power of 8.
8 10 8 Go from 1028 or divide the decimal number by 8 until the quotient
becomes zero.
9 16 10 Go from 16210 or Expand the hex-decimal number in power of 16.
10 10 16 Go from 10216 or divide the decimal number by 16 until the quotient
becomes zero.
11 8 16 Go from 8216 (preferable and simplest method) but you can go from
81016
12 16 8 Go from 1628 (preferable and simplest method) but you can go from
16108
Discuss ASCII (American Standard Code for Information Interchange) and UNICODE binary
coding methods.
Exercises: 1
Course Module: Introduction to Computer Science/Computer Application Page 31
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
Exercise: 2
1. For the following exercises, convert from the given base to the required base.
Chapter - Four
Data Communication and Computer Network
4.1. Data communication Basics
Definition: Data communication is a process of sharing ideas, information and messages with others in
particular time and space. Communication includes writing, talking and non-verbal communication (like
facial expressions, visual communications), electronic communications, etc.
It is also the transfer of information from one place to another. It may be manual – one person talks to
another. Or it may be mechanical or electronic gadget or device. Whatever the case, the process of
communication involves the following.
Basic components of communication
Source- Generates data to be transmitted
Message -Information/data to be transmitted
Transmitter- Converts data into transmittable signals
Transmission System- A communication Equipment (intermediate device) that carries data
Receiver-Converts received signal into data
Destination-Takes incoming data
Protocol-Rules and standards that govern data communication
Simplex
Half-duplex transmission: - Transmission is possible in both directions but only one way at a time i.e.
both stations may transmit, but only one at a time. It is possible to perform error detection and request the
sender to retransmit information that arrived corrupted. Eg. Police radio (wacky talky) or talk back radio
Half
S Duplex
e
Full-duplex transmission: - In this transmission,
may transmit simultaneously. The medium n signals transmitted in both direction, both stations
carries signals in both directions at the same time.
Eg. Telephone d
Modes of Data Transmission summary:
e
r
Full Duplex
o
r
4.4. Computer Network
Computers are now found in every walk of life; in R home, in the office, in banks, in supermarkets etc.
In earlier days, computers carryout their intended e functions in a stand-alone mode. But, today, it
becomes necessary to exchange information with c other computers. A standalone is workstation
computer that cannot share information with e other computers.
i
v
e
Course Module: Introduction to Computer Science/Computer Application Page 35
r
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
Better Communication: In the digital world, information can be transferred within fraction of a
second over long distances. And one of the greatest features of networks is Electronic Mail (E-Mail)
system. Thus, a company can eliminate the delays encountered with standard postal services or with
telephone tag, by using E-Mail services.
Centralizing administration/support: Easier to maintain computers if they are all set up in a uniform
manner with the same operating system, etc.
Security of information: Before networks became a common place, an individual employee was
storing information in his or her desktop computer which was not secured. But today, such data or
information could be backed-up or duplicated on a network storage device, shared by others.
LAN
LAN is a computer network that spans a relatively small area. Most LANs are confined to a single
building or group of buildings. However, one LAN can be connected to other LANs over any distance via
telephone lines and radio waves. A system of LANs connected in this way is called a wide-area network
(WAN)
Basic LAN features:
Confined to a building or group of buildings
It is confined to limited geographical area (< 2km) like with in a building, in lab, in school, etc.
It allows easy access to other computers or peripherals (because there is only short distance
between computers).
It uses higher bandwidth (1 mbps) & cheap cable media like UTP & coaxial.
Uses homogeneous technology with in the same LAN
Owned by privately and controlled by a single administrator.
Ranges from two computers up to 1000 computers with a limited distance
MAN
Metropolitan area network (MAN) covers a much larger area than a LAN and is a public or a private
network used to connect various locations, including the sub urban. Campus networks are the example of
a MAN
Basic features:
It covers large geographical areas than LAN such as cities, districts, Regions etc
It is an interconnection of several LANs e.g.: if your organization has several branches in
different cities.
It uses expensive cables (media) – fiber optic.
E.g.: Commercial Bank of Ethiopia from Addis Ababa to other branches in different cities (Adama and
Hawasa branches)
WAN
A WAN is a computer network that spans a relatively large geographical area. Typically, a WAN consists
millions or more local area networks (LANS) which can communicate to each other and access internet
(global networks)
Computers connected to a wide area network are often connected through public networks, such as the
telephone system. They can also be connected through leased lines or satellites. The largest WAN in
existence is the internet.
Basic features:
The idea of connecting computers within a target Geographical area like between
o Countries & b/n Continents
Uses fiber optic cables, microwaves, & satellite (wireless Technology), Telephone line, modem
etc.
o E.g. Global Area network (GAN) Internet
E-mail services and chatting
Peer-to-Peer Networks
In a peer-to-peer network, there are no dedicated servers, and there is no hierarchy among the computers.
All the computers are equal and therefore are known as peers. Each computer functions as both a client
and a server, and there is no administrator responsible for the entire network. The user at each computer
determines what data on that computer is shared on the network.
Basic features:
There is no dedicate sever
All PCs are peers (equal) - No hierarchy
They all work both as a client & as a server.
There is no admin & no central storage
There is no need of Additional Software
Users at each PC determine their own security and acts as an administrator
10 or fewer PCs are connected in this network
The following Figure shows a peer-to-peer network in which each computer functions as both a client and
a server. ( Peer-to-peer network computers act as both clients and servers)
Fundamentally, at any given moment, the computer is either acting as a client or as a server.
A server is a computer that shares its resources across the network, and
A client is a computer that access shared resources.
As a network grows, a peer-to-peer network will probably no longer be able to meet the increased demand
on shared resources. To accommodate the increased demand and provide additional functionality,
most networks have dedicated servers. A dedicated server functions as a server only, not as a client.
The configuration of these servers is optimized to process requests from network clients.
Basic features of server based network
It is the standard network model
Optimized to process requests from network clients
There is dedicated server (workload of individual PCs reduced)
It has central storage and Admin support
There is a need of additional software-NOS ( Network operating system), and Server software
Advantage
security is the main importance
easy to backup
Redundancy is available (duplicating the important data into other workstations)
Supports thousands of users (more 100)
Bus Topology
In a bus topology, all of the computers in a network are attached to a continuous cable, or segment, that
connects them in a straight line (See Figure below). In this straight-line topology, a packet is transmitted
to all network adapters on that segment.
Advantages of the bus topology are
Use of cable is economical
Media is inexpensive and easy to work with
System is simple and reliable and is easy to extend.
Because of the way electrical signals are transmitted over this cable, the ends of the cable must be
terminated by hardware devices called terminators.
If there is a break anywhere in the cable or if an end is not terminated, the signal will travel back and
forth across the network and all communication will stop.
An increase in the number of computers results in an increase in noise and a corresponding decrease in
network efficiency.
Bus topology
Star Topology
In a star topology, cable segments from each computer on the network are connected to a central
component, or hub (See Figure below). A hub is a device that connects several computers together to
form star topology. In a star topology, signals are transmitted from the computer, through the hub, to all
computers on the network. On a larger scale, multiple LANs can be connected to each other in a star
topology.
An advantage of the star topology is that if one computer on the star topology fails, only the failed
computer is unable to send or receive data. The remainder of the network functions normally.
The disadvantage of using this topology is that because each computer is connected to a hub, if the hub
fails, the entire network fails.
Star topology
Ring Topology
In a ring topology, computers are connected on a single circle of cable (See Figure below).. The signals
travel around the loop in one direction and pass through each computer, which acts as a repeater to
boost the signal and send it to the next computer.
The advantage of a ring topology is that each computer acts as a repeater, regenerating the signal and
sending it on to the next computer, thereby preserving signal strength.
Ring topology
The method of transmitting data around the ring is called token passing. A token is a special series of
bits that contains control information. Possession of the token allows a network device to transmit data
to the network. Each network has only one token.
The disadvantage of a ring topology is that only one computer at a time can send data on a single token
ring.
Mesh Topology
In a mesh topology, each computer is connected to every other computer by a separate cable as shown in
the figure below. This arrangement provides redundant paths through the network so that if one cable
fails, another carries
the traffic and the
network continues to
function.
Mesh topology
Hybrid Topologies
In a hybrid topology, two or more topologies are combined to form a complete network design.
Networks are rarely designed using only one type of topology. For example, you may want to combine a
star with a bus topology to benefit from the advantages of each.
Two types of hybrid topologies are commonly in use: star-bus topology and star-ring topology.
The requirement to share resources is sometimes global. People need to exchange mail, to discuss about
issues, to read news, to advertise, to sell and buy, to exchange information etc. The network of networks
that connects hundreds of thousands of networks, and millions of computers around the world is called the
internet
The Internet is a network of networks that is extended all around the world. It is not owned by anyone
or any institution, but controlled and managed by the internet service provider (ISP), in our case Ethiopian
Telecom.
The Internet is a term used to describe thousands of computers connected with each other spanning over
the world. It is the largest network in existence. It is a network of networks acting as one. It is a
worldwide communication to businesses, homes, schools and governments.
Internet is also acts as a cyberspace (a virtual place that you can do a lot of things like visiting places,
chatting with friends, buying and selling products, advertise products, reading researches, etc).
With internet:
You can communicate with friends or colleagues.
You can communicate with one person at a time or thousands.
You can send & receive files or information over a greater distance.
Internet:
Global Interconnection of networks and computers
No owner of Internet; only standards bodies
Internet access is through ISP (Internet Service Provider)
Internet access technologies include:
Non-permanent (dial-up) connection
▪ Uses MODEM and telephone lines
.
Computer Application_ICS Hawassa University Daye Campus: Department of Computer Science
Chapter – Five
Computer Safety and Security
5.1. Computer Security
Computer security is a branch of computer technology known as information security as applied to
computers and networks. Etc. It is the concept of attaining a secure computing environment (i.e., an ideal
state free from risk or danger) by detecting the vulnerabilities associated with computer use. It is a general
term relating to measures designed to protect computer assets in all configurations. The protection of
information assets can be handled using technology, processes and training.
Computer Security is technique developed to safeguard information and information systems stored on
computers. Potential threats include the destruction of computer hardware and software and the loss,
modification, theft, unauthorized use, observation, or disclosure of computer data.
Threat is a source of probable trouble or attack to a system that could cause losses. One of the threats in
computer system is Virus.
Computer Viruses
Computer viruses are software programs that are able to reproduce themselves. It is the intellectual
creation of a human computer programmer. If a program is not able to replicate, then it is not a virus. Most
computer viruses are damaging. Computer virus is a program that is intentionally done to harm users’
program without permission.
Environmental factors
Temperature: integrated circuits and other devices in the computer systems are sensitive to temperature.
During normal operation, the computer generates heat, which is tolerable to the circuitry.
Measures:
Reset the system if intermittent failure occurs;
Keep the cooling ventilator cleans
Keep the system disk in cool and dry place
If possible, install air conditioner in the room
Dust: The static electrical charge that builds up in the computer systems and the monitor attracts dust.
Dust is a major contributor for integrated circuits failure in the system. Electro mechanical devices such as
printers and disk drives have a number of moving parts that get dirty causing overheating and early
failures
Measures:
Clean computer systems and its peripherals periodically
Use dust covers
Keep computer room windows closed
No smoking near the system
Do not touch the surface of disk drives and other internal components
Clean the inside portion as well as the area with a vacuum cleaner
Blow the dust in the screen with a pressurized anti-static spray
Use soft brush to clean the screen and clean the cabinets with mild soap and then dry them with a
piece of soft cloth.