Sunday, 10 December 2017

COMPUTER APPLICATIONS

COMPUTER APPLICATIONS  

Computer plays a very important role in each and every aspect of our life, be it banking,insurance or transportation, it is useful for preparing payroll of the employees, maintenance ofoptimum inventory level, sales order processing, reservation of tickets etc. It processes thetransactions very quickly and accurately. So, it finds applications in various stages of business.


BUSINESS APPLICATIONS  

The following are some of the areas of business in which computers are applied:

1.
Payroll Processing:Business means selling goods and services. To carry out such activities, business
management employs people. They have to be paid monthly salaries and the details regarding
pay particulars of employees have to be kept track.
Business community employs computers for such payroll applications and runs a
program consisting of a number of smaller programs or modules. Each module performs a
particular function of the payroll. Sometimes we call this set of programs as payroll system.


To calculate the pay of an employee, management normally uses the following details of
employees.

(1) Employee number (This is a unique number assigned to the employee to identify him just as
your roll number in the school) (2) Name, (3) Basic pay, (4) Allowances (House rent allowance
and other allowances), (5) deductions (Example Provident Fund deduction) and (6) Bank account
number. These details above the employees do not change but they have to be used every
month. So they are entered into a file in a computer storage medium and permanently stored.
This file goes with the name master file. The file creation module of the payroll system creates
this file once.

Before calculation of the pay of employees every month, some figures in the master need
changes. For example, if an employee completes a year of service, he normally gets an
increment. Such figures are updated using the master update module of the payroll system.
After updating, another module of the payroll system reads details from master file and
calculates net pay. The program also prints out pay slip for each employee to be handed over to
him. A pay slip shows the employee number, name, basic pay, various allowances, various
deductions and net pay.

The payroll system also generates a number of statements. It prints out the statement
showing employee number, name, bank account number and net pay. This statement is sent to
the bank, which transfers the net pay from the company’s account to the individual employee’s
account in the bank. Some companies copy this statement on to a floppy and send to the bank
which processes this statement on its computer.

The payroll system generates a provident fund deduction statement. This statement
shows the employee numbers, names and amount deducted. Another statement showing the
names, employee numbers and tax deducted is printed. The company sends it to Income Tax
office. Thus we see that a number of statements can be printed from the same master file.


2. Inventory Control:

The second application is the use of computers to keep track of the purchase and issues of
parts and raw materials needed in an organization. These parts and raw materials are called
inventories and the set of programs used to keep track of the purchase and issue of these
inventories constitute the inventory control system.

In business, a particularly quantity of each item or raw material has to be stocked. Too
less a stock would result in non-availability of these items, when the manufacturing activity
needs it. Too much of stock of these means, more money in terms of investment in buying the
excess stock. Business pays interest on money invested, and the excess interest paid on cost of
excess stock is a loss to business. So the business maintains an optimum quantity of material.
The inventory control system maintains a file with part number, name, quantity on stock a level
of stock at which the company orders for fresh quantity (called reorder level) and the suppliers’
addresses. This file is the inventory master.

When an item is issued, the inventory update program updates the inventory master
reducing the stock by the quantity issued. If the resultant stock falls below the reorder level, the
inventory control program prints out an order to the supplier of the item automatically. It can be
mailed to the supplier. When the supplier supplies the item, the inventory control program
updates the stock on hand.
The inventory control system keeps track of the supplies and issues. So, it can tell the
management of the company the usage of these items over a period of time quickly. It also
maintains an optimum level of stock of these items.



3. Sales Order Processing

Real –time systems offer the possibility of a greatly prompt service to the customer. His
order can be processed within virtually no time. The finished goods inventory file may have data
terminals throughout the sales territory. So much that the CRT’s can be made to display the
invoice on a terminal for the salesman who is in the customer’s plant and can input the
particulars there and then! The customer would be made immediately in the general ledge. The
invoice can also be posted to the accounts receivable file instantaneously. The selection of
warehouse that is closest to the customer can also be made and a coy of the invoice could be
displayed at the warehouse terminals. Beside, the following functions can be performed rapidly.
  •  The inquiries about the customer’s accounts status can be answered by the salesman.
  •  Credit appraisal can be carried out on-line.
  •  Sales analysis master file can be updated online. This file provides a ready Information to the sales manager regarding sales trends, etc.,
  • Inventory replenishment order can be determined as a part of the sales order processing.  
ON-LINE APPLICATIONS

1. Banking:

In banks the customers, present cheques for withdrawing money. The clerk verifies from
the register the signature of the customer. (The customer has signed in the application form
while opening an account). Then he checks from a ledger the customer’s balance. If the
customer has sufficient balance to cover the cheque amount, the clerk passes the cheque for
payment, and updates the balance.

There are a number of operations that the bank carries out of which the above is an
example. We will see how the above operation called personal banking is computerized.
Suppose you want to open a bank account. The bank official hands over a form to you.
You fill up the details (such as name, address, profession etc.) and sign the application. The
bank stores this information in a computer on which a banking software runs. The customer’s
signature is scanned by suitable devices and incorporated in the computer file.
If you present a cheque to the clerk in the bank, he can check the signature manually. If
he is satisfied with the correctness, he can enter you account number and the cheque amount into
the computer which checks your account and updates the amount. The clerk then pays you the
money. In the method, the payment is manual and accounting is automatic. There is another
way where the checking of you accounts as well as payment is made by computer using an
automatic teller machine. Let us study this.

