Introduction to Computers and Data Processing
Introduction to Computers and Data Processing
DEFINATION OF COMPUTER
o A computer is an electronic device which takes input from the user,
processes it and gives the output as per user’s requirement.
o So the main tasks of performed by the computer are:
Input
Process
Output
No Fallings:
o A Computer has no feelings because they are machines.
o Based on our feelings, task, knowledge and experience we often make
certain judgments in our day today life.
o But Computer goes exactly the way which we have given the instructions.
INPUT OUTPUT
DATA PROCESS INFORMATION
STORAGE
Second Generation:
Duration: 1955-1964
Technology: transistor
o 10 times Smaller in size than 1st generation system.
o Less heat than 1st generation computers.
o Consumed less power than 1st generation system.
o Computers were done calculations in microseconds.
o Air-conditioner is also required.
o Easy to configure than 1st generation computers.
o More reliable in information.
o Wider commercial use.
o Large & fast primary/secondary storage than 1st generation computers.
Third Generation:
Duration: 1965-1975
Technology: IC chip
o Smaller in size than 1st & 2nd generation computers.
o Perform more fast calculations than 2nd generation systems.
o Large & fast primary/secondary storage than 2nd generation computers.
o Air –conditioner is required.
o Widely used for commercial applications.
o General purpose computers.
o High level languages like COBOL & FORTAN are allowed to write programs.
o Generate less heat & consumed less power than 2nd generation computer.
Fourth Generation:
Duration: 1975-1989
Technology: Microprocessor chip
o Based on LSI & VLSI microprocessor chip.
o Smaller in size.
o Much faster than previous generations.
o Minimum hardware maintenance is required.
o Very reliable as computer to previous generation computers.
o Totally general purpose computer.
o Easy to configure.
o Possible to use network concept to connect the computer together.
o NO requirement of air-conditioners.
o Cheapest in price.
Fifth Generation:
Duration: 1989 to Present
Technology: ULSI microprocessor chip
o Much smaller & handy.
o Based on the ULSI chip which contains 100 million electronic components.
o The speed of the operations is increased.
o Consumed less power.
o Air-conditioner is not required.
o More user friendly interface with multi-media features.
o High level languages are allowed to write programs.
o Larger & faster primary/secondary storage than previous generations.
o Notebook computers are the example of 5th generation computers
T H E BLOCK DIAGRAM OF COM PU T ER.
A simple computer system comprises the basic components like Input Devices, CPU
(Central Processing Unit) and Output Devices as under:
Input Devices:
o The devices which are used to entered data in the computer systems are
known as input devices.
o Keyboard, mouse, scanner, mike, light pen etc are example of input devices.
FUNCTION OF INPUT DEVICES
o Accept the data from the outside worlds.
o Convert that data into computer coded information.
o Supply this data to CPU for further processing.
Output Devices:
o The devices which display the result generated by the computer are known as
output devices.
o Monitor, printer, plotter, speaker etc are the example of output devices.
Memory Unit:
o The data & instruction have to store inside the computer before the actual
processing start.
o Same way the result of the computer must be stored before passed to the
output devices. This tasks performed by memory unit.
Control Unit:
o It controls the movement of data and program instructions into and out of
the CPU, and to control the operations of the ALU.
o In sort, its main function is to manage all the activities within the computer
system.
o Controls the internal parts as well as the external parts related with the
computer.
CPU:
o The Unit where all the processing is done is called as Central Processing Unit.
o It contains many other units under it.
o Main of them are:- Control Unit And ALU (Arithmetic & Logic Unit)
INPUT DEVICES
I N PU T DEV I CES:
The Input devices are the devices which are used to enter the data in the
computer system.
Keyboard, mouse, scanner, microphone are the example of input devices.
FUNCTIONS OF INPUT DEVICES:
o Accept the data from the outside worlds.
o Convert that data into computer coded information.
o Supply this data to Central Processing Unit for further processing.
INPUT DEVICES
T R A CK B AL L
. J OY ST I CK
Joystick is a pointing device which is works on the same principle of track ball.
It contains a stick which is placed on the spherical ball.
The stick is used to move the cursor at desired position left or right or backward
or forward.
It also contain button that is clicked to make selection of currently pointed item.
A joystick is similar to a mouse, except that with a mouse the cursor stops
moving as soon as you stop moving the mouse.
With a joystick, the pointer continues moving in the direction the joystick is
pointing.
To stop the pointer, you must return the joystick to its upright position.
Some of the systems using joysticks are
o Aircrafts, UAVs for flight control
o Motorized Wheelchairs as input device
o Microscopes
o Submarines
o Security Systems
o Video Games
Joysticks are widely used for video games
Advantages of joystick
It is very easy to learn to use.
Very simple design so they can be inexpensive.
It has a big analogue stick in the middle so it’s easier to control.
WEB CAMERA
It’s an input device.
Used to feeds the image to a computer or computer network often via USB or
Wi-Fi.
Web camera is a hardware camera connected to a computer that allows
everyone to connect to internet to view either pictures or motion video.
Most Web cameras are embedded to display with laptop computer or connected
with USB or Wi-Fi with a computer.
Simple web cam. Consists a digital camera attached to your computer typically
through USB.
The camera part of web camera is just a digital camera.
Web camera comes with software which preset interval & transfer it to another
location of viewing.
Web camera system allows you to using video also for that you have web camera
with high frame rate.
Web camera is a digital camera which taking picture over & over & again one
after another.
These images are stored image into the physical memory of camera in built in.
After capture image & stored in memory it reduced the amount of data need to
transmit.
Web camera software takes image & converts data in jpeg (compressing format).
E X P L AI N CR T ( C AT H O D R A Y T U BE ) M O N I T E R .
The monitor is the common output device mostly used It is a softcopy output
device.
It can be thought of as a high resolution TV set.
The monitor can also determine if the display will be colour, black and white, or
include graphical objects (pictures).
Two types of monitors are used.
o CRT monitors.
o Non CRT monitors.
Most computer monitors are based on Cathode Ray Tube (CRT) technology.
The basic operation of these tubes is similar to that in television sets.
In CRT display CRT is a specialised vacuum tube in which images are produced
when electron beam strikes a phosphor surface.
CRT monitor contains cathode, control grid, acceleration anode, deflection plates
& phosphor coated screen.
Cathode: the cathode is heated by filament and produced high speed & large
amount of electrons.
Control Grid: used to control the brightness of the screen. It controls the number
of electrons.
Accelerating anodes: they are with focusing lens are applied with positive
electrons.
Horizontal deflection plate: moves electron side by side.
Vertical deflection: moves electrons up & down.
Screen: contains millions of tiny red, green, blue phosphor dot that glow when
struck by electron beam that travels across screen to create a visible image.
ADVANTAGES OF CRT DISPLAY
Produce more colours.
Price is lower than LCD & Plasma.
High contrast ratio.
Can easily increase brightness of monitor by reflecting the light.
DISADVANTAGES OF CRT DISPLAY
High power consumed.
Heavy to pick up and carry.
Large space required.
T H E N O N C RT DI S P L A Y .
P RI N T E R and T H E T Y P E S O F P RI N T E R.
Printer
The printer is a most commonly used output device.
It is used to producing the hard copy output.
It prints characters, symbols & graphics on the paper.
Printer can be categorised according to the technology used in printer, speed,
and approach of printing, colours, language & the quality of printing.
Mainly printer can be classified in two types:
o Impact printer
o Non impact printer
IMPACT PRINTER:
It works on the same mechanism of type-writer.
It forms a character or image by striking mechanism such as hammer or wheel
against to ink ribbon, leaving an image on paper.
It is oldest technology and still is in used.
It can capable to print single character or line at the same time.
Commonly types of impact printers are dot matrix, daisy wheel, chain, drum
printer.
CHARACTERISTICS OF IMPACT PRINTER:
o Physical contact with paper to produce output.
o Low cost
o Very noisy
o Very slow in printing
o Low quality print out
o Stand with dusty or extreme environment
NON IMPACT PRINTER:
Non impact printer forms characters & images on paper without actually striking
the paper.
Paper & print head come in contact & hence the text or image is formed.
Ink jet & laser printer are example of non impact printer.
CHARACTERISTICS OF NON IMPACT PRINTER
o Faster than impact printer.
o Ability to change type face automatically.
o High quality output.
o Support transparency.
o More expensive than impact printer.
o Less maintenance than impact printer.
P RI MAR Y S T O R A G E DE V I CE .
RAM
The complete name of RAM is random access memory which is also known as
Primary memory.
It is called read/write memory because data can be read as well as write in RAM.
It is called random access because you can directly access any data from RAM if
you know row & column cell.
The RAM chip is fixed on the mother board & the mother board is designed in
such a way that its memory capacity can be enhanced by adding more RAM chip.
RAM is a VOLETILE memory.
RAM chips are of two types:
DRAM:
Dynamic Random Access Memory is a volatile memory that allows fast access to
data and is ideal for use as the primary store of computer systems.
However, the information is stored as electrical charges and the charges need to
be constantly refreshed in order for the data to be maintained.
SRAM:
Static Random Access Memory is also a volatile memory.
Once data is written into the chip, it is maintained as long as power is supplied to
it; it does not need refreshing.
However, SRAM is slower than DRAM and it is also more expensive.
ROM
The complete name of ROM is read only memory.
The data stored permanently & can’t be altered by the programmer.
Data stored in RAM chip can be read & used but cannot be changed.
This memory also known a field storage permanent storage or dead storage.
It is basically used to store manufacturer programmed & user program.
Most of the basic operations are carried out by electronic circuits which are
known as micro programs.
These programs are stored in ROM. For ex. System Boot Loader.
ROM
The complete name of ROM is read only memory.
The data stored permanently & can’t be altered by the programmer.
Data stored in RAM chip can be read & used but cannot be changed.
PROM
Programmable Read Only Memory is a non-volatile memory which allows the
user to program the chip with a PROM writer.
110 6
111 7
Converting from Binary to Octal
The binary number must be divided into groups of three from the octal point
– to the right in case of the fractional portion and to the left in case of the
integer portion. Each group can then be replaced with their octal equivalent.
Example
Binary 101010101010100
101 010 101 010 100
5 2 5 2 4
So, 52524 is the Octal equivalent of binary 101010101010100
Converting Octal to Binary
Each octal digit is replaced with the appropriate ‘triple’ of binary digits.
e.g. 65
6 5
110 101
The binary equivalent of the Octal number 65 is 110101
Hexadecimal Number System (Base 16)
There is another commonly used positional system, hexadecimal system.
The hexadecimal system has a base of 16, so the value increases from left to
right as 1, 16, 256, 65536,. . . .
We need to keep a simple table in mind before we attempt any conversion
from hexadecimal or vice-versa.
Converting Decimal To HexaDecimal
In conversion from decimal to any other number system, the steps to be
followed are:
o Divide the decimal number by the base of 16.
Example:
The decimal number is 370
16 370 2
16 23 7
16 1 1
0
The hexadecimal number of 370 is 172
Converting Hexadecimal To Decimal
The hexadecimal number 172
= (1*162) + (7*161) + (2*160)
= (1*256) + (7*16) + (2*1)
= 256+112+2
= 370
The decimal number of 172 is 370
0001000
+ 1 (Continue since there is a carry of 1)
0 0 0 1 0 0 1 (Answer)
e.g. 2
101100 – 11100101
Step-1. Find the complement of 11100101
00011010
Step-2. Add the number you are subtracting from
Carry 0 1 1 1
00101100
+00011010
0 1000110
Step-3. Since there is no carry we are complement the result
10111001
attach a negative sign
- 10111001 (Answer)
Multiplication
Multiplication
Multiplication in binary follows the same rules that are followed in the
decimal system. The table to be remembered is:
0x0=0
0x1=0
1x0=0
1x1=1
e.g.
1010 * 1001
1010
x 1001
1010
0000
0000
1010
101101 0
The answer is (1011010)
Division
Table for binary division is given as under:
0/1=1
1/1=1
The steps for binary division are:
o Start from the left of the dividend.
o Perform subtraction in which the divisor is subtracted from the
dividend
o If subtraction is possible put a 1 in the quotient and subtract the divisor
from the corresponding digits of the dividend else put a 0 in the
quotient
o Bring down the next digit to the right of the remainder.
o Execute step 2 till there are no more digits left to strating down from
the dividend.
e.g.
100001 / 110
0101 (quotient)
110 100001
110
1000
110
100
110
1001
110
11 (reminder)
LANGUAGES, OPERATING SYSTEM &
SOFTWARE PACKAGES
Introduction
A computer can only do what a programmer asks it to do.
To perform a particular task programmer writes a sequence, called the program.
An instruction command given to the computer to perform a certain specified
operation on the given data.
Now as we know only human languages and computer knows only machine
language, we need some media through which we can communicate with the
computer.
So we can complete our desired task. That media is Language.
Languages are tools human can use to communicate with the hardware of a
computer system.
Each language has a systematic method of using symbols of that language.
In English, this method is given by the rules of grammar.
Similarly, the symbols of particular one computer language must also be used as
per set of rules which are known as the “Syntax” of that language, the language
which you are using.
Computer Languages can be classified into three broad categories:
LANGUAGES
M A C H I N E L AN G U AG E ?
Computer programs are written using many different computer Languages but
the language which is understood by the computer without translating program
is called machine language.
Machine language is normally written as string of binary 1s and 0s.
A machine language instruction has two part format.
OPCODE OPERAND
(OPERATION CODE) (ADDRESS)
The 1st part is the operation code which tells the computer what function to be
performed.
The 2nd part is the operand which tells the computer where to find & store data
to be manipulated.
So each instruction tells the computer what operation to perform & the length &
location of the data field which are involved in the operation.
Advantages
Programs can be executed immediately upon completion because it doesn’t
require any translation.
Now extra storage space is needed.
Programmer has complete control over the performance of the hardware.
Disadvantage
Tedious to program
Difficult to program
Difficult to modify
Time consuming to code
Error prone
Operation codes have to be memorised
Assignment of memory is done by programmer
Time consuming for development
Programs development are machine dependent
Preparation of programs was slow and costly.
AS S E M BL Y L AN G U AG E .
H I G H L E V E L L AN G U AG E .
The machine language & assembly language requires a good knowledge of
internal structure of computer.
The both languages are machine dependent & it is difficult to solve error.
To remove this limitation the high level language are introduced.
The high level languages machine independent so it can be easily ported &
executed on any computer.
The high level language programs do not require any knowledge of internal
structure of computer so the programmer concentrate on the logic of problem
rather than internal structure of computer.
It enables the programmer to write instructions using English words & familiar
mathematical symbols & expression so the program makes easier to code &
understand.
It requires a translator program to convert high level program into machine
language.
Compiler
Compiler is a special program (translator) which translates high level programs
into machine codes.
Advantages:
Machine independent.
Easier to learn, use and understand.
Easier to correct error.
Easier to maintain.
Less time & efforts.
Easily relocatable.
Program preparation cost is low.
Few errors.
Disadvantages:
Less flexible.
Lower efficiency.
Require more time & storage space.
Software : Application Software and
Systems software
Computer system combines software and hardware to provide a mechanism to solve
some specific tasks. In the previous unit, we had discussed some hardware devices i.e.
input and output devices and their functions. In this unit, we will discuss topics related to
software and their types such as systems software, applications software, utility software
etc.
With software, a computer can store, retrieve, solve different types of problems, create
friendly environment for software development.
In Computer Science, the term software means sets of instructions in the form of a
program to control the processing of computer. These programs are used for various
purposes in the computer system. A series of instructions that performs a particular task is
called “program”. The process of software development is also called programming.
Computer software can be broadly classified into two categories according to its purpose.
Systems software and Applications software.
Application software is used for solving a specific problem for inventory, payroll,
spreadsheet, word processor and presentation software etc.
Software tells the hardware how to process the data. Computer software provides
instructions that tell the computer how to operate.
CLASSIFICATION OF SOFTWARE
A computer can neither think nor make any judgment on its own. It needs a program to
tell it what to do. A program is a set of instructions that are arranged in a sequence that
guides the computer to solve a problem. Computer software provides instruction that tells
the computer how to operate. Software is also called programs. Programs are usually
developed using some language called “programming language”.
Computer software can be categories into two main categories. These are system
software and application software.
System software is that category of software, which manages all the resources of
computer, and is loaded in the beginning or booting of computer. These are designed to
make the computer easier to use. System software controls the operation of
input/output devices, memory and processor etc. Windows operating system such as
Windows 95, Windows 98, Windows 2000, Windows XP Windows Vista etc, are some
examples of system software.
System software can be further compared as a type of program that acts like a conductor
in an orchestra.
It directs all the activities and sets all the rules for how the hardware and software work
together. MS DOS and Microsoft Windows are examples of system software or operating
system software.
From the application programmer’s point of view, system software should initialize
hardware timely and efficiently and also provide better programming environment. For
example the libraries may consist of math library (for performing mathematical functions),
input/output library, graphics library (to draw different kinds of images etc.).
1. Operating System
The operating systems (OS) are most important system software to run the computer
system. Every system must have an operating system. It directly interacts with all kinds of
hardware to provide an interface to other system software and application software
whenever it wants to access system resources such as CPU, memory, I/O devices.
Components of operating system are shown in Figure. The innermost layer is Hardware
Layers, followed by operating software, and application software. The last layer of this
diagram is user layer where user is connected.
The operating system must be loaded into main memory which is also called booting from
the system. One part of an operating system also called supervisor program, which remain
in the primary memory all the time. Other part of the program are loaded into primary
memory whenever it is required, otherwise it resides on hard disk. Commonly used
operating systems are MS-DOS, MS-WINDOWS, UNIX, LINUX, XENUX etc.
Originally the operating system was created by each company that manufactured a
processor and motherboard. So each operating system was proprietary, that is, unique to
each manufacturer.
The operating system resides in the main memory of the computer system. Following are
the basic functions performed by an operating system
(ii) File Management : File Management Program makes it easier to manage your files
and folders. Many programs were written to help the user find files, create and organize
directories, copy, move, and rename files.
(iii) Disk Management : Programs involve formatting and de-fragmenting disks. The
term de-fragmenting means, putting files on the disk, so that the whole file is in sequence.
This reduces the time to access the file. Some disk management programs even let you
specify the files that are accessed often, like the operating system itself and other
frequently used programs.
(v) Security of data: The operating system handles different programs and data in the
memory, so that they do not mix or interfere with each other. It protects your computer
and data from attacks and damage from outside. Only trusted websites and programs
could be allowed to access your computer with security software.
2. Translator
The translators are the system software’s. They are used for translating the instructions
into computer readable form i.e., binary form. The instructions are written in any
computer programming language such as C or some other programming language and are
converted to computer readable form. There are many programming languages such as
machine language, assembly language, high level language. These languages allow a
person to write the software programs for system maintenance as well as applications.
These instructions are converted to binary form by translator software such as assembler,
compilers and interpreters. Let us now discuss these translator software one by one to
understand the need of language translators in programming.
(i) Assembler
The first step in the evolution of programming language was the development of assembly
language. In an assembly language mnemonics are used to represent operation codes and
strings of characters to represent address.
It is the translator program which is used to translate the assembly language instructions
in binary form. As shown in figure, assembler converts the symbolic instructions code of
assembly language into machine language.
(i) It is machine dependent i.e., the programs written for one model of computer can’t
be executed on another model.
(ii) It is very difficult to write programs in assembly language and needs rigorous
training and expertise.
(iii) Assembly language programming is time consuming in comparison to high level
language programming.
Now let us see some code of the Assembly language program: following assembly
language program code is explained as:
Code Explanation
(ii) Compiler
Since, computer doesn’t directly understand high level language programs, written in
English language to which it has to process. There is need of translators to translate the
high level language into machine language called compiler. Compilers take input as high
level language programs and produces output the machine language code of the machine
on which it is executed.
These high level language programs must be translated first into machine language and
the software which is used to convert high level language programs into machine
language (in the form of binary number, 0 & 1), is called compiler.
10 LET X = 12
20 LET Y = 15
30 LET SUM = X + Y
40 PRINT SUM
50 END
This BASIC program adds two numbers X and Y and gives output as their sum. This
program is much simpler than assembly language program written for adding two
numbers.
(iii) Interpreter
It is another translator program for high level language. It analyzes and executes high
level language program statement line by line without looking entire program at one go
(as in the case of compiler). Each time of the program is executed; every line is checked
for syntax errors and then, is converted to equivalent machine code. It is slower than the
compiler.
3. Utility Programs
A utility program performs tasks related to the maintaining of your computer’s hardware
or data. Some utility programme are included with the operating system and some is
updated every year/time you become online with internet. By updating it becomes better
equipped to handle the needs and security of computer systems.
1) Software to convert a .pdf file format into a .doc format and vise versa.
2) Multimedia converter software to convert mp3 file format to mp4 or mpeg etc and
vise versa.
3) SORT/MERGE software for sorting and merging large volume of business data into
single sorted list.
Application Software
Although system software is essential for the running your computer and manage all the
resources of it. Application software to enable the computer to solve a specific data
processing task such as payroll processing, inventory control, and insurance company
data. A software package is a group of programs for solving a specific task.
A number of powerful application software packages, which does not require significant
programming knowledge, have been developed. These are easy to learn and use as
compared to the programming languages. Software can be used by people to solve
general problems. It can be used to do more than one task such as:
• Planning
• Writing
• Record keeping
• Calculating
• Communicating
• Drawing
• Painting etc.
The word processing means typing, editing and formatting the documents such as letters,
documents, books, and balance sheets etc. In general word, processing refers to the
processing of words i.e., simple text. A word processor is such a software package that
allows the user to create and edit the documents.
Creating the documents involves typing text in the internal memory of the computer
system and saving it on the disk. Editing a document involves correction of spelling
mistakes and deleting or moving words, sentences or paragraph, i.e., arranging text at
appropriate place in the document.
Microsoft Word is a word processing software which can be used to create, edit save and
print documents. A window of MS-Word software is shown above for illustrating the
various menus present in this software. Let us now discuss the menus of this software.
Title bar: It displays the name of the program, name of the currently active word
document and control button etc.
Menu bar: It is placed below the title bar and is used for performing various tasks, such as
open, close, format etc. of the document.
Status bar: It displays information about the active task on which user is currently
working. This includes page number, line number etc. on which the user is currently
working.
Advantage of MS-Word
(1) Type a document through the keyboard and save it on the disk.
(2) Correct, delete and insert characters, words, lines anywhere in the document.
(3) Retrieve documents from the disk as and when required.
(4) Move or copy paragraphs from one place to other or from one file to other.
(5) Formatting of the document as per the need of the user.
(6) Searching of files in folders of the system.
(7) Save the edited document in the disk
(8) Print a letter or document
MS-Excel software package is used in place of paper sheet or ledger used by the people in
management. It is used to store information in the memory of computer system, calculate
the result, and display information on computer screen in a desired manner.
Some, common applications of MS Excel worksheet are: Inventory control, Payroll, Income
Tax calculation, Price list and invoice billing. Let us now discuss the menus of this
software.
Title bar: It displays the name of the program, name of the currently active MS Excel
worksheet and control button etc.
Menu bar: It is placed below the title bar and is used for performing various tasks, such as
open, close, format etc. of the worksheet.
Status bar: It displays information about the active task on which user is currently
working. This includes page number, line number etc. on which the user is currently
working.
Features of Spreadsheet
(1) Worksheet contains rows & columns. There are 65536 rows and 256 columns in a
worksheet of MS Excel.
(2) Intersection of rows & columns gives cell, which is used for data entry.
(3) Each cell of the worksheet has unique address.
(4) New rows and columns can be inserted in a worksheet.
(5) Cell address is used for defining the formula in any worksheet.
(6) Entry in worksheet may be numbers, character values or numeric values.
(7) Currently active cell is identified by the position of the cell pointer.
(8) The cursor can be moved from one cell to another by arrow keys.
3. Graphic Software
Title bar
It is located at the top of the screen, displays the name of the presentations.
Menu bar
It is located below the title bar and lists the options.
Status Bar
Used to display Messages regarding page number, slide number etc at the bottom of the
window.
Advantage of PowerPoint
PowerPoint graphics software allows us to do following tasks: Create a blank presentation
Text can be added by using text box Change the fonts, size and color of the text Add
drawing objects
Presentations can be saved in the memory of the computer
Pictures and sounds files can be inserted at appropriate place in the presentation Project
reports can be presented by using PowerPoint
DBMS has its role in almost every field of our life such as school, office, industry etc. It
allows storing and managing large amount of data. Various DBMS software’s are FoxPro,
Oracle, SQL, Sybase, MS Access etc.
This is the window of FoxPro DBMS software. Command window is box in FoxPro and can
be used to enter commands for the execution of the programs or for the preparation of
the project report.
Features of DBMS:
• Creating data files on a computer.
• Maintaining these file by adding, deleting, editing and updating a given set of data
items
• Generating reports based on data files.