Chap 1
Chap 1
Chap 1
Computer
A Computer is an automatic electronic, calculating device which can process a given input in a
prescribed manner to produce a desired output, at a very high speed with remarkable accuracy. It
can also perform all arithmetic and logical functions according to instructions given in a
systematic order to solve any problem and produce processed information.
Advantages of Computers
Speed
Since Computer is an electronic machine and electrical pulses travel at the rate of passage of
electric current. This speed enables the computer to perform millions of calculations per second.
Storage
A computer has too much storage capacity. Once recorded, a piece of information can never be
forgotten.
High Accuracy
A computer can be considered as 100% accurate. Checking circuits are built directly into the
computer, that computer errors that undetected are extremely rare.
Versatility
Computer can perform any task, provided it can be reduced to a series of logical steps.
Diligence
Computer never gets tired. It performs most boring, repetitive and monotonous task.
Automatic Operation
Once a program is fed into computer the individual instructions are processed on after the other.
Thus computer works automatically without manual intervention.
Obedience
The ability to take in and store a sequence of instructions for the computer to obey. Such a
sequence of instruction is called a PROGRAM and it must be written in the Computer Language.
Decision Making Capability
Computer can take simple decisions, such as less than, greater than or equal to. It also determines
whether a statement is true or false.
Hardware
The physical components and other attached input and output devices of computers are called
Hardware. All Hardware components may be connected mechanically, electrically or
electronically with each other. Hardware includes input/output devices, CPU, backing storage
devices and electronic circuit.
Software
Computer required a number of instructions to do any job. The set of these instructions forms
programs. Numbers of programs are combined for some purposes are called software.
They are designed by manufactures and programmers.
Types of Software
1. System Software
2. Application Software
Ages of Computer
At the early age people used pebbles, stones, sticks, scratches, symbols and finger tips to count,
which were later replaced by numbers.
The history of computing is divided into three ages during which man invented and improved
different types of calculating machines. These ages are,
Dark age 300 BC to 1890
Middle age 1890 AD to 1944
Modern age since 1944 AD
Dark Age (3000 BC to 1890 AD
ABACUS
About 3000 years BC, Chinese developed the first calculating machine named Abacus or
Soroban.
Abacus consists of a rectangular wooden frame having rods which carry round beads. Counting
is done by shifting the beads from one side to another.
OUGHTREDS SLIDE RULES
In 1632 AD William Oughtred, an English mathematician developed a slide rule. This device
consists of two movable rules placed side by side on which number were marked.
PASCALS CALCULATOR
Blas Pascal (1623-1662), a French developed the first mechanical calculating machine in 1642.
This machine consists of gears, wheels and dials. It was capable of adding and subtracting
operations.
GOTTEFRIED WILHOLM LEIBNITZ
In 1671, a German, Gottfried Von Leibnitz (1646-1716) improved Pascals calculator to make it
capable of performing all maths operations.
JACQUARDS LOOM
In 1801, a French, Joseph Marie Jacquard developed the first punch card machine.
BABBAGE DIFFERENCE ENGINE
Charles Babbage (1792-1871) an English mathematician also called Father of modern computer.
As he gave the true concept of computer at Cambridge University, he developed Babbage
Difference Engine in 1823 and Babbage Analytical Engine in 1833.
Lady Ada Augusta an assistant of Babbage is called the first programmer.
Middle Age (1890 AD TO 1944 AD)
DOCTOR HERMAN HOLLERITH
In 1880s Herman Hollerith an American developed a machine which used punch card system.
The machine could sense and punch holes, recognize the number and make required calculations.
This machine was first used in 1890s by American Census Bureau.
HOWARD AIKEN- MARK-1 COMPUTER
In 1937, Professor Howard Aiken builds the first electro-mechanical computer Mark-1, by trying
to combine Babbages theory and Holleriths punching technologies. He completed his project in
1944 with the help of IBM Engineers.
Mark 1 could multiply two, twenty digit numbers in 5 seconds and made a lot of noise. It had a
shape like a monster about 50 feet long, 8 feet high, having wiring of length equal to distance
from Lahore to Gilgit or Karachi to Bahawalpur (800km) and had thousand ends of electromagnetic relays.
ABC (ATANASOFF BERRY COMPUTER)
ABC a special purpose computer was developed in 1938 by Dr. John Vincent Atanasoff and
Clifford Berry at Iowa State College, USA.
3. Hybrid Computers
Various specifically designed computers are with both digital and analog characteristics
combining the advantages of analog and digital computers when working as a system. Hybrid
computers are being used extensively in process control system where it is necessary to have a
close representation with the physical world.
The hybrid system provides the good precision that can be attained with analog computers and
the greater control that is possible with digital computers, plus the ability to accept the input data
in either form.
Classification of Computers According to Size
1. Super Computers
Large scientific and research laboratories as well as the government organizations have extra
ordinary demand for processing data which required tremendous processing speed, memory and
other services which may not be provided with any other category to meet their needs. Therefore
very large computers used are called Super Computers. These computers are extremely
expensive and the speed is measured in billions of instructions per seconds.
2. Main Frame Computers
The most expensive, largest and the most quickest or speedy computer are called mainframe
computers. These computers are used in large companies, factories, organizations etc. the
mainframe computers are the most expensive computers, they cost more than 20 million rupees.
In this computers 150 users are able to work on one C.P.U. The mainframes are able to process 1
to 8 bits at a time. They have several hundreds of megabytes of primary storage and operate at a
speed measured in nano second.
3. Mini Computers
Mini computers are smaller than mainframes, both in size and other facilities such as speed,
storage capacity and other services. They are versatile that they can be fitted where ever they are
needed. Their speeds are rated between one and fifty million instructions per second (MIPS).
They have primary storage in hundred to three hundred megabytes range with direct access
storage device.
4. Micro Computers
These are the smallest range of computers. They were introduced in the early 70s having less
storing space and processing speed. Micro computers of todays are equivalent to the mini
computers of yesterday in terms of performing and processing. They are also called computer of
a chip because its entire circuitry is contained in one tiny chip. The micro computers have a
wide range of applications including uses as portable computer that can be plugged into any wall.
5. Laptop Computers
The smallest computer in size has been developed. This type of small computers look like an
office brief case and called LAPTOP computer. The laptops are also termed as PORTABLE
COMPUTERS. Due to the small size and light weight, they become popular among the
computer users. The businessmen found laptop very useful, during traveling and when they are
far away frm their desktop computers. A typical laptop computer has all the facilities available in
microcomputer. The smallest laptops are called PALMTOP.
Generations of Computer
First Generation of Computer (1946-1959)
Main Features
Major Innovation Vacuum Tubes
Main Memory Punched Cards
Input Output Devices Punched cards and papers
Languages Low level machine language
Operating System No operating system, human operators to set
switches
Size Main frame for example ENIAC, EDVAC, UNIVAC
The duration lasted from 1946-1959 was based on vacuum tubes. These vacuum tubes were
about the size of 100 watt light bulb and used as the internal computer component. However
because thousands of such bulbs were used, the computers were very large and generate a large
amount of heat, causing many problems in temperature regulation and climate control.
In this generation input and out put device (punched card) that was used fro data storing purpose
were very slow. The computers were operating manually and the language used was a low level
machine language (symbolic language) with binary code that required a high programming skill.
ENIAC, EDVAC, UNIVAC and Mark-1 were some of the major inventions of this generation.
Advantages of First Generation
1. Vacuum tubes were used as electronic component.
2. Electronic digital computers were developed for the first time.
3. These computers were the fastest calculating devices of their time.
4. Computations were performed in millisecond.
Disadvantages of First Generation
1. Too large in size.
2. They were unreliable.
3. Induce a large amount of heat due to the vacuum tubes.
5. Not portable.
6. Limited commercial use.
Second Generation of Computers (1959-1964)
Main Features
Major Innovation Transistors as main component.
Main Memory RAM and ROM.
External Storage Magnetic tapes and Magnetic Disk.
Input Output Devices Magnetic tapes and Magnetic Disk.
Languages Assembly language, some high level languages for Example BASIC, COBOL,
FORTRAN.
Operating System Human handles punched card.
Size Main frame for example IBM-1401, NCR-300, IBM-600 etc.
The period of this generation is from 1959 to 1964. During this period transistor were used for
internal logic circuits of computers. These computers could execute 200000 instructions per
second. The input/output devices became much faster by the use of magnetic table. During this
period the low level programming language were used however the high level programming
languages such as FORTRAN and COBOL were also used. The problem of heat maintenance
was solved and size of computer reduced, while speed and reliability were increased. Many
companies manufactured second generation computers and many of those for business
applications. The most popular second generation computer was IBM-1401, introduced in 1960,
while the following computers were used by many business organizations. IBM-1400 series,
IBM-1600 series, UNIVAC-III, NCR-300 etc.
Advantages of Second Generation
1. Smaller in size as compares to 1st generation.
2. Much more reliable.
3. Less heat generated.
4. Computation was performing in micro second.
Micro-Computers are computers that are powered by microprocessors. Sometimes they are
referred as SINGLE CHIP PROCESSOR a SYSTEM-ON-A-CHIP. Micro-computers or
personal computers are the smallest computers, designed to be used by individuals for writing,
illustrating, budgeting, playing games and communicating with other computers.
Programming Language
A programming language is a type of software. A program is a set of step by step instruction that
directs the computer to do the tasks you want it to do and produce the result you want. A set of
rules that provides a way of telling a computer when operations to perform is called a
Programming Language.
Machine Language (Low Level Language)
Every creation of this universe has its own language. Likewise, computer has a language that is
called Machine Language (machine level language) for instructing computer to perform specific
task. It is also called binary language because it is the language of 0s and 1s, means every
instruction in Machine language consists of a series of 0s and 1s (binary code) that a computer
can understand and execute directly. Each machine language statement corresponds to one
machine action. An operation that requires one machine language instruction in one computer
may require several instructions in another computer. Each computer has its own unique machine
language.
Assembly Language
In assembly language, the statements are written in symbolic codes (termed as mnemonics) that
are easier for human to read and write as compared to machine language. Each assembly
language statement corresponds to one machine language statement.
Advantages of Assembly Language
1. Operation codes of machine language are mnemonics, which are easy to remember.
2. An Assembly language program may be written easily as compared to machine language.
3. The memory addresses are used in machine language which is replaced by the variable names
in this language.
4. Revision of complete program is quite easy.
5. The insertion and deletion of the instructions in the program are quite easy.
Disadvantages of Assembly Language
1. As compared to machine language assembly language is less efficient.
2. An assembly language program cannot be executed on small size computers.
High Level Language
High level languages are closer to human languages than low-level language and include
statement like GOTO and PRINT which are regular words. Unlike the assembly language, the
program of high level languages do not have to be written for a particular computer, but it can be
execute on any machine that has a compiler for that language.
Internet
Internet is the largest network of the world that connects computers located t different parts of
the world. The Internet has had a huge impact on society. The Internet provides information and
service, as well as the ability to communicate to people all around the world in a variety of ways.
These range from bulletin boards and chat rooms to voice conversations and video conferencing.
The Internet creates new ways for citizens to communicate, congregate and share information. It
is obvious that the Internet has and will continue to change the way we live.
All in all, the Internet is affecting so many peoples lives in most welcome, exciting and
challenging ways.
Advantages of Internet