A machine similar to automatic coffee vending machine is installed at selected places. It
is connected to the bank’s computer. When you open an account, the bank gives you a special
type of card. Your name, account number and address are suitably recorded. Your signature is
magnetically recorded in that card. All these details are suitably converted and recorded in the
computer also. When you want to withdraw money, you go to the teller counter and press a few
buttons. You then insert your card in the slot provided in the machine. The machine reads you
account number and signature from the card. It sends them to the computer which checks you
account number and signature. If they tally, the computer sends a relevant message to the
automatic teller machine. It asks you to enter the amount. You may enter the amount through
the buttons on the machine. Again the computer checks if you have sufficient balance. If so, it
instructs the machine to pay you. The ATM then delivers the cash on the tray fixed in it. You
may collect the money.

This is only one example of application of computer in banks. Now large systems
installed at the head office of a particular bank are connected to systems installed at its branches
all over the country. The computers of different banks are also connected together. By sending
suitable messages money can be transferred from one bank to the other. This is called
Electronics Funds Transfer.

2. Railway Reservation System:

Application of computers in railway reservation has made tremendous impact in India.
Before computerizing, there were a number of counters, each counter serving a particular train or
a few trains. If you want to make a reservation to, say Delhi, you have to go to the particular
counter and join the queue. The clerk had a register in which two or three pages are allotted to
each date. He may have two or three more registers for other trains for which he is making
reservation.
He puts seat numbers on a page one by one and keeps writing the names of passengers
for whom he reserves seats against seat numbers. After some time, if somebody cancels his
ticket, he strikes off the name. When the next person reserves for that time and date, the clerk

writes his name above the cancelled name. This gives rise to lot of confusions. In a number of
situations, two persons used to be allotted the same seat.
With the increasing population the Government is increasing the number of trains. Thus
the volume of data to be handled has also increased enormously. You can just imagine the
confusion this will create if we are still following the manual system of reservation.
We just saw how manual system has become unsuitable in the present context. Now let
us study how the computerized railway reservation system works.

There is a central computer with a number of terminals connected to it the details of all
trains for which reservation is done at the region are stored in the computer. The railway
reservation system runs on this computer. The terminals are situated in booking counters. It is
possible to install the terminals in a far off place and connect them to the computer through
cables.
When the passenger presents the reservation form to the booking clerk he enters the train
number, date, name, age and other details of the passenger. The program checks availability of
seats in that particular train on that particular date. If accommodation is available, the clerk
presses a button on the key board and the computer prints out the ticket on the printer connected
to the terminal. It also updates the computer file to reflect the new reservation position.
Suppose you wanted the ticket for train number 1, but you get only a waiting list. The
clerk tells you your position in the waiting list. If you want you can get a wait listed ticket. If
not, you tell the clerk to check for accommodation in a different train to your destination. The
clerk only has to re-enter the train number. The computer checks availability, reserves you ticket
on that train if a seat is available and prints the ticket.
Thus you can go to any booking counter and request for reservation in any train being
operated on that station. Also the errors found in the manual reservation method are eliminated.
The reservation system is broader based as follows: Today computers in different cities
are connected together. (It is called networking). Suppose you are in Coimbatore. You want to
book your journey from Madras to Coimbatore. You can go to a booking counter (Railways
have opened a number of booking counters in the same city) in Coimbatore and reserve your
ticket from Madras to Coimbatore. Thus there is lot of flexibility in reservation.
We studied that computers are capable of storing lot of data on the hard disk. They are
also capable of retrieving data fast. So the list of passengers for a particular day for a particular
train is also printed out very fast.
The reservation data for a number of trains over a period of time is available. By suitable
software, the railway authorities can prepare the data regarding passengers traveling in different
trains to different places during different periods. This helps them plan for new trains, reschedule
the running trains and make lot of analysis regarding passenger traffic.

3. Air Lines Reservation System:

We saw how computers handle the railway reservation and offer a number of advantages.
They can be used also in Airlines reservation. Only difference will be that some booking
counters in the reservation network may be situated in different countries.
This means that we have to connect computers across the countries. Such networks are
operational now.
In the coming years, computerized reservation systems will become very common. Even
hotel accommodation reservation systems for major hotels are coming up. If we integrate flight
and hotel reservation, it is convenient for the passengers.
  


REAL-TIME APPLICATIONS

In real time applications, computers control an on going activity. Let us consider the
example of a manufacturing process. A product C is made from raw materials A and B. The
quality of C depends upon, among other things, the quality of A and B and their quantities. In
big manufacturing processes, raw materials are fed by machineries. Due to problems i n
machineries, the performances may vary from machine to machine. This affects the quality of
final product. Manual inspection of quality and operation of these machineries to control the
quantity are slow. This slows the manufacture of C from raw materials A and B. Signals from C
are fed to the computer. Suitable sensors are installed in the lines carrying raw materials as well
as finished product. These generate signals. The values of these signals for correct proportion of
raw materials are stored in the computer. When the process is on signals keep coming from the
output line depending up the quality of finished product.
Let us see what happens if either A or B varies in quality. The quality of the finished
product also suffers. The sensor in the finished product line senses this. The signals generated
by it change in strength. They are sent to the computer. It compares the signals with already
stored signals. The difference is used to change the quantity of raw materials A and B.
Manual control of this process is slow. Moreover, if people inspect quality and operate
machineries feeding raw materials, they become tired after sometime. But computer does not.
So the quality of product is uniform. Moreover, there may be processes where the presence of
human beings continuously for hours together will be injurious to their health. In such places
computer control avoids such ill-effects.
  

