Chapter - 1 - Bais
Chapter - 1 - Bais
GENERAL INTRODUCTION
1.1 An overview of computers
1.2 Computer Arithmetic
1.3 Data representation
1.4 Computer System
1.4.1 Hardware
1.4.2 Software
1.4.3 Human ware
A computer system typically include a computer, peripheral devices, and software. The electronic
and mechanical devices that manipulate data are known as hardware. The term “hardware” refers
to the computer itself and components called peripheral devices that expand the computer’s input,
output, and storage capabilities. Computer hardware in and of itself does not provide a particularly
useful mind tool. To be useful, a computer requires a computer program or software, which is a set
of instructions that tells a computer how to perform a particular task. Computers can become even
more effective when connected to other computers so that people can share information.
Store data, instruction, and information (processed data) for further and future use.
A computer accepts input: Examples of the kinds of input a computer can process include the
words and symbols in a document, numbers for a calculation, pictures, audio signals from a
microphone, and instructions for completing a process.
A computer processes data: Data refers to the symbols that represent facts and ideas. Computer
manipulate data in many ways, and we call this manipulation “ processing”. Some of the ways that
a computer can process data include performing calculations, sorting list of words or numbers, etc.
A computer stores data: A computer must store data so that it will be available for processing.
Computer typically have more than one location for storing data, depending on how the data is
being used. The computer puts data in one place while it is waiting to be processed and in another
place when it is not needed for immediate processing. Memory is an area of a computer that holds
data that is waiting to be processed. Storage is the area where data can be left on a permanent basis
while it is not needed for processing.
A Computer produces output: Computer out put is the results produced by a computer. The
word “output” is also a verb that means the process of producing output. Some examples a
computer output include reports, documents, music, graph, and pictures. An output device displays,
prints or transmits the result of processing.
Research is also being conducted that would replace the keyboard with a means of using voice or
handwriting for input. Currently these types of input are imprecise because people pronounce and
write words very differently, making it difficult for a computer to recognize the same input from
different users. However, advances in this field have led to systems that can recognize a small
number of words spoken by a variety of people. In addition, software has been developed that can
be taught to recognize an individual's handwriting
Speed
The most important characteristic of a computer is its speed. Computer works only one
step at a time.
It’s speed is measured by the amount of time it took to perform or carry out a basic
operation. Computer speed measured in terms of micro second (10 -6 one millionths),
nano second (10-9 one billionths), and pico second (10-12 one trillionths).
Storage
A computer can store large amount of information in a few numbers of disks. And the
time it took to retrieve or process a single information is not more than a micro or a
nano seconds. In general a computer has a capacity to store a very large amount of
information in organised manner so that accessing information is very fast.
Note:
Computer is efficient because it can store large amount of information within a
limited space in a very organized manner
Computer is fast because it can access the stored information in a fraction of a
second
Now a days computers are being used for surgical purposes which needs almost
hundred percent accuracy. From this we can understand that computer is accurate and
consistent. Unless there is an error in the input data or unreliable program the computer
processes with a very accurate.
Automatic
Once necessary information and program is feed to the computer, it performs
processing without human intervention.
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.
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.
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.
Hence computers do not think.
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.
They can not instruct themselves & they are not independent machines.
Once computers are fed the desired instruction, they can perform what they have been
ordered.
Computer can not sympathize (feel sorry for)
Computer can not do by trial and error
This topic deals with the various number systems which are vital for the representation and
manipulation of data in digital computers. We use a decimal number system for our day-
to-day activities. But computers understand only 0’s and 1’s - the machine language. But
using 0’s and 1’s to program a computer is a thing in the past. Now we can use the decimal
numbers. The alphabets and special characters like +,-, (,*/ etc. for programming the
computer. Inside the computer, these decimal numbers, alphabets and special characters are
converted into 0’s and 1’s, so the computer can understand what we are instructing it to do.
Note: A number system is a code that uses Symbols to refer to a number of items.
A number system of base/radix r is a system that uses distinct symbols for r digits.
in digital circuit the binary number system plays a great role. this is because, a digital
circuit has two states, HIGH and LOW. Hence it can represent the two digits of the
binary number system 0 and 1.
A single binary digit is called a BIT (shortened from Binary digIT). The binary
number (101101) therefore has 6 bits
Note: given n bits, 2n unique combinations will exist. The byte is an important unit of
digital information.
Note:
1 kilobyte (KB) is approximately 1000 bytes. It is exactly 1024 bytes. This is because
computers use binary number system rather than the decimal system. 1024=210
CONVERSION OF BASES/RADIX
I. to convert a number form base r to base 10 (DEC)
Algorithm 1
1. get the place value of each digit
2. find the sum of the place values
Examples:
Convert:
Examples:
(41)Dec to ( )Bin
(69.28)Dec to ( )Bin
(0.513)Dec to ( )oct
(7562)Dec to ( )Hex
NOTE: Algorithm is a problem-solving procedure (i.e. A logical step-by-step procedure
for solving a certain problem in a finite number of steps.
Conversion Table
The conversion from and to binary, octal, and hexadecimal plays an important role in
digital computers. Since 23 = 8, and 24 = 16
Data in a computer system is represented by a flow of an electric current through a circuit. The
presence (on) or absence (off) of this current is interpreted as 1 and 0. Any data that is manipulated
or stored in a computer is treated as a combination of 0 and 1. This is called a binary system as
only two digits (0 and 1) are used.
BYTE
Bits can be organised into large units to make them represent more and meaningful
information;
This large unit is called a byte and is the basic “unit of data representation” in a computer
system;
The commonly used byte contains 8 bits;
Since each bit has two states and there are 8 bits in a byte, the total amount of data that can
be represented is 28 or 256 possible combinations;
Each byte can represent a character(a character is either a letter, a number or a special
symbol such as +,-,?,*, $, etc
A byte is then used as a unit of measurement in the computer memory, processing unit,
external storage and during communication;
In order to expand the measuring capacity of byte we use prefixes listed below
1 KB = 210 bytes
1 MB = 220 bytes
1 GB =230 bytes
1 TB = 240 bytes
1 PB = 250 bytes
Example :
WORD
Word refers the number of bits that a computer process at a time or a transmission media
transmits at a time
Although bytes can store or transmit information, the process can even be faster if more
than one byte is processed at a once;
A combination of bytes, then form a “word”
A word can contain one, two, three or four bytes based on the capacity of the computer;
Word length is usually given in bits
We say that a computer is an 8-bits, a 16 bit, a 32 bit or a 64 bit computer to indicate that
the amount of data it can process at a time;
The large the word length a computer has the more powerful and faster it is.
The number of characters that can be represented using the binary system in a computer system is
dependent on the number of digits (bits) used for representing a single character.
Various countries or organisations have adopted different data representation standards at different
times. For example the ASCII standard is discussed below.
Through the interaction of the entire component, a computer system is used to accept input from
users, to process the input data, and finally to generate output that will be used by the user.
1. Data
WHAT IS DATA?
Text, numbers, sound (audio), graphics (images), and video that describe people, events, things,
ideas etc
WHAT IS INFORMATION ?
Text, numbers, sound (audio), graphics (images), and video used as the basis for human action or
decisions.
2. Hardware
Hardware is the general term for the physical devices that carry out the activities of
capturing, processing, storing, and communicating data and information.
The following figure shows block diagram representation of the microcomputer system
Input devices are the physical components that the user uses to capture and enter data and
instructions into the computer system. Input devices translate user data and instructions into a form
that the computer can understand. There are several types of input devices.
Keyboard – usually for character input
Pointing devices
o Mouse, trackball, touchpad, touch screen, light pen, joystick –usually for
instruction input
Reading devices
o Scanner (for graphic input), OCR reader, barcode reader
Sound, image and video input devices
o Microphone, Digital Video Camera, Digital Video Camera, Web Cam
b. Output Devices
Output devices are the components that are used to present the processed output or information in a
form that is communicable to the user.
The most common output types are:
Display Devices
Display devices are the components that are used to generate output (texts,
graphics and video output) in a visual form.
o Examples of display devices include
The CPU is the core component of the computer system where the major task of processing data
(converting data into information is carried out). .
Central Processing Unit – (CPU) of a computer is the brain of the computer that actually converts
data into information. It manages and controls the overall functionality of the computer and is a
measure of the computing power of the computer system.
The main components of the processing unit are:
Control unit
o Responsible for directing the system to carryout various internal tasks, such
interpreting and executing program instructions
o Controls the electronic flow of information, fetching and storing data and
instruction from/to registers and memory
Registers
o Under the direction of the control unit, registers are the high-speed storage area
used by the CPU. They are used to temporarily store data and instruction that
relate to the process being executed.
Memory is an internal primary data storage device that is used by the computer system in start-up
and during operation. As the CPU cannot process data directly from input device or secondary
storage devices, data and instructions have to be loaded to the internal memory before the CPU can
process them. Internal memory stores:
Whole or part of the program under execution
Data that is being processed
Operating system that is used to manage the operation of the computer
There are two major types of memory, Read Only Memory (ROM) and Random Access Memory
(RAM).
ROM is a read-only memory that provides start-up instruction when the computer starts.
Information stored in ROM is written only once by the manufacture and cannot be changed
by the user.
In general:
ROM is memory that cannot be changed.
It can be read, but not modified in any way other than replacing the memory chips
themselves.
ROM is used in situations where information must be saved and not altered.
The primary use of ROM in the computer is during the boot process.
The ROM on the computer's motherboard contains instructions that tell the machine how
to execute the "boot process".
ROM is not volatile; data stored there are kept permanently.
RAM is a temporary volatile memory space used to store data and instructions by the
computer while performing operations. Data stored in RAM exists as long as power is on.
When a computer is turned-off, all the data stored in RAM is flashed forever. Having a
large RAM size increases the processing power of the computer as more powerful
instructions can be run.
The performance of memory is by the amount of bits it can store and speed at which data can be
accessed from the memory.
The storage capacity is often expressed in MB (megabytes). Today’s personal computer
memory can store hundreds of megabytes.
Secondary storage devices are internal or external storage devices that are used to store programs
and user data for later access.
Why Secondary Storage?
Convenience – data store on a secondary storage can be accessed at a latter time, unlike
primary storage which stores data temporarily
Economical – secondary storage media is less expensive and hence users can store vast
amount data that can be accessed at a latter stage
Reliability – Data on a secondary storage is usually physically safe
There are different types of secondary storage devices. The most common storage devices are
discussed below.
Floppy Disk
A storage medium that is made from a disk of flexible plastic (the "floppy" part) covered
with a magnetic material. The floppy disk is many decades old. The standard floppy disk
can hold 1.44MB of data and has 3.5 inch diameter. Floppy disks are slow, unreliable and
can hold much less data than the other storage devices.
Hard Disk
A hard disk contains both the disk and the drive (the slot) that is used to read and write data
on the disk. A hard disk uses rigid turning disks to store data and programs. They have
Magnetic tapes are made of thin plastic material coated with magnetic coding. Magnetic tapes look
like an audiocassette, but are used to store data.
o Data is expressed in terms of density, the number of (bytes) or characters per inch
o Usually can store very large amount of data – tape cartridges can store giga bytes and
tetra bytes
o Sequential data storage and access
o Very slow read/write operation
Example of magnetic tape include backup Tape Cartridge
Reel-to-reel magnetic tape is commonly used to store information (backup)
c. Flash disk/memory
Sometimes called (data traveller)/USB Flash/disk-on-key. It is a very
convenient secondary storage device. It is pproduced from flash memory chips
The picture below shows computer output microfilm recorder and rolled microfilm
f. Communication hardware
Computer software
Software is a term for computer programs. A program is a set of instructions that enables a
computer to operate or instructions that tell the computer how to perform a specific task.
Computer software has two major categories:
System software
Application software
Systems software
Systems software includes the computer's basic operating system and language software.
The term also usually covers any software used to manage the computer and the network.
Thus we can say that systems software includes operating systems, device drivers,
programming tools, utilities and more.
Operating Systems
Provide tools for efficient use of the secondary storage media–such as disk
defragmentation, scandisk, cleanup disk, and backup
V. File Management
Data stored in any storage device are stored as files, regardless of the different characteristics and
physical organisation of the storage devices. The operating system provides a simpler standard
logical view of the files stored in the storage devices.
The operating system also provides different routines for the management of files including:
Creation and deletion of files and folders
Manipulation of files and folders – copying, renaming, deleting, printing
Backing up files on permanent storage devices
o Graphical User Interface (GUI) – these operating systems offer an easy to use
graphical interface where users can use mouse to enter instruction to the system.
With a GUI, a computer user can easily execute commands by clicking on
pictures, words, or icons with a pointing device known as a mouse
Note: GUI OS generally have the disadvantage of requiring more hardware—such as faster CPUs,
more memory, and higher-quality monitors—than do CLI operating systems .
I. Single-tasking OS
The more primitive single-tasking operating systems can run only one process at a time. For
instance, when the computer is printing a document, it cannot start another process or respond to
new commands until the printing is completed.
II. Multi-tasking OS
Desktop
Icons
Taskbar
Desktop – is the front area of the computer that provides working area for users
Icon - icons are the shortcuts that may be found on the desktop pointing to files and
folder. Some of icons that are found on a typical desktop are: My Computer, Recycle
Bin
Starting Programs
To launch an application or run program:
Click on the start button on the bottom left corner.
Start Button
Click on the start button on the bottom left cornet using your mouse
Click on the shutdown/turn off computer icon at the bottom of the list
Make sure to select the shutdown option from the choices provided
Click Ok to confirm the shutdown process.
Using desktop
The desktop contains several icons that are shortcuts to different programs. For Windows 2000
professional the following are few of the default icons.
My Computer
My computer gives an easy to work environment. Few of the operations that can be performed
from the My Computers window are:
Create files and folders
View files and folders
Manipulate files – open, copy, delete
The following windows is displayedwhen you double-click on the My Computer icon on the
desktop.
Menu bar
Tool bar
1. Work Area
2. Scroll Box (Thumb)
3. Windows Border
4. Scroll Bar
5. Scroll Arrows
6. Windows Corner
7. Control Menu Icon
PROGRAMMING LANGUAGES
are the mediums used by human beings to communicate their instruction to computers.
PROGRAMMING LANGUAGES are also classified as
Machine Languages
Low Level Languages
High Level Languages
Examples of programming languages:
FORTRAN, COBOL, PL/one, BASIC,FOCUS, NOMAD,PASCAL,C,C+, etc ....
SYSTEM SOFTWARE
Application Software
Application software is a set of computer programs (instruction) that are developed to address the
user needs to perform specific function or solve specific problems. Some of the major application
software categories are discussed below:
Word Processing – such application are used for processing and manipulating text-based
data, such as writing documents.
o Example: Microsoft Word
Spreadsheet - such applications are built-in with various routines that are used for
processing numerical data. Applications that fall in this category are often used in
financial, statistical, mathematical problem solving.
o Example: Microsoft Excel, SPSS, PeachTree
Data Management – These applications provide a structured system to manage data that
enable to store, retrieve, and manipulate data.
o Microsoft Access, Paradox, Oracle, Sybase
Desktop Publishing - these applications are similar to word processors providing a powerful
sophisticated routines for creating publications, such as high quality newsletters,
advertising and marketing materials.
o Example: Microsoft Publisher, Quark Express
Graphics – such software are used in creating, storing, analysing, displaying, printing of
charts, graphs, maps, design drawings. Examples of graphics applications are:
o Presentation software
o CAD (computer Aided Design) – such as AutoCAD
Multimedia – multimedia applications are used for processing audio, animation, video,
graphics and images.