UNIT 1 - Basics of Computing
UNIT 1 - Basics of Computing
INTRODUCTION TO COMPUTING
Introduction
Nowadays, computers are an integral part of our lives. They are used for the reservation
of tickets for airplanes and railways, payment of telephone and electricity bills, deposit
and withdrawal of money from banks, processing of business data, forecasting of weather
conditions, diagnosis of diseases, searching for information on the Internet, etc.
Computers are also used extensively in schools, universities, organizations, music
industry, movie industry, scientific research, law firms, fashion industry, etc. The term
computer is derived from the word compute. The word compute means to calculate. A
computer is an electronic machine that accepts data from the user, processes the data by
performing calculations and operations on it, and generates the desired output results.
Computer performs both simple and complex operations, with speed and accuracy.
Computers perform four basic operations input, process, output, and storage. These
operations comprise the information processing cycle. Collectively, these operations
process data into information and store it for future use.
A computer derives its power from its capability to perform the information processing
cycle with amazing speed, reliability (low failure rate), and accuracy; its capacity to store
huge amounts of data and information; and its capability to communicate with other
computers.
For a computer to perform operations, it must be given a detailed set of instructions
that tells it exactly what to do. These instructions are called a program, or software.
Before processing for a specific activity begins, the program corresponding to that
Analog computer is another kind of a computer that represents data as variable across a
continuous range of values. The earliest computers were analog computers. Analog
computers are used for measuring of parameters that vary continuously in real time, such
as temperature, pressure and voltage. Analog computers may be more flexible but
generally less precise than digital computers. Slide rule is an example of an analog
computer. The advantageous point of analog devices is that they show the results in a
simple or graphical way within a short time. Real-time transformations in a Digital
Computer require complex programming and graphical programs, but in analog
computers is quite opposite. Less accuracy and lack of versatility are the significant
demerits of analog computers. As the accuracy of Analog Computers is limited, It has to
be dependent on a number of factors such as spread across circuit parameters, incorrect
assembly, wiring problems, etc. External factors like magnetic fields, changes in ambient
This book deals only with the digital computer and uses the term computer for them.
Characteristics of Computer
Speed, accuracy, diligence, storage capability and versatility are some of the key
characteristics of a computer.
Diligence When used for a longer period of time, the computer does not get tired
or fatigued. It can perform long and complex calculations with the same speed
and accuracy from the start till the end.
Storage Capability Large volumes of data and information can be stored in the
computer and also retrieved whenever required. A limited amount of data can be
It has No Emotions Computers are not living beings. Hence, they do not have any
emotions. They do not have any heart or soul. Human Beings often take some
decisions based on emotions, taste, feelings, etc. in their daily life. On the other
hand, computers always take decisions based on a program that they run.
Computers have several limitations too. Computer can only perform tasks that it has been
programmed to do. Computer cannot do any work without instructions from the user. It
executes instructions as specified by the user and does not take its own decisions.
History of Computer
Until the development of the first generation computers based on vacuum tubes, there had
been several developments in the computing technology related to the mechanical
computing devices. The history of computers starts out about 2000 years ago in
Babylonia (Mesopotamia), at the birth of the abacus, a wooden rack holding two
horizontal wires with beads strung on them.
Blaise Pascal is usually credited for building the first digital computer in 1642. It added
numbers entered with dials and was made to help his father, a tax collector. The basic
principle of his calculator is still used today in water meters and modern-day odometers.
Instead of having a carriage wheel turn the gear, he made each ten-teeth wheel accessible
to be turned directly by a person's hand (later inventors added keys and a crank), with the
result that when the wheels were turned in the proper sequences, a series of numbers was
entered and a cumulative sum was obtained. The gear train supplied a mechanical answer
equal to the answer that is obtained by using arithmetic. This first mechanical calculator,
called the Pascaline, had several disadvantages. Although it did offer a substantial
improvement over manual calculations, only Pascal himself could repair the device and it
cost more than the people it replaced! In addition, the first signs of technophobia emerged
with mathematicians fearing the loss of their jobs due to progress.
These advantages were seen by commercial companies and soon led to the development
of improved punch-card using computers created by International Business Machines
(IBM), Remington (yes, the same people that make shavers), Burroughs, and other
corporations. These computers used electromechanical devices in which electrical power
provided mechanical motion -- like turning the wheels of an adding machine. Such
systems included features to:
feed in a specified number of cards automatically
add, multiply, and sort
feed out cards with punched results
The start of World War II produced a large need for computer capacity, especially for the
military. New weapons were made for which trajectory tables and other essential data
were needed. In 1942, John P. Eckert, John W. Mauchly, and their associates at the
Moore school of Electrical Engineering of University of Pennsylvania decided to build a
high - speed electronic computer to do the job. This machine became known as ENIAC
(Electrical Numerical Integrator And Calculator).
The size of ENIAC’s numerical "word" was 10 decimal digits, and it could multiply two
of these numbers at a rate of 300 per second, by finding the value of each product from a
multiplication table stored in its memory. ENIAC was therefore about 1,000 times faster
then the previous generation of relay computers. ENIAC used 18,000 vacuum tubes,
about 1,800 square feet of floor space, and consumed about 180,000 watts of electrical
power. It had punched card I/O, 1 multiplier, 1 divider/square rooter, and 20 adders using
decimal ring counters, which served as adders and also as quick-access (.0002 seconds)
read-write register storage. The executable instructions making up a program were
embodied in the separate "units" of ENIAC, which were plugged together to form a
"route" for the flow of information.
Punch Card System was developed by Jacquard to control the power loom in 1801. He
invented the punched card reader that could recognize the presence of hole in the
punched card as binary one and the absence of the hole as binary zero. The 0s and 1s are
the basis of the modern digital computer.
The developments discussed above and several others not discussed here, resulted in the
development of the first computer in the 1940s.
Generations of Computer
The computer has evolved from a large-sized simple calculating machine to a smaller but
much more powerful machine. The evolution of computer to the current state is defined
in terms of the generations of computer. Each generation of computer is designed based
on a new technological development, resulting in better, cheaper and smaller computers
that are more powerful, faster and efficient than their predecessors. Currently, there are
five generations of computer. In the following subsections, we will discuss the
generations of computer in terms of—
Application They were used for scientific applications as they were the fastest computing
device of their time.
The first generation computers used a large number of vacuum tubes and thus generated a
lot of heat. They consumed a great deal of electricity and were expensive to operate. The
machines were prone to frequent malfunctioning and required constant maintenance.
Since first generation computers used machine language, they were difficult to program.
Software Technology The instructions were written using the assembly language.
Assembly language uses mnemonics like ADD for addition and SUB for subtraction for
coding of the instructions. It is easier to write instructions in assembly language, as
compared to writing instructions in machine language. High-level programming
languages, such as early versions of COBOL and FORTRAN were also developed during
this period.
Physical Appearance Transistors are smaller in size compared to vacuum tubes, thus, the
size of the computer was also reduced.
Application The cost of commercial production of these computers was very high,
though less than the first generation computers. The transistors had to be assembled
manually in second generation computers.
Second generation computers generated a lot of heat but much less than the first
generation computers. They required less maintenance than the first generation
computers.
Software Technology The keyboard and the monitor were interfaced through the
operating system. Operating system allowed different applications to run at the same
time. High-level languages were used extensively for programming, instead of machine
language and assembly language.
The third generation computers used less power and generated less heat than the second
generation computers. The cost of the computer reduced significantly, as individual
components of the computer were not required to be assembled manually. The
maintenance cost of the computers was also less compared to their predecessors.
Software Technology Several new operating systems like the MS-DOS and MS-
Windows developed during this time. This generation of computers supported Graphical
User Interface (GUI). GUI is a user friendly interface that allows user to interact with the
computer via menus and icons. High-level programming languages are used for the
writing of programs.
Application They became widely available for commercial purposes. Personal computers
became available to the home user.
Examples The Intel 4004 chip was the first microprocessor. The components of the
computer like Central Processing Unit (CPU) and memory were located on a single chip.
The microprocessor has resulted in the fourth generation computers being smaller and
cheaper than their predecessors. The fourth generation computers are also portable and
more reliable. They generate much lesser heat and require less maintenance compared to
their predecessors. GUI and pointing devices facilitate easy use and learning on the
computer. Networking has resulted in resource sharing and communication among
different computers.
This generation of computers uses parallel processing that allows several instructions to
be executed in parallel, instead of serial execution. Parallel processing results in faster
processing speed. The Intel dual-core microprocessor uses parallel processing.
The fifth generation computers are based on Artificial Intelligence (AI). They try to
simulate the human way of thinking and reasoning. Artificial Intelligence includes areas
like Expert System (ES), Natural Language Processing (NLP), speech recognition, voice
recognition, robotics, etc.
Classification of Computer
The digital computers that are available nowadays vary in their sizes and types. The
computers are broadly classified into four categories (Figure 1.8) based on their size and
type—(1) Microcomputers, (2) Minicomputers, (3) Mainframe computers, and (4)
Supercomputer.
Microcomputers
Microcomputers are small, low-cost and single-user digital computer. They consist of
CPU, input unit, output unit, storage unit and the software. Although microcomputers are
stand-alone machines, they can be connected together to create a network of computers
that can serve more than one user.
Notebook Computers or Laptops resemble a notebook. They are portable and have all the
features of a desktop computer. The advantage of the laptop is that it is small in size (can
be put inside a briefcase), can be carried anywhere, has a battery backup and has all the
functionality of the desktop. Laptops can be placed on the lap while working (hence the
name). Laptops are costlier than the desktop machines.
Netbook These are smaller notebooks optimized for low weight and low cost, and are
designed for accessing web-based applications. Starting with the earliest netbook in late
2007, they have gained significant popularity now. Netbooks deliver the performance
needed to enjoy popular activities like streaming videos or music, emailing, Web surfing
or instant messaging. The word netbook was created as a blend of Internet and notebook.
Tablet Computer has features of the notebook computer but it can accept input from a
stylus or a pen instead of the keyboard or mouse. It is a portable computer. Tablet
computer are the new kind of PCs.
Handheld Computer or Personal Digital Assistant (PDA) is a small computer that can
be held on the top of the palm. It is small in size. Instead of the keyboard, PDA uses a
pen or a stylus for input. PDAs do not have a disk drive. They have a limited memory and
are less powerful. PDAs can be connected to the Internet via a wireless connection. Casio
and Apple are some of the manufacturers of PDA. Over the last few years, PDAs have
merged into mobile phones to create smart phones.
Smart Phones are cellular phones that function both as a phone and as a small PC. They
may use a stylus or a pen, or may have a small keyboard. They can be connected to the
Internet wirelessly. They are used to access the electronic-mail, download music, play
games, etc.
Blackberry, Apple, HTC, Nokia and LG are some of the manufacturers of smart phones.
Minicomputers
Minicomputers are digital computers, generally used in multiuser systems. They have
high processing speed and high storage capacity than the microcomputers.
Minicomputers can support 4–200 users simultaneously. The users can access the
minicomputer through their PCs or terminal. They are used for real-time applications in
Mainframe Computers
Mainframe computers are multi-user, multi-programming and high performance
computers. They operate at a very high speed, have very large storage capacity and can
handle the workload of many users. Mainframe computers are large and powerful
systems generally used in centralized databases. The user accesses the mainframe
computer via a terminal that may be a dumb terminal, an intelligent terminal or a PC. A
dumb terminal cannot store data or do processing of its own. It has the input and output
device only. An intelligent terminal has the input and output device, can do processing,
but, cannot store data of its own. The dumb and the intelligent terminal use the
processing power and the storage facility of the mainframe computer. Mainframe
computers are used in organizations like banks or companies, where many people require
frequent access to the same data. Some examples of mainframes are CDC 6600 and IBM
ES000 series.
Supercomputers
Supercomputers are the fastest and the most expensive machines. They have high
processing speed compared to other computers. The speed of a supercomputer is
generally measured in FLOPS (FLoating point Operations Per Second). Some of the
faster supercomputers can perform trillions of calculations per second. Supercomputers
are built by interconnecting thousands of processors that can work in parallel.
Supercomputers are used for highly calculation-intensive tasks, such as, weather
forecasting, climate research (global warming), molecular research, biological research,
nuclear research and aircraft design. They are also used in major universities, military
agencies and scientific research laboratories. Some examples of supercomputers are IBM
Roadrunner, IBM Blue gene and Intel ASCI red. PARAM is a series of supercomputer
assembled in India by CDAC (Center for Development of Advanced Computing), in
Pune. PARAM Padma is the latest machine in this series. The peak computing power of
PARAM Padma is 1 Tera FLOP (TFLOP).
Limitations of a Computer
Computer cannot take over all activities simply because they are less flexible than
humans.
It does not hold intelligence of its own. Its IQ level is zero, till date.
They have to be told what to do. It has to be instructed on what it must do and in
what sequence.
A Computer cannot take decisions on its own.
Human beings can make certain judgments in our day to day life based on our
feelings, taste, knowledge and experience. It also lack of emotions, so it will not
make certain judgments like human.
They cannot perform anything outside the defined scope.
Hardware consists of the mechanical parts that make up the computer as a machine. The
hardware consists of physical devices of the computer. The devices are required for input,
output, storage and processing of the data. Keyboard, monitor, hard disk drive, floppy
disk drive, printer, processor and motherboard are some of the hardware devices.
Software is a set of instructions that tells the computer about the tasks to be performed
and how these tasks are to be performed. Program is a set of instructions, written in a
language understood by the computer, to perform a specific task. A set of programs and
documents are collectively called software. The hardware of the computer system cannot
perform any task on its own. The hardware needs to be instructed about the task to be
performed. Software instructs the computer about the task to be performed. The hardware
carries out these tasks. Different software can be loaded on the same hardware to perform
different kinds of tasks.
Data are isolated values or raw facts, which by themselves have no much significance.
For example, the data like 29, January, and 1994 just represent values. The data is
provided as input to the computer, which is processed to generate some meaningful
information. For example, 29, January and 1994 are processed by the computer to give
the date of birth of a person.
Users are people who write computer programs or interact with the computer.
Programmers, data entry operators, system analyst and computer hardware engineers fall
into this category
Input The computer accepts input data from the user via an input device like keyboard.
The input data can be characters, word, text, sound, images, document, etc.
Process The computer processes the input data. For this, it performs some actions on the
data by using the instructions or program given by the user of the data. The action could
be an arithmetic or logic calculation, editing, modifying a document, etc. During
Output The output is the result generated after the processing of data. The output may be
in the form of text, sound, image, document, etc. The computer may display the output on
a monitor, send output to the printer for printing, play the output, etc. Storage The input
data, instructions and output are stored permanently in the secondary storage devices like
disk or tape. The stored data can be retrieved later, whenever needed.
The I/O unit consists of the input unit and the output unit. CPU performs calculations and
processing on the input data, to generate the output. The memory unit is used to store the
data, the instructions and the output information. The figure below illustrates the typical
interaction among the different components of the computer.
Input/Output Unit The user interacts with the computer via the I/O unit. The Input unit
accepts data from the user and the Output unit provides the processed data i.e. the
information to the user. The Input unit converts the data that it accepts from the user, into
a form that is understandable by the computer. Similarly, the Output unit provides the
output in a form that is understandable by the user. The input is provided to the computer
Central Processing Unit CPU controls, coordinates and supervises the operations of the
computer. It is responsible for processing of the input data. CPU consists of Arithmetic
Logic Unit (ALU) and Control Unit (CU). ALU performs all the arithmetic and logic
operations on the input data.
CU controls the overall operations of the computer i.e. it checks the sequence of
execution of instructions, and, controls and coordinates the overall functioning of the
units of computer. Additionally, CPU also has a set of registers for temporary storage of
data, instructions, addresses and intermediate results of calculation.
Memory Unit Memory unit stores the data, instructions, intermediate results and output,
temporarily, during the processing of data. This memory is also called the main memory
or primary memory of the computer. The input data that is to be processed is brought into
the main memory before processing. The instructions required for processing of data and
any intermediate results are also stored in the main memory. The output is stored in
memory before being transferred to the output device. CPU can work with the
information stored in the main memory. Another kind of storage unit is also referred to as
the secondary memory of the computer. The data, the programs and the output are stored
permanently in the storage unit of the computer. Magnetic disks, optical disks and
magnetic tapes are examples of secondary memory.
Application of Computers
Computers have proliferated into various areas of our lives. For a user, computer is a tool
that provides the desired information, whenever needed. You may use computer to get
information about the reservation of tickets (railways, airplanes and cinema halls), books
in a library, medical history of a person, a place in a map, or the dictionary meaning of a
word. The information may be presented to you in the form of text, images, video clips,
etc.
Education Computers are extensively used, as a tool and as an aid, for imparting
education. Educators use computers to prepare notes and presentations of their lectures.
Computers are used to develop computer based training packages, to provide distance
education using the e-learning software, and to conduct online examinations. Researchers
use computers to get easy access to conference and journal details and to get global
access to the research material.
Entertainment Computers have had a major impact on the entertainment industry. The
user can download and view movies, play games, chat, book tickets for cinema halls, use
multimedia for making movies, incorporate visual and sound effects using computers,
etc. The users can also listen to music, download and share music, create music using
computers, etc.
Science and Engineering Scientists and engineers use computers for performing
complex scientific calculations, for designing and making drawings (CAD/CAM
applications) and also for simulating and testing the designs. Computers are used for
storing the complex data, performing complex calculations and for visualizing 3-
dimensional objects. Complex scientific applications like the launch of the rockets, space
exploration, etc., are not possible without the computers.
Government The government uses computers to manage its own operations and also for
e-governance. The websites of the different government departments provide information
to the users. Compute are used for the filing of income tax return, paying taxes, online
submission of water and electricity bills, for the access of land record details, etc. The
police department uses computers to search for criminals using fingerprint matching, etc.
Military Computers are the main tools which help in developing missiles and other
equipment in the deference system. Designing and the maintenance are possible only
through computers. Computer builds the links between the soldiers and commanders
through the satellite. Construction of weapons and controlling their function is not
possible without the aid of computers. The list of the criminals and the records of the
cops are maintained regularly in the system.
The list of applications of computers is so long that it is not possible to discuss all of
them here. In addition to the applications of the computers discussed above, computers
have also proliferated into areas like banks, investments, stock trading, accounting, ticket
reservation, military operations, meteorological predictions, social networking, business
organizations, police department, video conferencing, book publishing, web newspapers,
and information sharing.