Sunday, 3 December 2017

Output Unit

Output Unit  

  • The output unit gets the processed data from the computer and sends it to output devices to make them available to the user of computer.
  •  The output data is provided through output devices like display screen, printer, plotter and speaker.
  •  The processed data sent to the output device is in a machine understandable form. This processed data is converted to human readable form by the output interface of output device.
In brief, the output unit accepts output data from computer via output device, transforms the
output information to human readable form using the output interface of output device and
provides the transformed output to user.
 

Output Devices

Monitor, Visual Display Terminal, Printer, Plotter, Computer Output on Microfi lm
(COM), Video Output System, Audio Response System.


Output devices provide output to the user, which is generated after processing the input data. The
processed data, presented to the user via the output devices could be text, graphics, audio or
video. The output could be on a paper or on a film in a tangible form, or, in an intangible form as
audio, video and electronic form. Output devices are classified as follows

  •  Hard Copy Devices
o Printero Plottero Computer Output on Microfilm (microfiche)
  •  Soft Copy Devices
o Monitoro Visual Display Terminalo Video Outputo Audio Response


Hard Copy Devices

The output obtained in a tangible form on a paper or any surface is called hard copy output. The
hard copy can be stored permanently and is portable. The hard copy output can be read or used
without a computer. The devices that generate hard copy output are called hard copy devices.
Printer, plotter and microfiche are common hard copy output devices.



PrinterA printer prints the output information from the computer onto a paper. Printers are generally
used to print textual information, but nowadays printers also print graphical information. The
print quality (sharpness and clarity of print) of the printer is determined by the resolution of the
printer. Resolution is measured in dots per inch (dpi). Printers with a high resolution (more dpi)
provide better quality output. Different kinds of printers are available for different types of
applications. Printers are classified into two categories
impact printer and non-impact printer.Impact printers use the typewriter approach of physically striking a typeface against the paper
and inked ribbon. Impact printers can print a character or an entire line at a time. Impact printers
are low-cost printers useful for bulk printing. Dot matrix printers, daisy wheel printers and drum
printers are examples of impact printers.


Dot Matrix Printers print one i character at a time. The speed of dot matrix
printer lies between 200 and 600 characters per second (cps) and their resolution ranges
from 72 to 360 dpi. Dot matrix printers normally come in two sizes
80 column printer
and 132 column printer. Dot matrix printers can print alphanumeric characters, special
characters, charts and graphs. They can print only in black and white. Some dot matrix
printers can print in both directions - left to right and right to left. Dot matrix printers are
commonly used for printing in applications like payroll and accounting.


dot matrix printer














Daisy Wheel Printers  print one character at a time. They produce letter
quality document which is better than a document printed by a dot matrix printer. The
speed of daisy wheel printers is about 100 cps. The print head of the printer is like a daisy
flower, hence the name. These printers are slow, can only print text (not graphics), and
are costly in comparison to dot matrix printers. Daisy wheel printers are used where high
quality printing is needed and no graphics is needed.


Daisy wheel printer











 Drum Printers are line printers. They are expensive and faster than character printers
but produce a low quality output. They can print 200
2500 lines per minute. Drum
printers are generally used for voluminous print outputs.


Drum printer



















Non-Impact Printer do not hit or impact a ribbon to print. They use electro-static chemicals and
ink-jet technologies. Non-impact printers are faster and quieter than impact printers. They
produce high quality output and can be used for printing text and graphics both in black and
white, and color. Ink-jet printers and laser printers are non-impact printers.

Ink-jet Printers spray ink drops directly on the paper like a jet. Their
resolution is more than 500 dpi. They produce high quality graphics and text. Ink-jet
printers are commonly found in homes and offices.


Ink jet printer















Laser Printers  provide highest quality of text and graphics printing.
Laser printers process and store the entire page before printing and are also known as
page printers. The laser printer can print 524 pages of text per minute and their
resolution ranges from 400 to 1200 dpi. They are faster and expensive than impact
printers. Laser printers are used in applications requiring high quality voluminous
printing.


















 PlotterA plotter is used for vector graphics output to draw graphs, maps, blueprints of
ships, buildings, etc. Plotters use pens of different colors (cyan, magenta, yellow and black) for

drawing. Plotters draw continuous and accurate lines, in contrast to printers where a line is drawn
as closely spaced dots. Plotter is a slow output device and is expensive. Plotters are of two
kinds
drum plotter and flatbed plotter. In a drum plotter, pens mounted on the carriage are
stationary and move only horizontally; for vertical movement, the drum on which the paper is
fixed moves clockwise and anti-clockwise. In a
flatbed plotter, the paper is fixed on a flat bed.
The paper is stationary and the pens mounted on the carriage move horizontally and vertically to
draw lines. Plotters are mainly used for drawings in AUTOCAD (computer assisted drafting),
Computer Aided Design (CAD) and Computer Aided Manufacturing (CAM) applications.


plotter














 Computer Output on MicrofilmA microfilm is in a fiche or roll format, and is used to record computer output
directly from the computer tape or cartridge. Computer Output on Microfilm (COM) is a high
speed and low cost process. It can produce data in microfilm form at a much faster speed from
that of a paper printer. The standard roll film is 16 mm wide with a film image that is 1/24 of the
original document. The copy of the image on microfilm retains its original clarity. Microfilm can
be indexed to facilitate retrieving information from it. For reading images stored on microfilm, a
microfilm reader is used. A screen is used for viewing the enlarged images. COM is suited for
storing large amounts of data for manuals and archive records for long periods of time that have
to be referenced occasionally. COM is used for storing output in banking and insurance
applications, medical X rays, etc.

