Chapter 1
Chapter 1
Chapter 1
Introduction of Computer
A Computer is an electronic device operating under the control of instruction stored in its own
memory that can accept data (input), process the data according to predefined set of rules, produce
information (output) and store the information for future use.
Functionalities of a Computer
Any digital computer carries out five functions in gross term:
▪ Takes data as input.
▪ Stores the data/instructions in its memory and use them when required.
▪ Processes the data and converts it into useful information.
▪ Generates the output.
Some Terms
Data:
Data is the plural form of word datum. Data can be defined as any raw fact, figure, observation or
collection about any object. Which can recorded in the form of text, number, sound or image. Data
itself is not meaningful as it is the raw fact. For example: 1, Ram, 16, Male, Dhangadhi, Science are
data.
Information:
Information is the processed data which we get in the required form. So, it is very meaningful and
useful to us. For example: 1, Ram, 16, Male, Dhangadhi, Science are data but Ram having roll no: 1,
Age: 16, Gender: Male, Address: Dhangadhi, Stream: Science is information.
Process:
Processing is the conversion of input (data) into output (information) which is done by the processing
unit of the computer.
In general, processing is the act of performing arithmetic and logical operation.
Instruction:
Instruction is a command given to the computer to perform a specific task.
Program:
Program is a set of instructions to perform a specific task in a computer. Also called the component of
software.
Input
Any instructions or data sent to a computer for processing is considered input. Input or user input is
sent to a computer using an input device.
Output
The result generated after processing the data is called output.
Hardware
Computer hardware is the collection of physical components that make up a computer. In other
words we can say that hardware covers all parts of a computer that are tangible objects. Examples
keyboard, mouse, scanner, printer, speaker, memory, etc.
Software
Software is a collection of computer programs that performs different tasks on a computer system.
Software refers to something intangible. Basically software is written by programmer.
Software is divided into two types:
System Software
Application Software
System Software
It is a type of a computer software designed to operate the computer hardware to provide a platform
for running application software. It helps in running computer hardware and the computer system.
Some common types of system software are: Operating system, Device driver, Language processor.
Application Software
Application software is a program or group of programs designed for end users. It enables the user to
accomplish certain specific task. It includes the programs that do real work for users. For example
word processor, spreadsheet, Presentation software, Database management system, Web browser,
Media player, etc.
Firmware
A set of micro instructions stored in a chip is called firmware. Micro instructions are hardware level
instructions which are directly executed by the hardware. Firmware loaded into the equipment,
either at the time of manufactured or later. Firmware is held in non-volatile memory devices such
as ROM.
Note:
▪ Volatile memory: It is a type of computer memory whose contents are erased when the
system's power is turned off. For example, RAM
▪ Non-volatile memory: It is a type of computer memory that has the capability to hold saved
data even if the power is turned off. For example ROM
Note:
1 Hz = 1 cycle per second
1 MHz = 1 million cycles per second
1 GHz = 1 billion cycles per second
Characteristics of Computer
i. Word length
A digital computer operates on binary digits i.e 0 and 1. It can understand information only in terms
of 0s and 1s. A binary digit is called a bit. a group of 8 bits is called a byte. The number of bits that a
computer can process at a time in parallel is called its word length. Commonly used word length are
8,16,32 or 64 bits. Word length is the major of the computing power of a computer. When we talk of
a 32-bit computer, it means that it's word length is 32 bits.
ii. Speed
The calculation in the computer is at very high speeds. For example, a micro-computer can perform
millions of instructions per second as many times without any mistake. The speed increases, as the
power of computer increase. For example, a super computer can operate at speed measures on
nanoseconds and even picosecond.
iii. Storage
The computer has main memory and auxiliary memory. The computer can store a large amount of
data. With more and more auxiliary storage devices, which are capable of storing huge amounts of
the data, the storage capacity of a computer is virtually unlimited. The reason that makes computer
storage unique is not that it can store huge amount of data, but the fact that it can retrieve the
information that the user wants in a few seconds. For example, computer dictionaries are available
and the contents of this software version are the same as that of the printed dictionary.
iv. Accuracy
The accuracy of a computer is very high unless the input is given correctly. In most cases, the error is
because of human factor rather that technology mistake. For example, if the person input wrong
code or the data is corrupted, the processing result is also wrong or corrupted. So, if wrong input is
given, the output also will be wrong- GIGO (Garbage In Garbage Out)
v. Versatility
Computers can perform activities ranging from simple calculation like arithmetic calculation, to a
complex calculation like launching a missile, which it makes a computer a versatile machine. some
application area of computers like a business, bank medical diagnosis, science and technology,
communication and astronomy, so it is a versatile machine.
vi. Diligence
Diligence means being constant and determined in effort and application. The computer can perform
the repetitive task without being a bore and it never gets tired. It can work continuously for several
hour or day without getting bored and tired. Unlike human beings, a computer is free from tiredness,
weakness, lack of concentration and monotony. Computers can perform activities ranging from
simple calculation like arithmetic calculation, to a complex calculation like launching a missile, which
it makes a computer a versatile machine.
vii. Automation
A computer is an automatic machine, capable of functioning automatically once they are an
appropriate set of instruction and data provided to the computer. Once the task is initiated on a
computer it can proceed continuously. The computer can be programmed to perform a series of a
task involving multiple programs. Computers are capable of these levels of automation if the
instruction is provided correctly.
viii. Reliability
Computers are used widely as they are reliable. The computer never gives the wrong result as long as
the input is given correctly. The probability of error in the computer is negligible. A Huge amount of
verities of data like monetary transaction, banking account, personal information is stored in a
computer with the strong reliability to the computer.
The computer has become an integral part of our lives and is helping us in improving the standard
living, enhancing the quality products, providing better healthcare, assisting in teaching and learning
and other however computer have many limitations like lack of intelligence, lack of reasoning
capabilities and other.
Disadvantages:
The computer does not have a brain and cannot decide itself.
It does not have its own intelligence.
The computer does not have emotion and feelings.
It needs electricity to operate.
It cannot operate itself, unless, a human command is given.
The application areas of computer are described below:
1. Banks: Banks provide online accounting facility, which includes current balances, deposits,
overdrafts, interest charges, shares, and trustee records. ATM machines are making it even easier
for customers to deal with banks.
2. Engineering: Computers are widely used in engineering purpose. One of major areas is CAD
(Computer aided design). That provides creation and modification of images.
3. Medicine: Computers have become important part in hospitals, labs, and dispensaries. The
computers are being used in hospitals to keep the record of patients and medicines. It is also
used in scanning and diagnosing different diseases. ECG, EEG, Ultrasounds and CT Scans etc., are
also done by computerized machines.
4. Education: The computer provides a tool in the education system known as CBE (Computer Based
Education). The computer education is rapidly increasing the graph of number of computer
students. It is used to prepare a database about performance of a student and analysis is carried
out on this basis.
5. Ticketing: In today's world one can book air or railway tickets online with the help of computer
and internet and could know all the relevant information. Ticketing system are also applied in
bus, hotel and cinemas tickets reservations.
6. Defense: Computers are largely used in defense. Modern tanks, missiles, weapons etc. Military
also employs computerized control systems. Some military areas where a computer has been
used are missile control, military communication, military operation and planning.
7. Business: A computer has high speed of calculation, diligence, accuracy, reliability, or versatility
which made it an integrated part in all business organizations. Computers are used in business
organizations for payroll calculations, budgeting, sales analysis, financial forecasting, etc.
8. Government: Computers play an important role in government. Some major fields in this
category are budget, sales tax department, income tax department, computerization of voter’s
lists, weather forecasting, etc.
9. Desktop publishing: We can use computer for desktop publishing, for example: create layout for
magazine, newspaper, book, etc. One can create animation and portrait also with the help of
different software tools.
History of computer
Evolution of computer is a study of past development of computer i.e. it is meant by the
gradual improvements of accuracy, speed and efficiency of computers through generations, whereas
generations of computers may be defined as the development of computer in an average period of
time in which old computer technology may be replaced by newer technology.
Ancient people lived on the earth for centuries without counting. Then, they started to count their
ten figures. It became so difficult to live and to remember anything. These phenomena were
gradually replaced by the use of stones, counting notches on sticks or marks on walls. The different
generations are described below which has helped the humans for keeping records with the passing
of time.
1) The Mechanical Era (Zeroth generation)
The calculator of this age was developed by using mechanical components like wood, metal, stone,
bone, etc. It was used for simple mathematical calculations. Some of the popular calculations used in
this age are:
Abacus
In ancient period, it was used to calculate mathematical calculation. It was used for performing
simple calculation like counting, addition, subtraction and multiplication of number. An abacus
consists of a rectangular frame carrying a number of wooden rods. Mid-bar divides each of these rods
in top unequal -upper and lower parts.
Fig: Abacus
The upper part is called heaven, whereas lower part is called earth. The heaven consists of two beads,
whereas the earth part consists of five beads to each rod. The value of bead on heaven part is five
and earth is one. Each abacus consists of nine or eleven or thirteen rods.
This plan is now regarded as the first computer program. That`s why, she was considered the first
computer programmer and a software language developed by the US Defense Department, was
named Ada in her honor.
George Boole
He was one of the greatest English Mathematician who contributed greatly to the study of symbolic
logic during the mid 19th century. He was very famous for the discovery of mathematic logic called
‘Boolean Algebra’. It was the foundation of the modern electronic computer architecture by using 0
or 1 for the electric circuit. Since switching mechanisms at the time could only produce two actions
‘on’ and ‘off’, Boolean algebra provided engineers a medium to communicate with their computers.
The Mark II
The Mark II was constructed with high speed electromagnetic relays instead of electro-mechanical
counters used in the Mark I, making it much faster. A unique feature of the Mark II is that it had built
in hardware for several functions such as the reciprocal, square root, logarithm, exponential and
some trigonometric function.
It was a very large machine weighing about 30 tons and containing about 17,468 vacuum tubes,
70,000 resistors, 5 million soldered joints and it consumed 160 kilowatts. It could do 5,000 addition
and 300 multiplication per second.
Generations of computers
Computer generations classification is mainly based on the basic devices used. Also, the
considerations are the architecture, languages, modes of operation, etc. The function performed by
the computer and the speed of their operations have been changing since the old days to the most
modern computer. Based on the period of development and the features incorporated, the
computers are classified into different generations- First generation to Fifth generation. This is called
the computer generation.
The classification and time periods are given below:
First Generation Computer (1945-1956)
Second Generation Computer (1957-1963)
Third Generation Computer (1964-1971)
Fourth Generation Computer (1972 onward)
Fifth Generation Computer (Present and future)
Vacuum Tube
A vacuum tube is a hollow glass cylinder containing a positive electrode and a negative electrode
between which is conducted in a full or partial vacuum. A grid between these electrodes controls
the flow of electricity.
The vacuum tube were predominantly used in electronic devices such as TVs, radios and
computers.
Features of first-generation computers:
Technology used: vacuum tube
Machines languages were used to instruct the computer.
Magnetic core memory was used as primary memory.
Electrostatic tubes, Paper tape, punch card, magnetic tape
Punched card, printing devices were used for input/output operations and store the result.
It occupies very large space, slow processing, inefficient and unreliable due to low accuracy.
Power consumption was very high and it generated much heat.
It could only perform straight forward simple numerical calculation.
Computer used to be much expensive.
The example of first-generation computers is ENIAC, UNIVAC, EDVAC, and EDSAC.