Escolar Documentos
Profissional Documentos
Cultura Documentos
opasdfghjklzxcvbnmqwertyuiopasdfgh
jklzxcvbnmqwertyuiopasdfghjklzxcvb
Fundamental of Computer Science
nmqwertyuiopasdfghjklzxcvbnmqwer
B.Sc- IT
AMITY eLEARNING
tyuiopasdfghjklzxcvbnmqwertyuiopas
dfghjklzxcvbnmqwertyuiopasdfghjklzx
cvbnmqwertyuiopasdfghjklzxcvbnmq
wertyuiopasdfghjklzxcvbnmqwertyuio
pasdfghjklzxcvbnmqwertyuiopasdfghj
klzxcvbnmqwertyuiopasdfghjklzxcvbn
mqwertyuiopasdfghjklzxcvbnmqwerty
uiopasdfghjklzxcvbnmqwertyuiopasdf
ghjklzxcvbnmqwertyuiopasdfghjklzxc
vbnmqwertyuiopasdfghjklzxcvbnmrty
uiopasdfghjklzxcvbnmqwertyuiopasdf
ghjklzxcvbnmqwertyuiopasdfghjklzxc
vbnmqwertyuiopasdfghjklzxcvbnmqw
ertyuiopasdfghjklzxcvbnmqwertyuiop
Amity University
1.1
WHAT IS A COMPUTER?
Therefore, we may define computer as a device that transforms data. Data can be anything like
marks obtained by you in various subjects. It can also be name, age, sex, weight, height, etc. of
all the students in your class or income, savings, investments, etc., of a country. Computer can be
defined in terms of its functions. It can
i)
accept data
ii)
store data,
iii)
iv)
v)
print the result in desired format. You will know more about these functions as you go
through the later lessons.
1.4
CHARACTERISTICS OF COMPUTER
Let us identify the major characteristics of computer. These can be discussed under the headings
of speed, accuracy, diligence, versatility and memory.
1.4.1 Speed
As you know computer can work very fast. It takes only few seconds for calculations that we take
hours to complete. Suppose you are asked to calculate the average monthly income of one
thousand persons in your neighborhood. For this you have to add income from all sources for all
persons on a day to day basis and find out the average for each one of them. How long will it take
for you to do this? One day, two days or one week? Do you know your small computer can finish
this work in few seconds? The weather forecasting that you see every day on TV is the results of
compilation and analysis of huge amount of data on temperature, humidity, pressure, etc. of
various places on computers. It takes few minutes for the computer to process this huge amount of
data and give the result.
You will be surprised to know that computer can perform millions (1,000,000) of instructions
and even more per second. Therefore, we determine the speed of computer in terms of
microsecond (10-6 part of a second) or nano-second (10-9 part of a second). From this you can
imagine how fast your computer performs work.
1.4.2 Accuracy
Suppose some one calculates faster but commits a lot of errors in computing. Such result is
useless. There is another aspect. Suppose you want to divide 15 by 7. You may work out up to 2
decimal places and say the dividend is 2.14. I may calculate up to 4 decimal places and say that
the result is 2.1428. Some one else may go up to 9 decimal places and say the result is
2.142857143. Hence, in addition to speed, the computer should have accuracy or correctness in
computing.
The degree of accuracy of computer is very high and every calculation is performed with the
same accuracy. The accuracy level is determined on the basis of design of computer. The errors
in computer are due to human and inaccurate data.
1.4.3 Diligence
A computer is free from tiredness, lack of concentration, fatigue, etc. It can work for hours
without creating any error. If millions of calculations are to be performed, a computer will
perform every calculation with the same accuracy. Due to this capability it overpowers human
being in routine type of work.
1.4.4 Versatility
It means the capacity to perform completely different type of work. You may use your computer
to prepare payroll slips. Next moment you may use it for inventory management or to prepare
electric bills.
1,4.6 No IQ
Computer is a dumb machine and it cannot do any work without instruction from the user. It
performs the instructions at tremendous speed and with accuracy. It is you to decide what you
want to do and in what sequence. So a computer cannot take its own decision as you can.
1.4. 7 No Feeling
It does not have feelings or emotion, taste, knowledge and experience. Thus it does not get tired
even after long hours of work. It does not distinguish between users.
1.4.8 Storage
The Computer has an in-built memory where it can store a large amount of data. You can also
store data in secondary storage devices such as floppies, which can be kept outside your
computer and can be carried to other computers.
1.5
HISTORY OF COMPUTER
History of computer could be traced back to the effort of man to count large numbers. This
process of counting of large numbers generated various systems of numeration like Babylonian
system of numeration, Greek system of numeration, Roman system of numeration and Indian
system of numeration. Out of these the Indian system of numeration has been accepted
universally. It is the basis of modern decimal system of numeration (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).
Later you will know how the computer solves all calculations based on decimal system. But you
will be surprised to know that the computer does not understand the decimal system and uses
binary system of numeration for processing.
We will briefly discuss some of the path-breaking inventions in the field of computing devices.
The word ABACUS means calculating board. It consisted of sticks in horizontal positions on
which were inserted sets of pebbles.It has a number of horizontal bars each having ten beads.
Horizontal bars represent units, tens, hundreds, etc.
1.5.2
Napiers bones
English mathematician John Napier built a mechanical device for the purpose of multiplication
in 1617 A D. The device was known as Napiers bones.
1.5.3 Slide Rule
English mathematician Edmund Gunter developed the slide rule. This machine could perform
operations like addition, subtraction, multiplication, and division. It was widely used in Europe
in 16th century.
The modern electronic calculator can compute all kinds of mathematical computations and
mathematical functions. It can also be used to store some data permanently. Some calculators
have in-built programs to perform some complicated calculations.
1.6
COMPUTER GENERATIONS
You know that the evolution of computer started from 16th century and resulted in the form that
we see today. The present day computer, however, has also undergone rapid change during the
last fifty years. This period, during which the evolution of computer took place, can be divided
into five distinct phases known as Generations of Computers. Each phase is distinguished from
others on the basis of the type of switching circuits used.
ENIAC: It was the first electronic computer built in 1946 at University of Pennsylvania, USA by
John Eckert and John Mauchy. It was named Electronic Numerical Integrator and Calculator
(ENIAC). The ENIAC was 30 50 feet long, weighed 30 tons, contained 18,000 vacuum tubes,
70,000 registers, 10,000 capacitors and required 150,000 watts of electricity. Today your favorite
computer is many times as powerful as ENIAC, still size is very small.
EDVAC: It stands for Electronic Discrete Variable Automatic Computer and was developed in
1950. The concept of storing data and instructions inside the computer was introduced here. This
allowed much faster operation since the computer had rapid access to both data and instructions.
The other advantages of storing instruction was that computer could do logical decision
internally.
UNIVAC-1: Ecker and Mauchly produced it in 1951 by Universal Accounting Computer setup.
It is in the second generation that the concept of Central Processing Unit (CPU), memory,
programming language and input and output units were developed. The programming languages
such as COBOL, FORTRAN were developed during this period. Some of the computers of the
Second Generation were
1. IBM 1620: Its size was smaller as compared to First Generation computers and mostly used
for scientific purpose.
2. IBM 1401: Its size was small to medium and used for business applications.
3. CDC 3600: Its size was large and is used for scientific purposes.
Thus the computer which was occupying a very large room in earlier days can now be placed on
a table. The personal computer (PC) that you see in your school is a Fourth Generation
Computer.
2.3
A computer as shown in Fig. 2.1 performs basically five major operations or functions
irrespective of their size and make. These are
1) . Input Function : This is the process of entering data and programs in to the computer
system.
2) Storing data : The process of saving data and instructions permanently is known as storage.
3) Processing :The task of performing operations like arithmetic and logical operations is called
processing it can process data as required by the user,
4) Outputting :This is the process of producing results from the data for getting useful
information.
5) Controlling: it controls all operations inside a computer.
2.4
FUNCTIONAL UNITS
In order to carry out the operations mentioned above the computer allocates the task between its
various functional units. The computer system is divided into three separate units for its
operation.
1. Input Unit :It includes the input interface and input devices. You should know that computer
is an electronic machine like any other machine which takes as inputs raw data and performs
some processing giving out processed data. Therefore, the input unit takes data from us to the
computer in an organized manner for processing. all input devices must provide a computer with
data that are transformed into the binary codes that the primary memory of a computer is
designed a accept. Units called input interfaces accomplish this transformation.Input interfaces
are designed to match the unique physical or electrical characteristics of input device to the
requirements of the computer system. In short, the following functions are performed by an input
unit:
1. It accept (or reads) the list of instructions and data from the
outside world.
2. It converts these instructions and data in computer
acceptable form.
3. It supplies the converted instructions and data to the
computer system for further processing.
D. Output Unit
The job of an output unit is just the reverse of that of an input unit. It supplies information and
results of computation to the outside world. Thus it links the compute with the external
environment. As computers work with binary code, the results produced are also in the binary
10
form. Hence, before supplying the result to the outside world, it must be converted to human
acceptable (readable0 form. This task is accomplished by units called output interfaces are
designed to match the unique physical or electrical characteristics of output devices (terminals,
printers, etc.) to the requirements of the external environment. In short, the following functions
are performed by an output unit :
1. It accepts the results produced by the computer, which are in code from and hence cannot be
easily understood by us.
2. It converts these coded results to human acceptable (readable) form.
3. It supplies the converted results to the outside world.
2. Storage Unit : Data has to be fed into the system before the actual processing starts. It is
because the processing speed of Central Processing Unit (CPU) is so fast that the data has to be
provided to CPU with the same speed. Therefore the data is first stored in the storage unit for
faster access and processing. This storage unit or the primary storage of the computer system is
designed to do the above functionality. It provides space for storing data and instructions.
The storage unit performs the following major functions:
All data and instructions are stored here before and after processing.
Intermediate results of processing are also stored here.
11
4.12
After you enter data through the input device it is stored in the primary storage unit. The actual
processing of the data and instruction are performed by Arithmetic Logical Unit. The major
operations performed by the ALU are addition, subtraction, multiplication, division, logic and
comparison. Data is transferred to ALU from storage unit when required. After processing the
output is returned back to storage unit for further processing or getting stored.
Arithmetic Logic Unit (ALU)
perform the input and output. Therefore it is the manager of all operations mentioned in the
previous section..
The Control Unit
directs the flow of information into the CPU and/or memory or storage
controls which instructions the CPU will do next
13
for a computer. In order for an algorithm to be applicable to a computer, it must have certain
characteristics. We will specify these characteristics in our formal definition of an algorithm.
An algorithm is a well-ordered collection of unambiguous and effectively
computable operations that when executed produces a result and halts in a finite
amount of time [Schneider and Gersting 1995].
These characteristics need a little more explanation, so we will look at each one in detail.
Algorithms are well-ordered
Since an algorithm is a collection of operations or instructions, we must know the correct
order in which to execute the instructions. If the order is unclear, we may perform the wrong
instruction or we may be uncertain which instruction should be performed next. This
characteristic is especially important for computers. A computer can only execute an
algorithm if it knows the exact order of steps to perform.
Algorithms have unambiguous operations
Each operation in an algorithm must be sufficiently clear so that it does not need to be
simplified. Given a list of numbers, you can easily order them from largest to smallest with
the simple instruction "Sort these numbers." A computer, however, needs more detail to sort
numbers. It must be told to search for the smallest number, how to find the smallest number,
how to compare numbers together, etc. The operation "Sort these numbers" is ambiguous to a
computer because the computer has no basic operations for sorting. Basic operations used for
writing algorithms are known as primitive operations or primitives. When an algorithm is
written in computer primitives, then the algorithm is unambiguous and the computer can
execute it.
14
15
When writing algorithms, we have several choices of how we will specify the operations in
our algorithm. One option is to write the algorithm using plain English. An example of this
approach is the directions to John's house given in the introduction lesson. Although plain
English may seem like a good way to write an algorithm, it has some problems that make it a
poor choice. First, plain English is too wordy. When we write in plain English, we must
include many words that contribute to correct grammar or style but do nothing to help
communicate the algorithm. Second, plain English is too ambiguous. Often an English
sentence can be interpreted in many different ways. Remember that our definition of an
algorithm requires that each operation be unambiguous.
Another option for writing algorithms is using programming languages. These languages are
collections of primitives (basic operations) that a computer understands. While programming
languages avoid the problems of being wordy and ambiguous, they have some other
disadvantages that make them undesirable for writing algorithms. Consider the following
lines of code from the programming language C++.
a = 1;
b = 0;
while (a <= 10)
{
b = b + a;
a++;
}
cout << b;
This algorithm sums the numbers from 1 to 10 and displays the answer on the computer
screen. However, without some special knowledge of the C++ programming language, it
would be difficult for you to know what this algorithm does. Using a programming language
to specify algorithms means learning special syntax and symbols that are not part of standard
English. For example, in the code above, it is not very obvious what the symbol "++" or the
symbol "<<" does. When we write algorithms, we would rather not worry about the details of
a particular programming language.
What we would really like to do is combine the familiarity of plain English with the structure
and order of programming languages. A good compromise is structured English. This
approach uses English to write operations, but groups operations by indenting and numbering
lines. An example of this approach is the directions for changing motor oil in the introduction
16
lesson. Each operation in the algorithm is written on a separate line so they are easily
distinguished from each other. We can easily see the advantage of this organization by
comparing the structured English algorithm with the plain English algorithm.
1.
2.
3.
4.
5.
6.
7.
Structured English
Place the oil pan underneath the oil plug of your
car.
Unscrew the oil plug.
Drain oil.
Replace the oil plug.
Remove the oil cap from the engine.
Pour in 4 quarts of oil.
Replace the oil cap.
FLOWCHARTING
INTRODUCTION
The flowchart is a means of visually presenting the flow of data through an information
processing systems, the operations performed within the system and the sequence in which
they are performed. In this lesson, we shall concern ourselves with the program flowchart,
which describes what operations (and in what sequence) are required to solve a given
problem. The program flowchart can be likened to the blueprint of a building. As we know a
designer draws a blueprint before starting construction on a building. Similarly, a
programmer prefers to draw a flowchart prior to writing a computer program. As in the case
of the drawing of a blueprint, the flowchart is drawn according to defined rules and using
standard flowchart symbols prescribed by the American National Standard Institute, Inc.
OBJECTIVES
At the end of this lesson, you will be able to understand:
the meaning of flowchart
the basic parts of the flowchart such as flowchart symbols and the flow lines connecting these
symbols.
the advantages and limitations of flowchart
17
MEANING OF A FLOWCHART
A flowchart is a diagrammatic representation that illustrates the sequence of operations to be
performed to get the solution of a problem. Flowcharts are generally drawn in the early stages
of formulating computer solutions. Flowcharts facilitate communication between
programmers and business people. These flowcharts play a vital role in the programming of a
problem and are quite helpful in understanding the logic of complicated and lengthy
problems. Once the flowchart is drawn, it becomes easy to write the program in any high
level language. Often we see how flowcharts are helpful in explaining the program to others.
Hence, it is correct to say that a flowchart is a must for the better documentation of a complex
program.
25.4 GUIDELINES FOR DRAWING A FLOWCHART
Flowcharts are usually drawn using some standard symbols; however, some special symbols
can also be developed when required. Some standard symbols, which are frequently required
for flowcharting many computer programs are shown in Fig. 25.1
18
Magnetic Tape
Magnetic Disk
Off-page connector
Flow line
Annotation
Display
or
e. Only one flow line should enter a decision symbol, but two or three flow lines, one for
each possible answer, should leave the decision symbol.
19
g. Write within standard symbols briefly. As necessary, you can use the annotation symbol
to describe data or computational steps more clearly.
h. If the flowchart becomes complex, it is better to use connector symbols to reduce the
number of flow lines. Avoid the intersection of flow lines if you want to make it more
effective and better way of communication.
i. Ensure that the flowchart has a logical start and finish.
j. It is useful to test the validity of the flowchart by passing through it with a simple test data.
25.5 ADVANTAGES OF USING FLOWCHARTS
The benefits of flowcharts are as follows:
1. Communication: Flowcharts are better way of communicating the logic of a system to all
concerned.
2. Effective analysis: With the help of flowchart, problem can be analysed in more effective
way.
3. Proper documentation: Program flowcharts serve as a good program documentation,
which is needed for various purposes.
4. Efficient Coding: The flowcharts act as a guide or blueprint during the systems analysis
and program development phase.
5. Proper Debugging: The flowchart helps in debugging process.
6. Efficient Program Maintenance: The maintenance of operating program becomes easy
with the help of flowchart. It helps the programmer to put efforts more efficiently on that
part
20
A program flowchart indicates the_________ to be per formed and the __________ in which they
occur.
A program flowchart is generally read from _____________ to ________________
Flowcharting symbols are connected together by means of ___________________
A decision symbol may be used in determining the ____________ or ___________ of two data
items.
__________ are used to join remote portions of a flowchart
____________ connectors are used when a flowchart ends on one page and begins again on other
page
A ________ symbol in used at the beginning and end of a flowchart.
The flowchart is one of the best ways of ________ a program..
To construct a flowchart, one must adhere to prescribed symbols provided by the __________ .
The programmed uses a ____________ to aid him in drawing flowchart symbols.
21
22
23
Pseudocodes
Pseudocode is a compact and informal high-level description of a computer programming
algorithm that uses the structural conventions of some programming language, but is intended
for human reading rather than machine reading. Pseudo-code typically omits details that are
not essential for human understanding of the algorithm, such as variable declarations, systemspecific code and subroutines. The programming language is augmented with natural
language descriptions of the details, where convenient, or with compact mathematical
notation.
The purpose of using pseudocode is that it is easier for humans to understand than
conventional programming language code, and that it is a compact and environmentindependent description of the key principles of an algorithm. It is commonly used in
24
textbooks and scientific publications that are documenting various algorithms, and also in
planning of computer program development, for sketching out the structure of the program
before the actual coding takes place.
No standard for pseudocode syntax exists, as a program in pseudocode is not an executable
program. Pseudo code resembles, but should not be confused with, skeleton programs
including dummy code, which can be compiled without errors. Flowcharts can be thought of
as a graphical alternative to pseudocode.
As the name suggests, pseudocode generally does not actually obey the syntax rules of any
particular language; there is no systematic standard form, although any particular writer will
generally borrow style and syntax for example control structures from some conventional
programming language. Popular syntax sources include Pascal, BASIC, C, C++, Java, Lisp,
and ALGOL. Variable declarations are typically omitted. Function calls and blocks of code,
for example code contained within a loop, is often replaced by a one-line natural language
sentence.
Depending on the writer, pseudocode may therefore vary widely in style, from a near-exact
imitation of a real programming language at one extreme, to a description approaching
formatted prose at the other.
Example:
<variable> = <expression>
if <condition>
do stuff
else
do other stuff
while <condition>
do stuff
for <variable> from <first value> to <last value> by <step>
do stuff with variable
function <function name>(<arguments>)
do stuff with arguments
return something
<function name>(<arguments>)
// Function call
25
2. Ignore unnecessary details. If you are worrying about the placement of commas, you are using
too much detail. It is a good idea to use some convention to group statements (begin/end,
brackets, or whatever else is clear), but you shouldn't obsess about syntax.
3. In many cases, the type of a variable is clear from context; unless it is critical that it is
specified to be an integer or real, it is often unnecessary to make it explicit.
4. Take advantage of programming shorthands. Using if-then-else or looping structures is more
concise than writing out the equivalent in English; general constructs that are not peculiar to a
small number of languages are good candidates for use in pseudocode. Using parameters in
specifying procedures is concise, clear, and accurate, and hence should not be omitted from
pseudocode.
5. Consider the context. If you are writing an algorithm for quicksort, the statement use quicksort
to sort the values is hiding too much detail; if we have already studied quicksort in class and later
use it as a subroutine in another algorithm, the statement would be appropriate to use.
6. Don't lose sight of the underlying model. It should be possible to see through" your
pseudocode to the model below; if not (that is, you are not able to analyze the algorithm easily),
it is written at too high a level.
7. Check for balance. If the pseudocode is hard for a person to read or di_cult to translate into
working code (or worse yet, both!), then something is wrong with the level of detail you have
chosen to use.
26
INTRODUCTION
Today computer is available in many offices and homes and therefore there is a need to share
data and programs among various computers with the advancement of data communication
facilities. The communication between computers has increased and it thus it has extended the
power of computer beyond the computer room. Now a user sitting at one place can communicate
computers of any remote sites through communication channel. The aim of this chapter is to
introduce you the various aspects of computer network.
4.2
OBJECTIVES
4.3
DATA COMMUNICATION
We all are acquainted with some sorts of communication in our day to day life. For
communication of information and messages we use telephone and postal communication
systems. Similarly data and information from one computer system can be transmitted to other
systems across geographical areas. Thus data transmission is the movement of information using
some standard methods. These methods include electrical signals carried along a conductor,
optical signals along an optical fibers and electromagnetic areas.
Suppose a manager has to write several letters to various clients. First he has to use his PC and
Word Processing package to prepare his letter. If the PC is connected to all the client's PCs
through networking, he can send the letters to all the clients within minutes. Thus irrespective of
27
geographical areas, if PCs are connected through communication channel, the data and
information, computer files and any other program can be transmitted to other computer systems
within seconds. The modern form of communication like e-mail and Internet is possible only
because of computer networking.
In data communication four basic terms are frequently used. They are
Data: A collection of facts in raw forms that become information after processing.
Signals: Electric or electromagnetic encoding of data.
Signaling: Propagation of signals across a communication medium.
Transmission: Communication of data achieved by the processing of signals.
The data transmission software or protocols perform the following functions for the efficient and
error free transmission of data.
Data sequencing: A long message to be transmitted is broken into smaller packets of fixed size
for error free data transmission.
Data Routing: It is the process of finding the most efficient route between source and
destination before sending the data.
Flow control: All machines are not equally efficient in terms of speed. Hence the flow control
regulates the process of sending data between fast sender and slow receiver.
28
Error Control: Error detecting and recovering is the one of the main function of communication
software. It ensures that data are transmitted without any error.
B
Simplex A to B only
B
Half-Duplex A to B or B to A
B
Full-Duplex A to B and B to A
Fig. 4.1
29
digital and analog form. So one should know the fundamental difference between analog and
digital signals. In analog signal the transmission power varies over a continuous range with
respect to sound, light and radio waves. On the other hand a digital signal may assume only
discrete set of values within a given range. Examples are computer and computer related
equipment. Analog signal is measured in Volts and its frequency in Hertz (Hz). A digital signal is
a sequence of voltage represented in binary form. When digital data are to be sent over an analog
form the digital signal must be converted to analog form. So the technique by which a digital
signal is converted to analog form is known as modulation. And the reverse process, that is the
conversion of analog signal to its digital form, is known as demodulation. The device, which
converts digital signal into analog, and the reverse, is known as modem.
Time
Analog Signal
MODEMS :They translate data from digital to analog form at the sending end of the communications path and
from analog to digital at the receiving end .Put simply, the object of a modem is to change the characteristics of a
simple sine wave, referred to as a carrier signal. We know this carrier signal has several properties that can be
altered to represent data. It has amplitude (height); it has frequency (a unit of time); and it has phase (a relative
starting point). Modems are capable of altering one or more of these characteristics to represent data. The job a
modem performs can be divided into two discrete parts or phases at each end of the communications link.
At the sending end, it converts digital bit streams (strings of 0s and 1s) into analog sine waves. This is
the encoding process. Another component within the modem then changes (modulates) the analog signal
so the data may be transmitted simultaneously with other data and voice traffic that has also been modulated.
This process is basically reversed at the receiving end. There, the analog signal is brought back to its basic level
(demodulated), and the analog sine waves are reconverted (decoded) back into their corresponding bit
streams
30
31
consist of two insulated copper wires arranged in a regular spiral pattern to minimize the
electromagnetic interference between adjacent pairs
low frequency transmission medium
low cost, small size, and ease of installation
limited distance, usually less than 100 meters
the most popular and is generally the best option for school networks
Categories of UTP Cable
Category 1 Voice Only (Telephone Wire)
Category 2 Data to 4 Mbps (LocalTalk)
Category 3 Data to 10 Mbps (Ethernet)
Category 4 Data to 20 Mbps (16 Mbps Token Ring)
Category 5 Data to 100 Mbps (Fast Ethernet)
The standard connector for UTP cable is an RJ-45 connector, which looks like a large
telephone modular connector
Wireless
use high frequency radio signals or infrared light beams to communicate between the
workstations and the server
need transciever/antenna to send and receive data
widely used for connecting laptop computers to the LAN
expensive
poor security
slower than LANs using cabling
susceptible to electrical interference from lights and radios
Coaxial Cables: Coaxial cable is groups of specially wrapped and insulted wires that are able to
32
transfer data at higher rate. They consist of a central copper wire surrounded by an insulation
over which copper mesh is placed. They are used for long distance telephone lines and local
area network for their noise immunity and faster data transfer.
Coaxial (Coax) Cable
Some features are:
33
Fiber Optic
34
Microwave: Microwave system uses very high frequency radio signals to transmit data through
space. The transmitter and receiver of a microwave system should be in line-of-sight because
the radio signal cannot bend. With microwave very long distance transmission is not
possible. In order to overcome the problem of line of sight and power amplification of weak
signal, repeaters are used at intervals of 25 to 30 kilometers between the transmitting and
receiving end.
Communication Satellite: The problem of line-sight and repeaters are overcome by using
satellites which are the most widely used data transmission media in modern days. A
communication satellite is a microwave relay station placed in outer space. INSAT-1B is
such a satellite that can be accessible from anywhere in India. In satellite communication,
microwave signal is transmitted from a transmitter on earth to the satellite at space. The
satellite amplifies the weak signal and transmits it back to the receiver. The main advantage
of satellite communication is that it is a single microwave relay station visible from any point
of a very large area. In microwave the data transmission rate is 16 giga bits per second. They
are mostly used to link big metropolitan cities.
4.4
COMPUTER NETWORK
35
store the shared information and have all other computers reference the
information on that computer over the network. Sharing hardware
resources: a network allows anyone connected to the network to use
printers, fax modem, scanners, tape backup units or almost any other
device that can be attached to a computer.
Sharing software resources: administrator can centrally install and
configure the software and also restrict access to the software. It is easier
than doing it on every one of the computers in an organization.
Preserving information: a network also allows for information to be
backed up to a central location. It is difficult to maintain regular backups
on a number of stand-alone computers so important information can be
lost easily by mistake or by accident.
Protecting information: a network provides a more secure environment
for a company's important information than stand-alone computers.
Networks provide an additional layer of security by way of passwords.
Electronic-mail (e-mail): the computer network can also help people
communicate by e-mail. You can attach electronic documents to mail
message like photo, sound and video clip.
Computer Networks may be classified on the basis of geographical area in two broad categories.
1. Local Area Network (LAN)
2. Wide Area Network (WAN)
4.4.1 Local Area Network
Networks used to interconnect computers in a single room, rooms within a building or buildings
on one site are called Local Area Network (LAN). LAN transmits data with a speed of several
megabits per second (106 bits per second). The transmission medium is normally coaxial cables.
LAN links computers, i.e., software and hardware, in the same area for the purpose of sharing
information. Usually LAN links computers within a limited geographical area because they must
be connected by a cable, which is quite expensive. People working in LAN get more capabilities
36
in data processing, work processing and other information exchange compared to stand-alone
computers. Because of this information exchange most of the business and government
organisations are using LAN.
Advantages
The reliability of network is high because the failure of one computer in the network does not
effect the functioning for other computers.
Addition of new computer to network is easy.
High rate of data transmission is possible.
Peripheral devices like magnetic disk and printer can be shared by other computers.
Disadvantages
If the communication line fails, the entire network system breaks down.
Use of LAN
Followings are the major areas where LAN is normally used
37
The term Wide Area Network (WAN) is used to describe a computer network spanning a
regional, national or global area. For example, for a large company the head quarters might be at
Delhi and regional branches at Bombay, Madras, Bangalore and Calcutta. Here regional centers
are connected to head quarters through WAN. The distance between computers connected to
WAN is larger. Therefore the transmission medium used are normally telephone lines,
microwaves and satellite links.
2. Aparnet: The Aparnet is another example of WAN. It was developed at Advanced Research
Projects Agency of U. S. Department. This Network connects more than 40 universities and
institutions throughout USA and Europe.
38
In LAN, the computer terminals and peripheral devices are connected with wires and coaxial
cables. In WAN there is no physical connection. Communication is done through telephone
lines and satellite links.
Cost of data transmission in LAN is less because the transmission medium is owned by a
single organisation. In case of WAN the cost of data transmission is very high because the
transmission medium used are hired, either telephone lines or satellite links.
The speed of data transmission is much higher in LAN than in WAN. The transmission speed
in LAN varies from 0.1 to 100 megabits per second. In case of WAN the speed ranges from
1800 to 9600 bits per second (bps).
Few data transmission errors occur in LAN compared to WAN. It is because in LAN the
distance covered is negligible.
4.5
NETWORK TOPOLOGY
Network Topology
Network topology are the physical layout of the network that the locations of the computers and
how the cable is run between them. It is important to use the right topology. Each topology has
its own strengths and weakness.
Bus topology
A bus topology connects computers along a single or more cable to connect linearly as figure 1.
A network that uses a bus topology is referred to as a "bus network" which was the original form
of Ethernet networks. Ethernet 10Base2 (also known as thinnet) is used for bus topology.
39
Bus topology is the cheapest way of connecting computers to form a workgroup or departmental
LAN, but it has the disadvantage that a single loose connection or cable break can bring down
the entire LAN
Termination is important issue in bus networks. The electrical signal from a transmitting
computer is free to travel the entire length of the cable. Without the termination, when the signal
reaches the end of the wire, it bounces back and travels back up the wire. When a signal echoes
back and forth along an unterminated bus, it is called ringing. The terminators absorb the
electrical energy and stop the reflections.
Advantages of the bus are following.
Bus is easy to use and understand and inexpensive simple network
It is easy to extend a network by adding cable with a repeater that boosts the signal and allows it
to travel a longer distance.
Disadvantages are following.
A bus topology becomes slow by heavy network traffic with a lot of computer because networks
do not coordinate with each other to reserve times to transmit.
It is difficult to troubleshoot a bus because a cable break or loose connector will cause reflections
and bring down the whole network.
Star topology
A star topology links the computers by individual cables to a central unit, usually a hub as in
figure 2. When a computer or other networking component transmits a signal to the network, the
signal travels to the hub. Then, the hub forwards the signal simultaneously to all other
components connected to the hub. Ethernet 10BaseT is a network based on the star topology.
40
Star topology is the most popular way to connect computers in a workgroup or departmental
network.
inside a device called a Multistation Access Unit (MAU) and fiber Distributed Data Interface
(FDDI) networks that the ring in this case is both a physical and logical ring and usually runs
around a campus or collection of buildings to form a high-speed backbone network.
44
45
46
Mississippi, the sub-domain, and edu signifies that this is an educational institution. The gov for
the Library of Congress indicates it is a government institution.
Here are the existing top-level domains in the Internet:
com - commercial
.edu - educational
.net - network
.org - organization
.gov - government
.mil - military
Other countries sometimes add their codes at the end, such as .au for Australia, .ph for
Philippines, and .fr for France.
Internet Services
Most of these Internet Services operate on the client/server model or concept. A computer is a
client if it is receiving files, and is a server if it is sending files. Another way of putting it is you,
your computer, and the corresponding software for each type of service are all clients. A server is
a software that allows a computer to offer a service to another computer. The computer on which
the server software runs is also called a server. To gain access to the Internet most people open
an account with an Internet Service Provider (ISP) in their area. To connect they "dial-up" to
their ISP's server and "log-in" with their account name and password. If you noticed, these
services are loosely and interchangeably used as nouns and verbs, i.e. "please e-mail me."
Electronic Mail
E-mail, so far, is still the most popular service of the Internet. Most users get acquainted with the
Internet using this service. It is better than "snail mail" by post because your message can be
transmitted in seconds. It is better than telephones because the recipient doesn't have to be
around to receive the message. A person also has the option to read and respond to the messages
at one's convenience. Cheaper than long distance phone calls, some people are even able to send
47
and receive e-mail wherever they go when they travel as long as they have access to a connected
computer. Better than fax, through e-mail people can send forms, documents, colored pictures,
etc. as attachments.
Mailing List
Listserv, a popular type of mailing list, is short for "list server" and is based on the e-mail
protocol. As an electronic mailing list it is very convenient when somebody wants to send a
message or newsletter, for example, to many people at once. There are thousands of listservs for
every imaginable purpose, interest, service, and information like online newsletters, online sales
or services, and class listservs. To join a listserv means to be included in the mailing list. You
send an e-mail saying you want to subscribe and you will henceforth receive announcements,
notices, and information through your e-mail inbox.
Newsgroups
This is the Internet equivalent of a discussion group or an electronic bulletin board. There are
newsgroups for every conceivable topic and more, from educational technology and Brazil
culture to stamp collecting and mountaineering. Those with specific hobbies or unusual interests
are quiet happy to have this service in the Internet when there are so few people in their area to
discuss their interests with. You can usually tell a newsgroup by its name. Computer newsgroups
start with comp as in comp.apps.spreadsheets. while recreational newsgroups start with
rec as in rec.arts.cinema. The others are alt for alternate, soc for social, sci for science,
and news for news.
Some newsgroups are moderated, others are not. If it is moderated a
human moderator screens all messages and decides if these are worth
posting. Discussions can be "threaded." For example, in a newsgroup for
beer (alt.beer), one member might ask about good beer pubs in England and
another will start discussing how to keep a beer fresh. More than one
threaded discussion can occur at the same time with different members
posting their opinions and reactions to either one or more threads.
48
Chat
Another popular form of communication over the Internet. Unlike e-mail, listservs, and
newsgroups, chat allows people to converse in "real time." People may actually see you type
your questions and responses. Chats are also organized in chat channels and chat rooms
according to different factors. There are chat rooms for "techies," cat lovers, singles, etc.
FTP
File Transfer Protocol is the standard method for transferring files, whether downloading or
uploading, to and from your computer with another computer on the Internet. It is fairly simple
to use and is the most popular way to download software and other files from the Internet. All
the files in this web site -- the HTML, graphics, etc. -- were uploaded into the Web using
WS_FTP95. There are private FTP sites that require you to log-in with your account or user
name and password before you are allowed to enter. There are also anonymous FTP sites that
allow you to enter using "anonymous" as your user name and your e-mail address as your
password.
Telnet
Telnet is short for "terminal emulation." It is one amazing feature of the Internet that lets you use
the resources of another computer in another part of the world. This is done by remotely logging
to the distant computer which is called the host. Once you are connected you can operate a
remote computer using your keyboard. Some systems require you to log in as a "guest" and
others require your name and address, or user name and password. The telnet is most useful to
access the databases of public services like library catalogs and government directories. Telnet
also allows you to access your e-mail account if you can remotely log in to your ISP's server
computer.
The World Wide Web
The World Wide Web is one of the latest information service to arrive on the Internet but is
arguably the technology that revolutionized the Internet. It is the fastest growing and most
exciting feature. People who "surf" or "browse" are describing activities on the WWW. Other
words pertaining to the Web are homepages, websites, URL, HTML, and HTTP. This section
certainly deserves a page or two of its own so please click on the "Next" button to proceed.
49
50
navigate, surf, or browse around the Web is to move from one site to another, from one page to
another, one file to another using the hypertext links.
Who invented it?
The father of the World Wide Web is Tim Berners-Lee, a physicist working at CERN, the
European Particle Physics Laboratory in Switzerland. In 1989 he developed a network protocol
called Hypertext Transfer Protocol (HTTP) as a way for physicists to send documents over the
internet to share research information. He is also credited as the man who coined the words
"World Wide Web" and defined standards such as the Uniform Resource Locator (URL) and
Hypertext Mark-up Language (HTML).
What is a Web page?
It is a document written in HTML code that contains text and links to other pages, files, or parts
of the document. The earliest Web pages were all-text documents and at present there are still
text-based browsers like Lynx. Although Tim Berners-Lee also wrote the first multimedia
browser in 1990, graphical user-interface (GUI) browsers didn't become popular until Mosaic
came along in 1993.
What are browsers?
Browsers are viewer programs that display Web pages. There are also browsers to view e-mail ,
newsgroup discussions, etc. The most popular GUI browsers today are Netscape and Internet
Explorer. Marc Anderssen, the founder of Netscape, is
also the brains of Mosaic.
Web browsers interpret HTML codes how
to
display
text,
graphics,
links,
and
you
give
the
"View
at
Page
51
code for this page looks like press CtrlandUat the same time, or
click on the word View in the toolbar above you, and select Page
Source.
Not all files on the Web can be displayed by a browser. There are, for
example, applications that perform specific tasks when you click on the
appropriate link, like e-mail.
With their "point-and-click" features, GUI browsers dramatically made the
Internet user-friendly to novice users and its popularity exploded when
people were able to dial-in using a home computer and modem to an
Internet
Service
Provider.
Before
this
only
large
institutions
like
the
specific
address
of
webpage,
like
52
and in its place, type http://cnn.com which is the URL for the home page of "CNN
Interactive," and hit Enter. You can always click on the Back button to return to this page.
URLs are also used in newsgroups, FTP, and telnet to access other addresses and files.
What makes the Web so popular?
Ease of use, thanks to the graphical user interface and point-and-click features. Navigation is
non-linear and non-hierarchical. The hypertext links allows you to jump from one section, page,
file, or site to another in any direction as you please. The variety of file types makes it interactive
and multimedia. Once again, the hypertext links to different file types allows you to perform any
task such as read articles and documents; write an e-mail; view pictures or computer-generated
animation; watch a video clip; listen to music and radio; take an online test; fill out a survey
form; and download files and software.
This section will help you identify the most common file types on the Web
by their file names and extensions on the URL. You already know that a
URL that ends with "html" is a web page.
Common File Types
In general, on the Internet you'll find two kinds of files: ASCII (American Standard Code for
Information Interchange) and binary. These are also the commonly used ways to transfer data by
FTP. ASCII files are simple text files, with the computer codes defining the alphabetical
characters. Examples of ASCII file types are plain text files, HTML, and most e-mail files.
Binary file types are more sophisticated in that the codes also carry
formatting and graphical information, like spreadsheets, sound, images,
video, animation, and Adobe Acrobat's PDF (Portable Document File).
They are called binary because the codes are in 0's and 1's.
Text
Plain text files are identified by the filename extension of .txt. The beauty of plain text
files is they can be translated by any text editor and word processor program, whether
your computer has Notepad, Microsoft Word, or WordPerfect.
53
HTML. Files in this format are called Web pages and have extensions of either html or
htm. The formatting instructions that tell the browser how to display the page are called
tags. For example, to align a sentence on the center, the sentence will begin with
<CENTER> and end with </CENTER>.
DOC and WPD. These are the file extensions of the most common word processor
formats, namely, Microsoft Word for .doc and WordPerfect for .wpd. Since web
browsers do not typically support this format, your computer will be asked or prompted
by what application to open or save this file.
Image
There are at least 10 computer graphic formats out there but the two types you will often come
across in the Web are .gif developed by Compuserve and .jpeg by the Joint Photographic Experts
Group.
Gif (pronounced "jif") images are efficient in that there is no distortion when during
compression and decompression. Thus, they take up less kilobyte space and therefore
load faster, but are limited to 256 colors only.
JPEG (pronounced "jay-peg") can contain a million colors and are ideal for photos or
pictures. JPEG graphics usually don't support transparent backgrounds and shadow
features. Some JPEG files have extensions of .jpg.
The World Wide Web Consortium (W3C) has introduced .png. PNG stands for Portable
Network Graphics and was designed to be fast-loading, efficient, and patent-free. Newer
websites will likely use this format.
Sound/Audio
There are .wav, .mid., and .ra audio files. Each format requires a different software player,
fortunately, most of these come with your multimedia PC, or built-in with your browser, or may
be downloaded at no or minimal cost. These players have panel controls to stop, play, and pause
using the same symbols found on regular cassette players and VCR. The more elaborate ones
54
have volume control, counter, and channel selector. You can even choose and download customdesigned "skins" if you want, say, a zebra stripe theme or metallic look for your control panel.
Waveform is the most common, and both Netscape and Internet Explorer are able to play
this audio file type. Many sound effects such as glass breaking, horn blowing, and animal
sounds are in wave format.
MIDI, which stands for Musical Instrument Digital Interface, is a music synthesizer
format that takes up a lot less space than waveform.
RealNetworks.com developed what is called "real-time audio streaming" which allows
the Internet to function like a radio, broadcasting music and voices in real time. There are
several Internet radios and channels now playing music and talk programs in different
countries. You can listen to a channel that plays nothing but classical music while you are
working on the computer, or hear a live concert, or listen to an interview with a famous
rock star.
MP3 is short for MPEG-1 Layer-3, a technology that compresses digital audio files like
CD music without losing sound quality. Its flexible format makes the MP3 easy to
download, copy, and play on any sequence you want. Sometimes called MPEG Audio
Layer 3 to differentiate it from MPEG digital video files, otherwise, the rest of the world
knows it by its more popular, rather, controversial name of MP3.
Video
Both Netscape Communicator and Internet Explorer have built-in players for video file types
.mpg, .avi, and .mov and .qt.
AVI ("audio video interleave") was developed by Microsoft and is, naturally, the most
common format in Windows. Although there are less and less video files in this format
now it still comes in handy at times.
55
MOV and QuickTime are products of Apple. The beauty of QuickTime is it can run on
either Mac
MPEG, developed by the Motion Picture Experts Group, is an emerging digital video
format with applications on the Web, CDs, cable TV, direct satellite broadcasts, and
high-definition television (HDTV). It is endorsed by the International Standards
Organization (ISO) that formed the MPEG committee, and recognized by over 70
companies including IBM, Apple, Philips, and Sony.
Animation
Animation helps make a page appear more alive, although too much of it can cause headaches.
There are animated gifs such as the ones used in this site, i.e. rotating apple. Dynamic HTML
(DHTML), also creates special effects that makes pages more interactive and, yes, dynamic. A
programming language like JavaScript can create DHTML effects like pop-up windows,
scrolling text, buttons or images that change colors when your mouse moves over them, and in
this
particular
page,
the
slideshow
on
the
upper
left
corner.
Module II
Input output units
INPUT DEVICES
Input devices are the electronic or electromechanical equipment that provides a means of
communicating with the computer system for the input of data. As previously stated, the
processing unit requires this data in the appropriately formatted electronic signals. The input
device that most users are familiar with is the keyboard. This converts a key press in a particular
position on the board into an electronic signal sequence that can be interpreted by the processing
unit as representing a particular character.
What are Input Output Components?
Input output components
Parallel port
56
Serial port
Slow inexpensive
4 wires
2 for power
2 for communication
The hub has several outgoing lines that connect to other devices
Keyboard
This is what you use to type information into your computer. It is the most Common input
device. Keyboards usually have a Qwerty layout.
Typewriter keys
Function keys
Arrow keys
Editing keys
Numeric keypad
Obsolete keys
Different keys on the keyboard have different names. They are used to do different things.
Function keys perform a specific task. The program you are using sets this task. For example,
pressing F1 usually displays the help screen. Special purpose keys perform special preset tasks.
For example, in Word 97 pressing the Print Scrn (Print Screen) key transfers a picture of your
screen to the clipboard. The typewriter keys are used for typing text. They can also be used to
perform tasks that appear on the programs menus. For example, in Word 97, Ctrl+V (hold down
the control and the V key at the same time) does the same action as Edit / Paste(select Paste from
the Edit menu).Pressing TAB moves you to the next tab in a word processing program and the
next cell in a spreadsheet program. Caps Lock sets to capitals all the text you write. The Enter
key causes data to be accepted by the computer. If you are typing, pressing the enter key begins a
new paragraph. The cursor control keys move your cursor (the flashing bar where text appears)
around the screen. Numeric keys allow you to enter numbers quickly.
Dvorak keyboard-
Studies in the US Navy suggest that the payback period would be 10 days from learning
Dvorak.
Mouse
This is another common input device. A mouse is used to point to information on the screen and
either Click on it or Click and drag the information.
Since MS uses two buttons, three button mice are a dying species.
The third (middle) button can be emulated on two-button mice by pressing the left and
58
Left click
Right click
Left double click (time adjustable)
Left drag and drop
Right drag and drop
A Mouse can have one, two or three buttons.
On a two button mouse:
To Click means to quickly press down and release the left mouse button.
To Double Click means to give two clicks very quickly, one after the other.
To Right Click means to click with the right mouse button. This will perform a different
To Click and Drag means to point the mouse at an object, hold down the left mouse
A device that controls the movement of the cursor or pointer on a display screen. A
mouse is a small object you can roll along a hard, flat surface. Its name is derived from its shape,
which looks a bit like a mouse, its connecting wire that one can imagine to be the mouses tail,
and the fact that one must make it scurry along a surface. As you move the mouse, the pointer on
the display screen moves in the same direction. Mice contain at least one button and sometimes
as many as three, which have different functions depending on what program is running. Some
newer mice also include a scroll wheel for scrolling through long documents. Invented by
Douglas Engelbart of Stanford Research Center in 1963, and pioneered by Xerox in the 1970s,
the mouse is one of the great breakthroughs in computer ergonomics because it frees the user to a
large extent from using the keyboard. In particular, the mouse is important for graphical user
interfaces because you can simply point to options and objects and click a mouse button. Such
applications are often called point-and-click programs. The mouse is also useful for graphics
programs that allow you to draw pictures by using the mouse like a pen, pencil, or paintbrush.
There are three basic types of mice:
59
1. mechanical: Has a rubber or metal ball on its underside that can roll in all directions.
Mechanical sensors within the mouse detect the direction the ball is rolling and move the screen
pointer accordingly.
fig. mouse
2.
optomechanical: Same as a mechanical mouse, but uses optical sensors to detect motion
of the ball.
3.
optical: Uses a laser to detect the mouses movement. You must move the mouse along a
special mat with a grid so that the optical mechanism has a frame of reference. optical mice have
no mechanical moving parts. They respond more quickly and precisely than mechanical and opt
mechanical mice, but they are also more expensive.
Touch Screen
60
A type of display screen that has a touch-sensitive transparent panel covering the screen. Instead
of using a pointing device such as a mouse or light pen, you can use your finger to point directly
to objects on the screen.
Although touch screens provide a natural interface for computer novices, they are unsatisfactory
for most applications because the finger is such a relatively large object. It is impossible to point
accurately to small areas of the screen. In addition, most users find touch screens tiring to the
arms after long use.
Voice Recognition
The field of computer science that deals with designing computer systems that can recognize
spoken words. Note that voice recognition implies only that the computer can take dictation, not
that it understands what is being said. Comprehending human languages falls under a different
field of computer science called natural language processing.
A number of voice recognition systems are available on the market. The most powerful can
recognize thousands of words. However, they generally require an extended training session
during which the computer system becomes accustomed to a particular voice and accent. Such
systems are said to be speaker dependent.
Many systems also require that the speaker speak slowly and distinctly and separate each word
with a short pause. These systems are called discrete speech systems. Recently, great strides
have been made in continuous speech systems voice recognition systems that allow you to
speak naturally. There are now several continuous-speech systems available for personal
computers.
Because of their limitations and high cost, voice recognition systems have traditionally been used
only in a few specialized situations. For example, such systems are useful in instances when the
user is unable to use a keyboard to enter data because his or her hands are occupied or disabled.
Instead of typing commands, the user can simply speak into a headset. Increasingly, however, as
the cost decreases and performance improves; speech recognition systems are entering the
mainstream and are being used as an alternative to keyboards.
Other pointing devices
61
Fig. joystick
The Trackball
A trackball has been described as an upside down mouse. It is a small ball with buttons around it
that is either part of the keyboard or attached to the keyboard. Moving the ball moves the pointer
on the computer screen. The buttons are used to do the same things as the buttons on a mouse. A
trackball is used instead of a mouse in notebook and laptop computers.
Fig. trackball
Scanner
62
A device that can read text or illustrations printed on paper and translate the information into a
form the computer can use. A scanner works by digitizing an image dividing it into a grid of
boxes and representing each box with either a zero or a one, depending on
whether the box is filled in. (For color and gray scaling, the same principle applies, but each box
is then represented by up to 24 bits.) The resulting matrix of bits, called a bit map, can then be
stored in a file, displayed on a screen, and manipulated by programs.
Optical scanners do not distinguish text from illustrations; they represent all images as bit maps.
Therefore, you cannot directly edit text that has been scanned. To edit text read by an optical
scanner, you need an optical character recognition (OCR ) system to translate the image into
ASCII characters. Most optical scanners sold today come with OCR packages.
Scanners differ from one another in the following respects:
scanning technology: Most scanners use charge-coupled device (CCD) arrays, which consist
of tightly packed rows of light receptors that can detect variations in light intensity and
frequency. The quality of the CCD array is probably the single most important factor affecting
the quality of the scanner. Industry-strength drum scanners use a different technology that relies
on a photo multiplier tube (PMT), but this type of scanner is much more expensive than the more
common CCD -based scanners.
resolution: The denser the bit map, the higher the resolution. Typically, scanners support
resolutions of from 72 to 600 dpi.
63
bit depth: The number of bits used to represent each pixel. The greater the bit depth, the more
colors or grayscales can be represented. For example, a 24-bit color scanner can represent 2 to
the 24th power (16.7 million) colors. Note, however, that a large color range is useless if the
CCD arrays are capable of detecting only a small number of distinct colors.
size and shape: Some scanners are small hand-held devices that you move across the paper.
These hand-held scanners are often called half-page scanners because they can only scan 2 to 5
inches at a time. Hand-held scanners are adequate for small pictures and
photos, but they are difficult to use if you need to scan an entire page of text or graphics.
Larger scanners include machines into which you can feed sheets of paper. These are called
sheet-fed scanners. Sheet-fed scanners are excellent for loose sheets of paper, but they are unable
to handle bound documents.
A second type of large scanner, called a flatbed scanner, is like a photocopy machine. It consists
of a board on which you lay books, magazines, and other documents that you want to scan.
Overhead scanners (also called copy board scanners) look somewhat like overhead projectors.
You place documents face-up on a scanning bed, and a small overhead tower moves across the
page. This is used to put both text (writing) and graphics (pictures) into the computer. It digitizes
the text and images i.e. it converts theminto a form that can be used in the computer. This
process is known as optical character recognition (O.C.R). Before the text can be used on the
computer, it has to be converted into characters by optical recognition software.
a. Text and Code Scanners
Bar-code readers
A barcode reader (or barcode scanner) is an electronic device for
reading printed barcodes. Like a flatbed scanner, it consists of a light source,
a lens and a light sensor translating optical impulses into electrical ones.
Additionally, nearly all barcode readers contain decoder circuitry analyzing
64
the barcode's image data provided by the sensor and sending the
barcode's content to the scanner's output port.
The 14 characters of the E-13B font. The control characters bracketing each numeral block are
(from left to right) transit, on-us, amount, and dash.
An example of the CMC-7 MICR font. Shown are the 15 characters of the CMC-7 font. The
control characters after the numerals are (from left to right) internal, terminator, amount,
routing, and an unused character.
65
In addition to their unique fonts, MICR characters are printed with a magnetic ink or toner,
usually containing iron oxide. Magnetic printing is used so that the characters can be reliably
read into a system, even when they have been overprinted with other marks such as cancellation
stamps.
66
b. Image scanners
Most widely used digitization device
You can try to run OCR once you have the image
Resolution measured in dots per inch. dpi
More dpi: crisper image
Fewer dpi: smaller file
Audio Input
Microphone with speech recognition software
But the quality has improved, and maybe we will use itfor more general input. Other
Sound cards
MIDI board
Output Devices
An output device is any peripheral device that converts machine-readable
information into people-readable form such as a monitor, printer, plotter
and voice output device.
67
Monitors
Printers
Plotters
Voice Output Devices
Modems
Screen resolution: This is the degree of sharpness of a displayed character or image. The
screen resolution is usually expressed as the number of columns by the number rows. A
1024x768 resolution means that it has 1024 dots in a line and 768 lines. A smaller screen
looks sharper on the same resolution. Another measure of display resolution is a dot
pitch.
There are two forms of display: cathode-ray tubes (CRTs) and flat-panel display.
Cathode Ray Tubes (CRT)
A CRT is a vacuum tube used as a display screen for a computer output device. Although the
CRT means only a tube, it usually refers to all monitors. IBM and IBM compatible
microcomputers operate two modes unlike Macintosh based entirely on graphics mode. They are
68
a text mode and a graphics mode. Application programs switch computers into appropriate
display mode.
Monochrome Monitors
A monochrome monitor has two colors, one for foreground and the other for background. The
colors can be white, amber or green on a dark (black) background. The monochrome monitors
display both text and graphics modes.
Color Monitors
A color monitor is a display peripheral that displays more than two colors. Color monitors have
been developed through the following paths.
o
CGA: This stands for Color Graphics Adapter. It is a circuit board introduced by IBM
and the first graphics standard for the IBM PC. With a CGA monitor, it is harder to read
than with a monochrome monitor, because the CGA (320 X 200) has much fewer pixels
than the monochrome monitor (640 X 350). It supports 4 colors.
EGA: It stands for Enhanced Graphics Adapter. EGA is a video display standard that has
a resolution of 640 by 350 pixels and supports 16 colors. EGA supports previous display
modes and requires a new monitor.
VGA: VGA stands for Video Graphics Array. This is a video display standard that
provides medium to high resolution. In a text mode, the resolution of this board is 720 by
400 pixels. It supports 16 colors with a higher resolution of 640 by 480 pixels and 256
colors with 320 X 200 pixels.
Super VGA: This is a very high resolution standard that displays up to 65,536 colors.
Super VGA can support a 16.8 million colors at 800 by 600 pixels and 256 colors at 1024
by 768 pixels. A high-priced super VGA allows 1280 by 1024 pixels. Larger monitors
(17" or 21" and larger) with a high resolution of 1600 by 1280 pixels are available. VESA
(Video Electronics Standards Association) has set a standard for super VGA.
69
A display technology that creates characters by means of reflected light and is commonly used in
digital watches and laptop computers. LCDs replaced LEDs (light emitting diodes) because
LCDs use less power. LCDs are difficult to read in a strong light, because they do not emit their
own light. Portable computers wanted to have brighter and easier to read displays. Backlit LCDs
are used for the purpose now.
o
Backlit LCDs: This is a type of LCD display having its own light source provided from
the back of the screen. The backlit makes the background brighter and clear, as a result
the texts and images appear sharper. However, this still is much less clear than CRTs.
Thus, better technology is needed.
Active Matrix LCDs: This is an LCD display technique in which every dot on the screen
has a transistor to control it more accurately. This uses a transistor for each monochrome
or each red, green and blue dot. It provides better contrast, speeds up screen refresh and
reduces motion smearing.
Printers
A printer is an output device that produces a hard copy of data. The resolution of printer output
is expressed as DPI. Printers can be classified into different types in several ways. First, the
printers can be divided into three categories by the way they print.
Serial Printers: Also called a character printer. Print a single character at a time. They
are usually inexpensive and slow.
70
Line Printers: Print a line at a time. They are expensive and very fast. Line printers use a
band, a chain, etc.
Page Printers: Also called a laser printer. Print a page at a time. They usually use a laser
to produce page images. Quality is best. This is a little bit expensive, but the price of the
personal laser printer is decreasing. The price range of the personal laser printer is around
$400, today.
Second, printers can be classified into two forms according to the use of a hammer.
Impact Printers: Impact printers transfer the image onto paper through a printing mechanism
that strikes the paper, ribbon and character together. Most impact printers use continuous-form
paper, which means the paper is connected together to produce a continuous flow through the
printer. Examples of impact printers are Dot Matrix printers, and Band and Chain Printers.
Nonimpact Printers: Nonimpact printing means that printing occurs without having a
mechanism strike the paper. Ink can be be sprayed against the paper or heat and pressure are used
to fuse a fine black powder into the shape of a character. Examples of nonimpact printers are InkJet printers, Laser printers, Page printers, and Thermal printers.
Bit-Mapped Printers: Images are formed from groups of dots and can be placed
anywhere on the page. They have many printing options and good printing quality. They
use PostScript as a standard language for instructing a microcomputer.
Character-based Printers: Printer print characters into the lines and columns of a page.
These printers use predefined set of characters and are restricted in position of characters.
Microcomputers use five kinds of printers. They are daisy wheel printers, chain printers, dotmatrix printers, ink-jet printers, and laser printers.
Daisy-Wheel Printer
Daisy-Wheel is a printer mechanism that uses any kind of hub (wheel) having a set of spokes at
the margin of the hub. The wheel can be removed to use a different character set. The end of
each spoke is a raised image of a type character. When the wheel is turned and the required
character is aligned to the print hammer, the character is then struck into a ribbon and onto a
71
paper
with
the
hammer.
Daisy-Wheel Printer prints typewriter-like very high quality characters. However, they are
slower and less reliable than dot-matrix printers. Microcomputer users seldom use this printer,
because the better dot-matrix printers and inexpensive laser printers are available today.
Dot-Matrix Printer
Dot-matrix printers are printers that write characters and form graphic images using one or two
columns of tiny dots on a print head. The dot hammer moving serially across the paper strikes an
inked-ribbon and creates images on paper. A dot matrix printer creates a character with a series
of tiny pins or wires that strike the ribbon or page and leave an image in dots. The resolution of
the matrix is defined in terms of rows and columns of dots. A 7 by 9 matrix uses seven dots
horizontally and nine dots vertically to create a character. Some dot matrix printers have a 36 by
24 matrix. The size of the matrix determines the quality of the printed character. Dot matrix
printers are near letter quality, faster than daisy wheel printers, and have speeds ranging from 60
to 350 cps. Figure below shows the letter L created by a dot matrix printer,
72
Dot matrix printers are popular printers used with microcomputers, because the printers are
highly reliable and inexpensive. They are used for tasks where a high-quality image is not
essential. Many users, however, move from dot printers to laser printers, because the price of
laser printers is falling down. Several kinds of dot matrix printers are available with print heads
that have 7, 9, 18, or 24 pins.
Ink-Jet Printer
Ink-jet is a printer mechanism that sprays one or more color of ink at high speed onto the paper
and produces high-quality printing. Characters are formed as a result of electrically charged or
heated ink being sprayed in fine jets onto the paper. Individual nozzles in the printing head
produce high resolution (up to 400 dots per inch or 400 dpi) dot matrix characters.
This printer also produces color printing as well as high-quality image. That is, ink-jet printers
can be used for variety of color printing at a relatively low cost. Ink-jet printing has two
methods: Continuous stream method and drop-on- demand method.
73
Laser Printer
A laser printer is a printer that uses the electrophotograpic method used in a copy machine. The
printer uses a laser beam light source to create images on a photographic drum.
74
In 1984, Hewlett-Packard introduced the first desktop laser printer, called the LaserJet. The laser
printer revolutionized personal computer printing and has spawned desktop publishing.
The laser printer produces high-resolution letters and graphics quality images, so it is adopted in
applications requiring high-quality output. Although a high-priced color laser printer is also
available in the market, a less expensive, desktop gray scale laser printer is widely used.
Recently, the laser printer is gaining its market share dramatically, mainly because the lowered
price and the quality.
Drum Printers In a drum printer, the character set is inscribed as raised fonts on a hollow metal
drum. These raised characters are formed into lines or bands on the drum. Figure 12-5 shows a
typical print drum. All the As are on one line, all the Bs are on the next line, and so forth, until
all the characters in the set form a line each. The character set is repeated for each column that
the printer
is capable of printing. If the printer is an 80-column printer, the drum has 80 characters on each
line. The character drum is rotated at a high speed. As the desired character faces the paper, a
print hammer for that column is activated or fired, forcing the paper and inked ribbon against the
drum. The character on the drum is imprinted on the paper shown in figure 12-6. Normally, the
75
hammer bank contains one hammer for each character column of a line. If the printer has a
capacity to print 132 columns, then the hammer bank will consist of 132 hammers. As a line is
printed, each hammer is fired as the character to be printed in its column faces the paper. A drum
printer prints one line of data for each rotation of the drum. Drum printers can print from 300 to
1,200 lines per minute, depending of the rotational speed of the drum and how fast the printer
can setup to print the next line.
76
Plotters
A plotter is a special-purpose output device that draws images with ink pens. That is, the plotter
is a graphics printer for making sophisticated graphs, charts, maps, and three-dimensional
graphics as well as high-quality colored documents. It can also produce larger size of documents.
Plotters require data in a vector graphics format that can produce images with a series of lines.
There are two main types of plotters:
Drum Plotter: This is a plotter that has a drum. A paper wraps the drum that rotates to
produce plots. Pens in a drum plotter move across the paper while the drum is turning. A
drum plotter is usually used to produce smaller drawings.
77
A drum plotter
The size of the graph is therefore limited only by the width of the drum and can be of any length.
Flatbed Plotter: This is a plotter that has a bed. This is also called a table plotter. The plotter
draws graphics on the paper placed on the bed. There are several size of beds. This plotter is
usually used for producing large drawings. This is a plotter where the paper is fixed on a flat
surface and pens are moved to draw the image. This plotter can use several different colour pens
to draw with.
The size of the plot is limited only by the size of the plotter's bed.
Voice-Output Devices
78
This device produces a human speech like sound, but actually is prerecorded vocalized sounds.
Voice output is used in the telephone information system, where the requested number is
reported using a voice output system. Voice synthesis has a robotic sound due to the difficulties
of replicating the complexities of human speech and pronunciation.
Voice answer back (VAB) is used to respond to telephone enquiries, such as the speaking clock.
Fig.
For example, when a student enrolls courses using a telephone registration system, he or she
hears voice output upon your request. Voice output is becoming common in voice messaging
systems.
Modem
Another form of the output device is a modem. A modem is short for "MOdulatorDEModulator." Modulation is the process of converting from digital to analog. Demodulation
is
the
process
of
converting
from
analog
to
digital.
The modem enables digital microcomputers to send output through analog telephone lines. Both
voice and data can be carried over through the modem. The modem is not only an output device
but also an input device that receives data and voice through a communication channel.
LANGUAGE/SOFTWARE
79
3.1
INTRODUCTION
In the previous lesson we discussed about the different parts and configurations of computer. It
has been mentioned that programs or instructions have to be fed to the computer to do specific
task. So it is necessary to provide sequence of instructions so that your work can be done. We
can divide the computer components into two major areas, namely, hardware and software.
Hardware is the machine itself and its various individual equipment. It includes all mechanical,
electronic and magnetic devices such as monitor, printer, electronic circuit, floppy and hard disk.
In this lesson we will discuss about the other part, namely, software.
3.2
OBJECTIVES
3.3
WHAT IS SOFTWARE?
As you know computer cannot do anything without instructions from the user. In order to do any
specific job you have to give a sequence of instructions to the computer. This set of instructions
is called a computer program. Software refers to the set of computer programs, procedures that
describe the programs, how they are to be used. We can say that it is the collection of programs,
which increase the capabilities of the hardware. Software guides the computer at every step
where to start and stop during a particular job. The process of software development is called
programming.
You should keep in mind that software and hardware are complementary to each other. Both
have to work together to produce meaningful result. Another important point you should know
that producing software is difficult and expensive.
80
3.4
SOFTWARE TYPES
Application Software: Application Software is a set of programs to carry out operations for a
specific application. For example, payroll is an application software for an organization to
produce pay slips as an output. Application software is useful for word processing, billing
system, accounting, producing statistical report, analysis of numerous data in research, weather
forecasting, etc. In later modules you will learn about MS WORD, Lotus 1-2-3 and dBASE III
Plus. All these are application softwares.
System Software: You know that an instruction is a set of programs that has to be fed to the
computer for operation of computer system as a whole. When you switch on the computer the
programs written in ROM is executed which activates different units of your computer and
makes it ready for you to work on it. This set of program can be called system software.
Therefore system software may be defined as a set of one or more programs designed to control
the operation of computer system.
System software are general programs designed for performing tasks such as controlling all
operations required to move data into and out of the computer. It communicates with printers,
card reader, disk, tapes etc. monitor the use of various hardware like memory, CPU etc. Also
system software are essential for the development of applications software. System Software
allows application packages to be run on the computer with less time and effort. Remember that
it is not possible to run application software without system software.
81
manufactures build and supply this system software with the computer system. DOS, UNIX and
WINDOWS are some of the widely used system software. Out of these UNIX is a multi-user
operating system whereas DOS and WINDOWS are PC-based. We will discuss in detail about
DOS and WINDOWS in the next module.
So without system software it is impossible to operate your computer. The following picture is
shown in Fig. 3.1 relation between hardware, software and you as a user of computer system.
Fig. 3.1
3.5
WHAT IS LANGUAGE?
You are aware with the term language. It is a system of communication between you and me.
Some of the basic natural languages that we are familiar with are English, Hindi, Oriya etc.
These are the languages used to communicate among various categories of persons. But how you
will communicate with your computer. Your computer will not understand any of these natural
languages for transfer of data and instruction. So there are programming languages specially
developed so that you could pass your data and instructions to the computer to do specific job.
You must have heard names like FORTRAN, BASIC, COBOL etc. These are programming
languages. So instructions or programs are written in a particular language based on the type of
job. As an example, for scientific application FORTRAN and C languages are used. On the other
hand COBOL is used for business applications.
82
(a)
Machine Language
Machine Language is the only language that is directly understood by the computer. It does not
needs any translator program. We also call it machine code and it is written as strings of 1's (one)
and 0s (zero). When this sequence of codes is fed to the computer, it recognizes the codes and
converts it in to electrical signals needed to run it. For example, a program instruction may look
like this:
1011000111101
It is not an easy language for you to learn because of its difficult to understand. It is efficient for
the computer but very inefficient for programmers. It is considered to the first generation
language. It is also difficult to debug the program written in this language.
Advantage
The only advantage is that program of machine language run very fast because no translation
program is required for the CPU.
Disadvantages
1. It is very difficult to program in machine language. The programmer has to know details of
hardware to write program.
2. The programmer has to remember a lot of codes to write a program which results in program
errors.
83
(b)
Assembly Language
It is the first step to improve the programming structure. You should know that computer can
handle numbers and letter. Therefore some combination of letters can be used to substitute for
number of machine codes.
The set of symbols and letters forms the Assembly Language and a translator program is
required to translate the Assembly Language to machine language. This translator program is
called `Assembler'. It is considered to be a second-generation language.
Advantages:
1.
The symbolic programming of Assembly Language is easier to understand and saves a lot of
time and effort of the programmer.
2.
3.
Assembly Language has the same efficiency of execution as the machine level language.
Because this is one-to-one translator between assembly language program and its corresponding
machine language program.
Disadvantages:
1. One of the major disadvantages is that assembly language is machine dependent. A program
written for one computer might not run in other computers with different hardware configuration.
3.6
You know that assembly language and machine level language require deep knowledge of
computer hardware where as in higher language you have to know only the instructions in
English words and logic of the problem irrespective of the type of computer you are using.
Higher level languages are simple languages that use English and mathematical symbols like +, , %, / etc. for its program construction.
84
You should know that any higher level language has to be converted to machine language for the
computer to understand.
Higher level languages are problem-oriented languages because the instructions are suitable for
solving a particular problem. For example COBOL (Common Business Oriented Language) is
mostly suitable for business oriented language where there is very little processing and huge
output. There are mathematical oriented languages like FORTRAN (Formula Translation) and
BASIC (Beginners All-purpose Symbolic Instruction Code) where very large processing is
required.
Thus a problem oriented language designed in such a way that its instruction may be written
more like the language of the problem. For example, businessmen use business term and
scientists use scientific terms in their respective languages.
3.6.1 Compiler
It is a program translator that translates the instruction of a higher level language to machine
language. It is called compiler because it compiles machine language instructions for every
program instructions of higher level language. Thus compiler is a program translator like
assembler but more sophisticated. It scans the entire program first and then translates it into
machine code.
The programs written by the programmer in higher level language is called source program.
After this program is converted to machine languages by the compiler it is called object
program.
85
(Compile)
Program
Machine Language
Program
Fig. 3.2
A compiler can translate only those source programs, which have been written, in that language
for which the compiler is meant for. For example FORTRAN compiler will not compile source
code written in COBOL language.
Object program generated by compiler is machine dependent. It means programs compiled for
one type of machine will not run in another type. Therefore every type of machine must have its
personal compiler for a particular language. Machine independence is achieved by using one
higher level language in different machines.
3.6.2 Interpreter
An interpreter is another type of program translator used for translating higher level language
into machine language. It takes one statement of higher level languages, translate it into machine
language and immediately execute it. Translation and execution are carried out for each
statement. It differs from compiler, which translate the entire source program into machine code
and does involve in its execution.
.
The advantage of interpreter compared to compiler is its fast response to changes in source
program. It eliminates the need for a separate compilation after changes to each program.
Interpreters are easy to write and do not require large memory in computer. The disadvantage of
interpreter is that it is time consuming method because each time a statement in a program is
86
executed then it is first translated. Thus compiled machine language program runs much faster
than an interpreted program.
3.8
TERMINAL QUESTIONS
1.
2.
3.
4.
5.
What is assembly language? What are its advantages over machine languages?
What is higher level languages? Why are higher level languages are easier to use.
10
3.9
IN-TEXT QUESTIONS 1
1. Program is a set of instructions given to the computer by the user. Software is a set of
computer programs and procedures that describe the programs. Programming is the process of
software development.
2. Application Software is a set of programs to carry out operations for a specific application.
System software is a set of programs written for performing tasks such as controlling all
operations required to move data into and out of the computer.
3. (a) False
b) T rue
(c) True
IN-TEXT QUESTIONS 2
1. FORTRAN is used for scientific applications whereas COBOL is used for business
applications.
2. Machine Languages are the only language that is directly understood by the computer. It is
written in binary form that is 0 and 1. The set of symbols and letters forms the Assembly
Language.
3. (a) True
(b) False
(c) True
87
IN-TEXT QUESTIONS 3
1. Both compiler and interpreter are program translators used for translating higher level
language into machine language. While compiler scans the entire program first and then
translates it into machine code, an Interpreter translates the program line by line.
2. FORTRAN (Formula Translation) and BASIC (Beginners All-purpose Symbolic Instruction
Code) are some of the high level languages.
3. (a) True (b) False (c) True
88
The first task, managing the hardware and software resources, is very
important, as various programs and input methods compete for the
attention of the central processing unit (CPU) and demand memory,
storage and input/output (I/O) bandwidth for their own purposes. In this
capacity, the operating system plays the role of the good parent, making
sure that each application gets the necessary resources while playing
nicely with all the other applications, as well as husbanding the limited
capacity of the system to the greatest good of all the users and
applications.
The second task, providing a consistent application interface, is especially
important if there is to be more than one of a particular type of computer
using the operating system, or if the hardware making up the computer is
ever open to change. A consistent application program interface (API)
allows a software developer to write an application on one computer and
have a high level of confidence that it will run on another computer of the
same type, even if the amount of memory or the quantity of storage is
different on the two machines.
Even if a particular computer is unique, an operating system can ensure
that applications continue to run when hardware upgrades and updates
occur. This is because the operating system and not the application is
charged with managing the hardware and the distribution of its resources.
One of the challenges facing developers is keeping their operating
systems flexible enough to run hardware from the thousands of vendors
manufacturing computer equipment. Today's systems can accommodate
thousands of different printers, disk drives and special peripherals in any
possible combination.
The operating system is the interface between the hardware and the user.
If there were no O/S, the computer would be an expensive door stop.
89
90
increased performance since it was possible for job to start as soon as the previous job
finished
2. Disadvantages
o
due to lack of protection scheme, one batch job can affect pending jobs (read too many
cards, etc)
91
One difficulty with simple batch systems is that the computer still needs
to read the the deck of cards before it can begin to execute the job. This
means that the CPU is idle (or nearly so) during these relatively slow
operations.
Since it is faster to read from a magnetic tape than from a deck of cards,
it became common for computer centers to have one or more less
powerful computers in addition to there main computer. The smaller
computers were used to read a decks of cards onto a tape, so that the
tape would contain many batch jobs. This tape was then loaded on the
main computer and the jobs on the tape were executed. The output from
the jobs would be written to another tape which would then be removed
and loaded on a less powerful computer to produce any hardcopy or other
desired output.
It was a logical extension of the timer idea described above to have a
timer that would only let jobs execute for a short time before interrupting
them so that the monitor could start an IO operation. Since the IO
operation could proceed while the CPU was crunching on a user program,
little degradation in performance was noticed.
Since the computer can now perform IO in parallel with computation, it
became possible to have the computer read a deck of cards to a tape,
drum or disk and to write out to a tape printer while it was computing.
This process is called SPOOLing: Simultaneous Peripheral Operation
OnLine.
Spooling batch systems were the first and are the simplest of the
multiprogramming systems.
92
One advantage of spooling batch systems was that the output from jobs
was available as soon as the job completed, rather than only after all jobs
in the current cycle were finished.
Multiprogramming Systems (1960s - present)
As machines with more and more memory became available, it was
possible to extend the idea of multiprogramming (or multiprocessing) as
used in spooling batch systems to create systems that would load several
jobs into memory at once and cycle through them in some order, working
on each one for a specified period of time.
At this point the monitor is growing to the point where it begins to
resemble a modern operating system. It is responsible for:
starting user jobs
spooling operations
IO for user jobs
switching between user jobs
ensuring proper protection while doing the above
93
with the expectation, but not the certainty, that the program will
eventually return control to the operating system.
If the machine has the capability of protecting memory , then a bug in one
program is less likely to interfere with the execution of other programs. In
a system without memory protection, one program can change the
contents of storage assigned to other programs or even the storage
assigned to the operating system. The resulting system crashes are not
only disruptive, they may be very difficult to debug since it may not be
obvious which of several programs is at fault.
Timesharing Systems (1970s - present)
Back in the days of the "bare" computers without any operating system to
speak of, the programmer had complete access to the machine. As
hardware and software was developed to create monitors, simple and
spooling batch systems and finally multiprogrammed systems, the
separation between the user and the computer became more and more
pronounced.
Users, and programmers in particular, longed to be able to "get to the
machine" without having to go through the batch process. In the 1970s
and especially in the 1980s this became possible two different ways.
The
first
involved
timesharing
or
time
slicing.
The
idea
of
94
95
include applications such as the guided missile mentioned above and the
computer in modern cars that controls the fuel injection system.
A multiprocessor computer is one with more than one CPU. The
category of multiprocessor computers can be divided into the following
sub-categories:
shared memory multiprocessors have multiple CPUs, all with
access to the same memory. Communication between the the
processors is easy to implement, but care must be taken so that
memory accesses are synchronized.
distributed memory multiprocessors also have multiple CPUs, but
each CPU has it's own associated memory. Here, memory access
synchronization is not a problem, but communication between the
processors is often slow and complicated.
Related to multiprocessors are the following:
Networked
systems
consist
of
multiple
computers
that
are
resources.
Users,
however,
are
aware
of
the
different
networked
systems
in
that
the
multiple
computers
are
96
digital signals. In analog signal the transmission power varies over a continuous range with
respect to sound, light and radio waves. On the other hand a digital signal may assume only
discrete set of values within a given range. Examples are computer and computer related
equipment. Analog signal is measured in Volts and its frequency in Hertz (Hz). A digital signal is
a sequence of voltage represented in binary form. When digital data are to be sent over an analog
form the digital signal must be converted to analog form. So the technique by which a digital
signal is converted to analog form is known as modulation. And the reverse process, that is the
conversion of analog signal to its digital form, is known as demodulation. The device, which
converts digital signal into analog, and the reverse, is known as modem.
Time
Analog Signal
Digital Signal
97
Fig.
MODEMS :They translate data from digital to analog form at the sending end of the
communications path and from analog to digital at the receiving end .Put simply, the object of a
modem is to change the characteristics of a simple sine wave, referred to as a carrier signal. We
know this carrier signal has several properties that can be altered to represent data. It has
amplitude (height); it has frequency (a unit of time); and it has phase (a relative starting point).
Modems are capable of altering one or more of these characteristics to represent data. The job a
modem performs can be divided into two discrete parts or phases at each end of the
communications link. At the sending end, it converts digital bit streams (strings of 0s and
1s) into analog sine waves. This is the encoding process. Another component within
the modem then changes (modulates) the analog signal so the data may be transmitted
simultaneously with other data and voice traffic that has also been modulated. This process is
basically reversed at the receiving end. There, the analog signal is brought back to its basic
level (demodulated), and the analog sine waves are reconverted (decoded) back into
their corresponding bit streams
98
TYPES OF COMPUTERS
Now let us discuss the varieties of computers that we see today. Although they belong to the fifth
generation they can be divided into different categories depending upon the size, efficiency,
memory and number of users. Broadly they can be divided it to the following categories.
1. Microcomputer: A microcomputer is a computer with a microprocessor as its central
processing unit. Another general characteristic of these computers is that they occupy
physically small amounts of space when compared to mainframe and minicomputers. Many
microcomputers (when equipped with a keyboard and screen for input and output) are also
personal computers (in the generic sense). Microcomputer is at the lowest end of the
computer range in terms of speed and storage capacity. Its CPU is a microprocessor. The first
microcomputers were built of 8-bit microprocessor chips. The most common application of
personal computers (PC) is in this category. The PC supports a number of input and output
devices. An improvement of 8-bit chip is 16-bit and 32-bit chips. Examples of
microcomputer are IBM PC, PC-AT .
microcomputer
99
This is designed to support more than one user at a time. It possesses large storage capacity and
operates at a higher speed. The mini computer is used in multi-user system in which various
users can work at the same time. This type of computer is generally used for processing large
volume of data in an organisation. They are also used as servers in Local Area Networks (LAN).
Fig. minicomputer
Fig. mainframe
These types of computers are generally 32-bit microprocessors. They operate at very high speed,
have very large storage capacity and can handle the work load of many users. They are generally
used in centralised databases. They are also used as controlling nodes in Wide Area Networks
(WAN). Example of mainframes are DEC, ICL and IBM 3000 series.
100
Storage
I/O
RAM
task management
program management
job management
serialization
catalogs
communication
(3)
101
Mainframe
Year
ENIAC
1942
MarkI
1944
BINAC
1949
Whirlwind
1960
UNIVAC
1952
IBM 701
1953http://www.thocp.net/hardware/ibm_360_family.htm
IBM 360
1963
102
Laptops are portable computers. Originally, laptops were large, heavy, short battery life beasts.
Nowadays, laptops (also referred to as notebooks) are light, powerful, have good battery life, and
serve as a desktop replacement for many individuals (including myself).
Fig. laptop
A server is a machine developed to allow for file or print serving, application hosting, or some
other task usually involving many simultaneous connections. Common features of servers
include
processors.
Fig. server
PDAs
A Personal Digital Assistant (PDA) is a commonplace item in many businesses
and homes. Spurred by the success of Palm Pilots, the PDA industry has had
tremendous growth in the past few years.
A PDA is a device which allows an individual to keep their notes, email, schedule,
small documents, and other information with them at all times. It is a useful device for record
keeping and usually syncs with your computer to allow your contact list and emails to be "in
sync" with each other in your handheld and normal computers.
103
Palm Pilots are the most prevalent PDAs on the market, with a market share of about 30%.
Most PDAs are based on either the Palm operating system or the Microsoft PocketPC operating
system.
Palm Pilots present an interesting challenge to IT staff who are trying to support it.
At one firm I worked at, we went through several different policies in regards to
supporting PDAs. Originally, we would not support any PDA, though if a member of
management were to purchase one, we would support them individually. Eventually, we decided
on a standard and if anyone were to buy the standard PDA we would support it. This allowed us
to designate an expert (which coincidentally happened to be me) on PDAs and be able to develop
support procedures for the specific PDA we would support.
104