Microfirm



















Soft Copy DevicesThe output obtained in an intangible form on a visual display, audio unit or video unit is called
soft copy output. The soft copy allows corrections to be made, can be stored, and, can be sent via
E
to other users. The soft copy output requires a computer to be read or used. The devices that
generate soft copy output are called soft copy devices. Visual output devices like computer
monitor, visual display terminal, video system and audio response system are common soft copy
output devices.

 MonitorMonitor is a common output device. The monitor is provided along with the computer, to view
the displayed output. A monitor is of two kinds - monochrome display monitor and color display
monitor. A monochrome display monitor uses only one color to display text and color display
monitor can display 256 colors at one time. The number of colors displayed by a color monitor
varies with the kind of color adapter attached to it
CGA, EGA, VGA, XGA and SVGA. The
CGA monitor supports four colors and SVGA supports around 16,000,000 colors. Monitors are
available in various sizes like 14, 15, 17, 19 and 21 inches.
An image on the monitor is created by a configuration of dots, also known as pixels. The clarity
of image on the computer screen depends on three factors

1. Resolution of Screenthe number of pixels in horizontal and vertical direction. More
the number of pixels, the sharper is the image. The common resolution of computer
screen is 800x600 and 1024x768,
2.
Dot Pitchthe diagonal distance between two colored pixels on a display screen, and
3.
Refresh Ratethe number of times per second the pixels are recharged so that their glow
remains bright.
Monitors may be
Cathode Ray Tube (CRT) monitors that look like a television orLiquid Crystal Display (LCD) monitors that have a high resolution,
flat screen, flat panel display. Nowadays, LCD monitors are generally used.

LCD  Monitor





















 Visual Display TerminalA monitor and keyboard together are known as Visual Display Terminal (VDT). A keyboard is
used to input data and monitor is used to display the output from the computer. The monitor is
connected to the computer by a cable. Terminals are categorized as dumb, smart and intelligent
terminals. The dumb terminals do not have processing and programming capabilities. Smart
terminals have built-in processing capability but do not have its own storage capacity. Intelligent
terminals have both built-in processing and storage capacity.


 Video OutputScreen image projector or data projector  is an output device that displays
information from the computer onto a large white screen. The projector is mainly used to display
visual output to a large gathering of people required for the purposes of teaching, training,
meetings, conference presentations, etc. 

 Audio ResponseA complete sound system consists of sound card, microphone, speaker and the appropriate
software. In addition to recording and playing the sound, the software allows editing of sound,
like cutting, copy, amplification and creation of vibrant sound effects.
Audio response provides audio output from the computer. Audio output device like
speakers,
headset or headphone  
is used for audio output sound from computer. The signals
are sent to the speakers via the sound card that translates the digital sound back into analog
signals. The audio response from the computer may be generated by synthesizing the input

human speech to give audio output, or may be a result of a set of rules that are used to create
artificial speech.
Audio output is commonly used for customer service in airlines, banks, etc. It is also used in
video conferences, surveys, etc. Audio response is used by visually impaired to read information
from the screen. For speech impaired people, audio response helps them to communicate with
other people.

Wednesday, 15 November 2017

INPUT DEVICES

INPUT-OUTPUT UNIT  

An I/O unit is a component of computer. The I/O unit is composed of two partsinput unit and
output unit. The input unit is responsible for providing input to the computer and the output unit
is for receiving output from the computer.
 


Input Unit
  •  The input unit gets the data and programs from various input devices and makes them available for processing to other units of the computer.

  •  The input data is provided through input devices, such askeyboard, mouse, trackball and joystick. Input data can also be provided by scanning images, voice recording, video recording, etc.
  •  Irrespective of the kind of input data provided to a computer, all input devices must translate the input data into a form that is understandable by the computer, i.e., in machine readable form. The transformation of the input data to machine readable form is done by the input interface of input device.

In brief, the input unit accepts input data from the user via input device, transforms the input data
in computer acceptable form using input interface for the input device and provides the
transformed input data for processing.
  

In addition to input devices and output devices, some devices function as both input and output
devices. The I/O devices provide the input to computer as well as get output from computer. The
I/O devices are used by both the input unit and the output unit. Hard disk drive, floppy disk
drive, optical disk drives are examples of I/O devices.

Input
Devices
Keyboard, Mouse, Digitizing Tablet, Track Ball, Joystick, Touch Screen, Light Pen,
Speech Recognition System, Digital camera, Scanner, Magnetic Ink Character
Recognition (MICR), Optical Character Recognition (OCR), Optical Mark
Recognition (OMR), Barcode Reader
Output
Devices
Monitor, Visual Display Terminal, Printer, Plotter, Computer Output on Microfi lm
(COM), Video Output System, Audio Response System
Input Output
Devices
  



INPUT DEVICESInput devices allow users and other applications to input data into the computer, for processing.
The data input to a computer can be in the form of text, audio, video, etc.

The data is entered manually by the user or with minimal user intervention. Input devices are classified as follows



  •  Human data entry devices
o Keyboardo Pointing devicesmouse, trackball, joystick, digitizing tableto Pick deviceslight pen, touch screen
  • Source data entry devices
o Audio inputspeech recognitiono Video inputdigital camerao Scannerhand-held scanner, flat-bed scannero Optical ScannerOCR, OMR, MICR, barcode reader

The input is provided to the computer using an input device, and must be translated to a form
that the computer can understand. The translation is done by the input interface of the input
device.
In addition to the above devices, the input to a computer can also be provided from a storage
device on the computer, another computer, or another piece of equipment, such as a musical
instrument, thermometer or sensors.
  


Keyboard

Features Keyboard is a common input device. It is provided along with the computer, and is
easy to use. It is used for entering the text data. For inputting the data, the user types the data
using the keyboard. When the data is being typed, the display monitor displays the typed data.
Cursor is a vertical line, an underscore, blinking line, etc. Cursor moves with each typed
character. The position of cursor indicates the location on monitor where the typed-in character
will be displayed.

Description The design of a keyboard is similar to a standard typewriter. The modern keyboards
are QWERTY keyboard (Q, W, E, R, T, Y are the sequence of keys in top row of letters).
Standard keyboard contains 101 keys which are arranged in the same order as a typewriter. The
keyboard has five sections (1) Typing keys (1, 2, 3…, A, B, C…), (2) Numeric keypad (numeric
keys on right side), (3) Function keys (F1, F2…. on top side), (4) Control keys (cursor keys, ctrl,
alt.…), and (5) Special
-purpose keys (Enter, shift, spacebar…). Some keyboards have 110 keys,where the extra keys are designed to work with the Windows operating system.

Working When a key is pressed, keyboard interacts with a keyboard controller and keyboard
buffer. The keyboard controller stores the code of pressed key in keyboard buffer and informs
the computer software that an action has happened on the keyboard. The computer software
checks and reads the keyboard buffer and passes the code of pressed character to the system
software. Due to a time gap between pressing of a key on keyboard and reading by the system
software, keyboard buffer is designed to store many keystrokes together.
  



keyboard


Pointing Devices

Pointing devices are used for providing the input to computer by moving the device to point to a
location on computer monitor. The input data is not typed; instead, the data is entered by moving
the pointing device. The cursor on the computer monitor moves with the moving pointing device.
Operations like move, click and drag can be performed using the pointing devices. Mouse,
trackball, joystick and digitizing tablet are some of the common pointing devices.


  Mouse

Features It is the most common pointing input device. The data is entered by pointing the mouse
to a location on the computer screen. The mouse may also be used to position the cursor on
screen, move an object by dragging, or select an object by clicking. The key benefit of using a
mouse is that the cursor moves with the mouse. So, the cursor can be positioned at any location
on the screen by simply moving the mouse. Moreover, it provides an easy way to select and
choose commands from menus, dialog boxes, icons, etc. Mouse is used extensively, while
working with graphics elements such as line, curve, shapes, etc.


Description Mouse is a small hand-held device having two or three buttons on its upper side. In
addition to the buttons, mouse also has a small wheel between the buttons.

. The wheel of the mouse is used for the up and down movement, for example, scrolling a
long document. A mouse is classified as physical mouse or optical mouse.

Physical Mouse has a rubber ball on the bottom side that protrudes when the mouse is moved. It
requires a smooth, dust free surface, such as a mouse pad, on which it is rolled.
Optical Mouse uses a Light Emitting Diode (LED) and a sensor to detect the movement of
mouse. Optical mouse requires an opaque flat surface underneath it. Optical mouse was
introduced by Microsoft in 1999. Optical mouse is better than physical mouse as there is no
moving part that can cause wear and tear, and dirt cannot get inside it.

Working In a physical mouse, rollers and sensors are used to sense the direction and rate of
movement of mouse. When the ball of mouse moves, the rollers sense the horizontal and vertical
movement and sensors sense the speed of movement. This information is passed to computer via
the mouse chord. When an
optical mouse is moved, a beam of light is reflected from its
underside. These pulses of light determine the direction and rate of movement. This information
is sent to computer via the mouse chord.

Using the mouse The mouse can be used in five different ways, as follows
  •  Pointing points to a location or object on the computer screen. Moving the mouse by hand moves the cursor on computer screen. The cursor moves in the direction in which the mouse moves.
  •  Left Click or Click means pressing the left button of mouse and releasing it. Clicking issused to  select a button, command or icon on the screen.
  •  Right Click involves pressing the right button on mouse and releasing it. Right click displays a menu that contains options like cut, copy, paste, font, paragraph, etc. for the item on which the mouse is pointing.
  •  Double Click means pressing the left button of mouse twice successively, without moving the mouse, and then releasing the mouse. It is used to start a program or open a folder.
 Drag and Drop drags an object and drops it at another location. Drag means pointing mouse to an object on screen, pressing the left button of mouse, keeping it pressed and moving the mouse to point to a new location. The object gets dragged to the new location along with the mouse. When the left button of mouse is released, the object gets dropped at the new location. Drag and drop is used for moving folders, files and icons to new locations on the screen.



A Mouse
  Track Ball
Features Trackball is a device that is a variant of the mouse but has the functionality of mouse.
It is easy to use and takes less space than a mouse. Trackball is generally built in laptops since
there is no space for the mouse to move on the lap. Trackballs come in various sizes
small and
big.


Description
Trackball looks like an upside-down mouse. Instead of moving the whole device to
move the cursor on computer screen, trackball requires the ball to be rotated manually with a
finger. The trackball device remains stationary. The cursor on the computer screen moves in the
direction in which the ball is moved. The buttons on trackball are used in the same way as mouse
buttons. 

Working Trackball works in the same way as a physical mouse.  


Trackball




Joystick

Features Joystick is a device which is commonly used for playing video games.
Joystick is mainly used to control the speed of the cursor and is thus popular in games involving
speed like racing and flying games. The direction of push of the stick and the amount of
deflection determines the change in position and the change in speed, respectively.
joystick

Description It is a stick with its base attached to a flexible rubber sheath inside a plastic cover.
The plastic cover contains the circuit that detects the movement of stick and sends the
information to computer. The position of the stick movement is given by the x and y coordinates
of the stick.



 Digitizing Tablet

Features It is an input device used primarily to input drawings, sketches, etc. Digitizing tablet is
used for Computer Aided Design (CAD) for the design of buildings, automotive designs, and
designing of maps, etc.

Description Digitizing tablet consists of two partselectronic tablet and pen. The electronic
tablet is a flat bed tablet. The pen looks like a ball pen but has an electronic head. The pen in
moved on the tablet. Each position on the tablet corresponds to a fixed position on the screen.
Drawings can be made on the tablet using a pen, and is provided as input to computer, where, a
location on the tablet corresponds to a specific location on the screen.

Digitizing Tablet


Working The tablet contains circuit that can detect the movement of pen on the tablet, convert
the movements into digital signals and send the digital signal to the computer.



 Pick Devices

Pick devices are used for providing input to the computer by pointing to a location on the
computer monitor. The input data is not typed; the data is entered by pointing the pick device
directly on the computer screen. Light pen and touch screen are some common pick devices.


Light Pen

Features It is a light sensitive pen-like input device and is used to select objects directly on the
computer screen. It is used for making drawing, graphics and for menu selection. Figures and
drawings can be made by moving the pen on computer screen.

Description and Working The pen contains a photocell in a small tube. When the pen is moved
on the screen, light from the screen at the location of pen causes the photocell to respond. The
electric response is transmitted to the computer that can identify the position on screen at which
the light pen is pointing. 




light pen




 Touch Screen

touch screen ATM machine
Features It is an input device that accepts input when the user places a fingertip on the computer
screen. The computer selects the option from the menu of screen to which the finger points.
Touch screen are generally used in applications like Automated Teller Machine (ATM), public
information computers like hospitals, airline reservation, railway reservation, supermarkets, etc.

Description Touch screen consists of a clear glass panel that is placed over the view area of
computer screen. In addition to the glass panel with sensors, it has a device driver, and a
controller that translates the information captured by the glass panel sensors to a form that the
computer can understand.

Working Touch screens have an infrared beam that criss-cross the surface of screen. When a
fingertip is touched on the screen, the beam is broken, and the location is recorded. Some touch
screens have ultrasonic acoustic waves that cross the surface of screen. When a fingertip is
touched on the screen, the wave is interrupted, and the location is recorded. The recorded
location is sent to the computer via the controller of touch screen, in a form that the computer
can understand.


 SOURCE DATA ENTRY DEVICES

Source data entry devices are used for audio input, video input and to enter the source document
directly to the computer. Source data entry devices do not require data to be typed-in, keyed-in or
pointed to a particular location.

 Audio Input Device

Audio input can be provided to the computer using human voice or speech. Audio input to the
computer can be used for different purposes. It can be used for making telephone calls, for audio
and video conferencing over Internet, to record voice, to create audio files and embed these files
to be sent over e-mail, or, to translate spoken words into text, etc.

Audio input devices like a
microphone is used to input a person’s voice into the computer. A
sound card 
translates analog audio signals from microphone into digital codes that the computer can store and process. Sound card also translates back the digital sound into analog signals that can be sent to the speakers. Translating spoken words into text is also known as speech recognition or voice recognition. The audio input along with the software for voice recognition forms the speech recognition system or voice recognition system.

The computer can be operated using voice commands. The user can dictate the commands to the
computer, instead of typing them. The computer has to be trained to recognize the voice of user
using the speech patterns and pronunciation of words. The system thus adapts to the voice of
user. Speech recognition systems are costly and difficult to develop. They are generally used by
people who have difficulty in typing, people with disabilities or by corporate world for dictation.
Audio input can be recorded on an mp3 recorder and provided as an input to computer. Open
source software like Audacity is used for recording and editing of audio files .


Video Input Device

Video input is provided to the computer using video camera and digital camera
Video camera can capture full motion video images. The images are digitized and can be
compressed and stored in the computer disk. Webcam is a common video camera device. It is
placed on the computer above the screen to capture the images of the user who is working on the
computer. A video capture card allows the user to connect video devices like camcorders to the
computer.


Digital camera works like video camera but can capture still images. The digital camera digitizes
images, compresses them and stores them on a memory card like flash memory. The information
from the digital camera can be brought into the computer and stored. The video files can be
edited using software like VLC media player. Computer vision is an area of computer science
that deals with images. Computer vision has applications in areas like robotics and industrial
processing.
  




Monday, 6 November 2017

THE COMPUTER SYSTEM HARDWARE

CENTRAL PROCESSING UNIT  

Central Processing Unit (CPU) or the processor is also often called the brain of computer. CPU consists of Arithmetic Logic Unit (ALU) and Control Unit (CU). In addition, CPU
also has a set of registers which are temporary storage areas for holding data, and instructions.
ALU performs the arithmetic and logic operations on the data that is made available to it. CU is
responsible for organizing the processing of data and instructions.
CU controls and coordinates
the activity of the other units of computer. CPU uses the registers to store the data, instructions
during processing.
CPU executes
the stored program instructions, i.e. instructions a
nd data are stored in memory
before execution. For processing, CPU gets data and instructions from the memory. It interprets
the program instructions and performs the arithmetic and logic operations required for the
processing of data. Then, it sends the processed data or result to the memory. CPU also acts as an
administrator and is responsible for supervising operations of other parts of the computer.
The CPU is fabricated as a single Integrated Circuit (IC) chip, and is also known as the
microprocessor. The microprocessor is plugged into the motherboard of the computer
(
Motherboard is a circuit board that has electronic circuit etched on it and connects the
microprocessor with the other hardware components).


Block diagram of CPU



Arithmetic Logic Unit

  •  ALU consists of two unitsarithmetic unit and logic unit.
  •  The arithmetic unit performs arithmetic operations on the data that is made available to it.
Some of the arithmetic operations supported by the arithmetic unit areaddition,
subtraction, multiplication and division.

  •  The logic unit of ALU is responsible for performing logic operations. Logic unit performs comparisons of numbers, letters and special characters. Logic operations include testing for greater than, less than or equal to condition.

  •  ALU performs arithmetic and logic operations, and uses registers to hold the data that is being processed.

 Registers

  •  Registers are high-speed storage areas within the CPU, but have the least storage capacity. Registers are not referenced by their address, but are directly accessed and manipulated by the CPU during instruction execution.

  •  Registers store data, instructions, addresses and intermediate results of processing. Registers are often referred to as the CPU’s working memory.

  •  The data and instructions that require processing must be brought in the registers of CPU before they can be processed. For example, if two numbers are to be added, both numbers are brought in the registers, added and the result is also placed in a register.

  •  Registers are used for different purposes, with each register serving a specific purpose.
Some of the important registers in CPU are as followso Accumulator (ACC) stores the result of arithmetic and logic operations.o Instruction Register (IR) contains the current instruction most recently fetched.o Program Counter (PC) contains the address of next instruction to be processed.o Memory Address Register (MAR) contains the address of next location in the
memory to be accessed.
o Memory Buffer Register (MBR) temporarily stores data from memory or the data
to be sent to memory.
o Data Register (DR) stores the operands and any other data.

  •  The number of registers and the size of each (number of bits) register in a CPU helps to determine the power and the speed of a CPU.
  •  The overall number of registers can vary from about ten to many hundreds, depending on the type and complexity of the processor.
  • The size of register, also called word size, indicates the amount of data with which the computer can work at any given time. The bigger the size, the more quickly it can process data. The size of a register may be 8, 16, 32 or 64 bits. For example, a 32bit CPU is one in which each register is 32 bits wide and its CPU can manipulate 32 bits of data at a time. Nowadays, PCs have 32bit or 64bit registers.
 32-bit processor and 64-bit processor are the terms used to refer to the size of the registers. Other factors remaining the same, a 64-bit processor can process the data twice as fast as one with 32-bit processor.








Control Unit

  •  The control unit of a computer does not do any actual processing of data. It organizes the processing of data and instructions. It acts as a supervisor and, controls and coordinates the activity of the other units of computer.
 CU coordinates the input and output devices of a computer. It directs the computer to carry out stored program instructions by communicating with the ALU and the registers. CU uses the instructions in the Instruction Register (IR) to decide which circuit needs to be activated. It also instructs the ALU to perform the arithmetic or logic operations. When a program is run, the Program Counter (PC) register keeps track of the program instruction to be executed next.


  •  CU tells when to fetch the data and instructions, what to do, where to store the results, the sequencing of events during processing etc.
  • CU also holds the CPU’s Instruction Set, which is a list of all operations that the CPU can perform.
The function of a (CU) can be considered synonymous with that of a conductor of an orchestra.
The conductor in an orchestra does not perform any work by itself but manages the orchestra and
ensures that the members of orchestra work in proper coordination.


 MEMORY UNIT

The memory unit consists of cache memory and primary memory. Primary memory or main
memory
of the computer is used to store the data and instructions during execution of the
instructions. Random Access Memory (RAM) and Read Only Memory (ROM) are the primary
memory. In addition to the main memory, there is another kind of storage device known as the
secondary memory. Secondary memory is non-volatile and is used for permanent storage of data
and programs. A program or data that has to be executed is brought into the RAM from the
secondary memory.


 Cache Memory

  •  The data and instructions that are required during the processing of data are brought from the secondary storage devices and stored in the RAM. For processing, it is required that the data and instructions are accessed from the RAM and stored in the registers. The time taken to move the data between RAM and CPU registers is large. This affects the speed of processing of computer, and results in decreasing the performance of CPU.
  • Cache memory is a very high speed memory placed in between RAM and CPU. Cache memory increases the speed of processing.
  • Cache memory is a storage buffer that stores the data that is used more often, temporarily, and makes them available to CPU at a fast rate. During processing, CPU first checks cache for the required data. If data is not found in cache, then it looks in the RAM for data.
  •  To access the cache memory, CPU does not have to use the motherboard’s system bus for data transfer. (The data transfer speed slows to the motherboard’s capability, when data is passed through system bus. CPU can process data at a much faster rate by avoiding the system bus.)
Illustration of cache memeory

  •  Cache memory is built into the processor, and may also be located next to it on a separate chip between the CPU and RAM. Cache built into the CPU is faster than separate cache, running at the speed of the microprocessor itself. However, separate cache is roughly twice as fast as RAM.
  • The CPU has a built-in Level 1 (L1) cache and Level2 (L2) cache. In addition to the built-in L1 and L2 cache, some CPUs have a separate cache chip on the motherboard. This cache on the motherboard is called Level 3 (L3) cache. Nowadays, high-end processor comes with built-in L3 cache, like in Intel core i7. The L1, L2 and L3 cache store the most recently run instructions, the next ones and the possible ones, respectively. Typically, CPUs have cache size varying from 256KB (L1), 6 MB (L2), to 12MB (L3) cache.
  •  Cache memory is very expensive, so it is smaller in size. Generally, computers have cache memory of sizes 256 KB to 2 MB.


Primary Memory
  •  Primary memory is the main memory of computer. It is used to store data and instructions during the processing of data. Primary memory is semiconductor memory.
  • Primary memory is of two kindsRandom Access Memory (RAM) and Read Only Memory (ROM).
  •  RAM is volatile. It stores data when the computer is on. The information stored in RAM gets erased when the computer is turned off. RAM provides temporary storage for data and instructions.
  •  ROM is non-volatile memory, but is a read only memory. The storage in ROM is permanent in nature, and is used for storing standard processing programs that permanently reside in the computer. ROM comes programmed by the manufacturer.
  •  RAM stores data and instructions during the execution of instructions. The data and instructions that require processing are brought into the RAM from the storage devices like hard disk. CPU accesses the data and the instructions from RAM, as it can access it at a fast speed than the storage devices connected to the input and output unit .
  • The input data that is entered using the input unit is stored in RAM, to be made available during the processing of data. Similarly, the output data generated after processing is stored in RAM before being sent to the output device. Any intermediate results generated during the processing of program are stored in RAM.
 RAM provides a limited storage capacity, due to its high cost.

Interaction of CPU with memory  


 Secondary Memory

  • The secondary memory stores data and instructions permanently. The information can be stored in secondary memory for a long time (years), and is generally permanent in nature unless erased by the user. It is a non-volatile memory.
  •  It provides back-up storage for data and instructions. Hard disk drive, floppy drive and optical disk drives are some examples of storage devices.
  •  The data and instructions that are currently not being used by CPU, but may be required later for processing, are stored in secondary memory.
  •  Secondary memory has a high storage capacity than the primary memory.
  •  Secondary memory is also cheaper than the primary memory.
  • It takes longer time to access the data and instructions stored in secondary memory than in primary memory.
Magnetic tape drives, disk drives and optical disk drives are the different types of storage
devices.


 INSTRUCTION FORMAT

A computer program is a set of instructions that describe the steps to be performed for carrying
out a computational task. The program and the data, on which the program operates, are stored in
main memory, waiting to be processed by the processor. This is also called the
stored program
concept
.
An instruction is designed to perform a task and is an elementary operation that the processor can
accomplish. An instruction is divided into groups called fields. The common fields of an
instruction are
Operation (op) code and Operand code . The remainder of the
instruction fields differs from one computer type to other. The
operation code represents action
that the processor must execute. It tells the processor what basic operations to perform. The
operand code defines the parameters of the action and depends on the operation. It specifies the
locations of the data or the operand on which the operation is to be performed. It can be data or a
memory address.

The number of bits in an instruction varies according to the type of data (could be between 8 and
32 bits).
shows the instruction format for ADD command.


 INSTRUCTION SET

A processor has a set of instructions that it understands, called as instruction set. An instruction
set or an instruction set architecture is a part of the computer architecture. It relates to
programming, instructions, registers, addressing modes, memory architecture, etc. An
Instruction
Set
is the set of all the basic operations that a processor can accomplish. The instructions in the instruction set are the language that a processor understands. All programs have to communicate with the processor using these instructions. An instruction in the instruction set involves a series of logical operations (may be thousands) that are performed to complete each task. The instruction set is embedded in the processor (hardwired), which determines the machine language for the processor. All programs written in a high-level language are compiled and translated into machine code before execution, which is understood by the processor for which the program has been coded.
Two processors are different if they have different instruction sets. A program run on one
computer may not run on another computer having a different processor.
Two processors are
compatible if the same machine level program can run on both the processors. Therefore, thesystem software is developed within the processor’s instruction set.Microarchitecture is the processor design technique used for implementing the Instruction Set.
Computers having different microarchitecture can have a common Instruction Set. Pentium and
Athlon CPU chips implement the x86 instruction set, but have different internal designs.
2.6 INSTRUCTION CYCLEThe primary responsibility of a computer processor is to execute a sequential set of instructions
that constitute a program. CPU executes each instruction in a series of steps, called
instruction
cycle
.
  •  A instruction cycle involves four steps
o Fetching The processor fetches the instruction from the memory. The fetched
instruction is placed in the
Instruction Register. Program Counter holds the
address of next instruction to be fetched and is incremented after each fetch.
o Decoding The instruction that is fetched is broken down into parts or decoded.
The instruction is translated into commands so that they correspond to those in the
CPU’s instruction set. The instruction set architecture of the CPU defines the wayin which an instruction is decoded.o Executing The decoded instruction or the command is executed. CPU performs
the operation implied by the program instruction. For example, if it is an ADD
instruction, addition is performed.
o Storing CPU writes back the results of execution, to the computer’s memory.
Figure 2.8 Instruction cycleFigure 2.9 Steps in instruction cycle
  •  Instructions are of different categories. Some categories of instructions are
o Memory access or transfer of data between registers.o Arithmetic operations like addition and subtraction.o Logic operations such as AND, OR and NOT.o Control the sequence, conditional connections, etc.
A CPU performance is measured by the number of instructions it executes in a second, i.e., MIPS(million instructions per second), or BIPS (billion instructions per second)