Computer Hardware Software
Computer Hardware Software
The computer system essentially consists of three components: input devices, central processing unit
and output devices. In the computer terminology, a device can be referred as a unit of hardware, which
is capable of providing input to the computer or receiving output or both. The input devices are used to
provide data to the central processing unit (CPU) for processing. After processing, the input data are
converted into meaningful information and this output is presented to the user with the help of output
devices. When the term 'device' is used, it includes keyboard, mouse, display monitors, printers and
other hardware units.
The aim of this chapter is to familiarize you with various types of output and output devices along with
their advantages, disadvantages and applications.
Learning objectives.
At the end of this chapter, student will be able to
- Describe common input and output devices and their functioning
- Describe common primary and secondary storage devices and their functioning
- Classify primary and secondary storage devices in order of performance and capacity
In this topic
I. INPUT DEVICES ........................................................................................................................... 2
II. OUTPUT DEVICES ....................................................................................................................... 4
III. GENERALITIES ON COMPUTER MEMORY ........................................................................ 9
IV. PRIMARY STORAGE DEVICE ............................................................................................. 11
V. SECONDARY STORAGE DEVICES ......................................................................................... 14
EXERCISE ON HARDWARE............................................................................................................. 19
1|Page
I. INPUT DEVICES
An input device can be defined as an electromechanical device that allows the user to feed data into
the computer for analysis and storage, and to give commands to the computer. The computer accepts
input in two ways; manually and directly. In the case of manual data entry, the user enters the data into
the computer by hand, for example, by using the keyboard and the mouse. A user can also enter the data
directly by transferring information automatically from a source document (like from check using
MICR) into the computer.
Some of the commonly used input devices are keyboard, pointing devices like mouse and joystick,
speech recognition system, digital camera, scanners and so on.
I.1.1 Keyboard
A keyboard is the most common data entry device. The keyboard is designed like a regular typewriter
with a few additional keys. The data are entered into the computer by using various keys. There are
different types of keyboard layouts such as QWERTY, DVORAK and AZERTY, but the most common
layout is the QWERTY.
I.1.2 Keypad
This is a small keyboard used with hand held devices i.e. cell phones, calculators, notebooks, etc.
2
A trackpad (also referred to as touchpad) is a stationary pointing device that works by sensing the
movement of fingers across a small sensitive surface and translating them into the pointer movement
on the screen. It is generally used in laptops, but can also be connected to the PC through a cord.
NOTE: The device manufactured by Apple is referred to as trackpad while the device manufactured by
others is known as touchpad.
3
These scanners use magnetic technology to capture handwritten and magnetic strip data. Some
examples of optical scanners are:
a) Magnetic-Ink Character Recognition (MICR):
You must have seen special magnetic encoding using characters, printed on the bottom of a check. The
characters are printed using a special ink, which contains iron particles that can be magnetized. To
recognize these magnetic-ink characters, a magnetic-ink character reader (MICR) is used. It reads
the characters by examining their shapes in a matrix form and the information is then passed on to the
computer.
The banking industry prefers MICR to OCR as the MICR gives extra security against forgeries such as
colour copies of payroll checks or hand-altered characters on a check. If a document has been forged,
say a counterfeit check produced using a colour photocopying machine, the magnetic-ink line will either
not respond to the magnetic fields or will produce an incorrect code
when scanned using a device designed to recover the information in the
magnetic characters.
b) Digital camera:
Also known as a digicam, A digital camera stores images digitally rather
than recording them on a film. Once a picture has been taken, it can be transferred to a computer system
and then manipulated with an image editing software and printed.
c) webcam
Short form of web camera, is a portable video camera, which captures live video or images that
may be viewed in real time over the network or the Internet. It is just a small digital camera
that is either in-built in your computer (in most laptops) or can be connected through a USB
port.
I.4 Other input devices
Other input devices of computer include:
Touch screen: It is an electronic visual display that can detect the presence and
location of a touch within the display area
Interactive whiteboard (IWB): This is a large interactive display that connects to a computer
and projector. A projector projects the computer's desktop onto the board's surface where users
control the computer using a pen, finger, stylus, or other device. The board is typically mounted
to a wall or floor stand.
Speech Recognition System: Speech recognition is one of the most interactive systems to
communicate with the computer. The user can simply instruct the computer with the help of a
microphone (along with speech recognition software) what task to be performed. It is the
technology by which sounds, words or phrases spoken by the individuals are converted into
digital signals, and these signals are transformed into computer-generated texts or commands.
4
II.1 Types of Output
Output is the data that has been processed into useful information. It can be displayed or viewed on a
monitor, printed on a printer or listened through speakers or a headset. Generally, there are two basic
categories of output: Hard copy output and soft copy output
→ Hard Copy refers to the recorded information copied from a computer onto the paper or
some other durable surface such as microfilm. Hard copy output is permanent and a
relatively stable form of output.
→ Soft Copy is the electronic version of an output, which usually resides in the computer
memory and/or on the disk. Unlike hard copy, soft copy is not a permanent form of output
and is not tangible, that is, it cannot be touched.
II.2 Printers
A printer prints information and data from the computer onto a paper. The quality of a printer is
determined by its resolution. Resolution is used to describe the sharpness and clarity of an image. The
higher the resolution, the better the image. For printers, the resolution is measured in dots per inch
(dpi). The more dots per inch, the better will be the quality of image. Printers are divided into two basic
categories: impact printers and non-impact printers. Impact printers use some sort of physical contact
with the paper to make a mark onto it, while non-impact printers use techniques other than to transfer
ink onto it.
II.2.1 Impact Printers
An impact printer uses pins or hammers that press an inked ribbon against the paper to make a mark on
the paper. Some impact printers can print only one character at a time, while others can print an entire
line. The three most commonly used impact printers are dot matrix printers, daisy wheel printers and
drum printers.
Some characteristics of impact printers are as follows:
• In impact printers, there is physical contact with the paper to produce an image.
• They are relatively cheap. The primary recurring costs for these printers are the ink ribbons and
paper.
• Due to being robust and low cost, they are useful for bulk printing.
• They can withstand dusty environment, vibrations and extreme temperature.
• They are ideal for printing multiple copies (i.e. carbon copies) because they can easily print
through many layers of paper.
• Due to its striking activity, the impact printers are very noisy.
• Since they are mechanical in nature, they tend to be slow.
5
In this printer, the print head does not make any contact with the paper, and no inked ribbon is
required. Ink can be sprayed against the paper and then heat and pressure are used to fuse a fine black
powder into the shape of a character. The major technologies competing in the market of non-impact
printers are ink-jet and laser.
Some characteristics of non-impact printers are as follows:
• They are faster than impact printers because they have fewer moving parts.
• They are quieter than impact printers
• They possess the ability to change typefaces automatically.
• They produce high-quality graphics.
• They cannot print carbon copies.
a) Ink-jet Printers
An inkjet printer is a printer that places extremely small droplets of ink onto paper to create
an image. Ink-jet printers are costlier than dot matrix printers, but the quality is much better.
These printers can print any shape of character, which a user can specify as they produce
printed output as pattern of tiny dots. Ink-jet printers typically print with a resolution of
600 dpi or more. Due to the high resolution, these printers produce high quality graphics
and text printouts.
b) Laser Printers
A laser printer provides the highest quality text and images for personal computers today. It is a very
fast printer, which operates on the same principle as that of a photocopy machine. They are also known
as page printers because they process and store the entire page before they actually print
it. Today, the resolution of most printers is 600 dpi. They are quiet and fast, able to print
4–32 text-only pages per minute for individual microcomputers and up to 200 pages/min
for mainframes (more than 2000 lines/min). Laser printers are often faster than ink-jet
printers but are more expensive to buy and maintain than the other printers.
c) Hydra Printer
II.3 Plotters
A plotter is a pen-based output device that is attached to a computer for making vector graphics, that is,
images created by a series of many straight lines. It is used to draw high-resolution charts, graphs,
blueprints, maps, circuit diagrams and other line-based diagrams. It is similar to a
printer, but it draws lines using a pen. They are mainly used for computer aided
design (CAD) and computer aided manufacturing (CAM) applications such as
printing out plans for houses or car parts.
II.4 Monitor
The monitor is the most frequently used output device for producing soft copy
output. A computer monitor is a TV-like display attached to the computer on which the output can be
displayed and viewed. Monitors are available in various sizes like 14, 15, 17, 19 and 21 inches. The
larger the size of the monitor, the more expensive it is. The size of the display is described based on
two parameters: aspect ratio and screen size. Aspect ratio is the ratio of the width of the display screen
6
to the height, that is, the ratio of vertical points to the horizontal points necessary to produce equal-
length lines in both directions on the screen.
The screen clarity depends on three basic qualities, which are as follows:
• Resolution: It refers to the number of pixels in the horizontal and vertical directions on the
screen. A pixel (px) is the smallest portion of an image or display that a computer is capable of
printing or displaying. In medium-resolution graphics, pixels are large, whereas in high-
resolution graphics, pixels are small.
• Dot Pitch: It is the measurement of the diagonal distance between the two like-coloured (red,
green or blue) pixels on a display screen. It is measured in millimetres and common dot pitches
are 0.51, 0.31, 0.28, 0.27, 0.26 and 0.25 mm. Smaller the dot pitch, sharper will be the image
when displayed on the monitor. Generally, a dot pitch of less than 0.31 mm provides clear
images.
• Refresh Rate: It is the number of times per second the pixels are recharged so that their glow
remains bright. A refresh rate of 60 Hz means the image is redrawn 60 times a second. The
higher the refresh rate, the more solid the image looks on the screen, that is, it does not flicker.
II.5.1 Cathode Ray Tube Monitors
CRT is the electron beams within a monitor that move across your screen either interlaced
or non-interlaced hitting phosphor dots on the inside glass tube. Within the CRT are three
electron guns, red, green, and blue. Each of these guns streams a steady flow of electrons,
left to right, for each line of your monitor.
II.5.2 Liquid Crystal Display Monitors
LCD is a flat display technology used in laptops, cell phones, calculators and, flat
screen displays. The LCD is made of two sheets of a flexible polarizing material with
a layer of liquid crystal solution between the two. The LCD does not refresh like a
traditional CRT monitor, Instead, the display is created by sending various voltages
of electricity to cells of liquid crystal causing the liquid crystal to untwist at the rate
of electricity applied, generating 64 different shades per cell.
Comparison between LCD and CRT
• Size: An LCD is lightweight and compact, which saves desktop space as compared to a CRT.
• Resolution: An LCD is designed to work in a single resolution, while CRT is designed for many
resolutions.
• Pixel Density: Pixel density of LCD is generally not as tight as the dot pitch in CRT, but for
most applications, the density is acceptable.
• Brightness: The illuminated phosphor of a CRT is not nearly as bright as what the LCD can
produce with its florescent backlight.
• Power Consumption: An LCD consumes significantly less power than CRT and has a low
emission risk. Typically, the LCD consumes approximately half of the power of a typical CRT.
• Cost: Prices for LCD screens are quite high but they are coming down. They are still much more
expensive than a CRT.
• Viewing Angle: A CRT can be viewed at almost any angle, but an LCD is best viewed 'head
on'.
• Viewing Area: The frame around the glass screen of the monitor causes the viewable area of
the screen to be smaller than an LCD.
• Weight: A CRT monitor can weigh 40 pounds or more depending on the size of the monitor.
II.5.3 Other Types of Monitors
Although CRT and LCD displays are the most commonly used, other kinds of displays also exist. Some
of them are as follows:
• Plasma Display: A plasma display (also known as thin-panel) is constructed by filling a gas (neon or
xenon) between the two glass plates. One glass plate consists of vertical conductors and the other
consists of horizontal conductors. The advantage of plasma display is that it has the capability of
producing more than 16 million colors and is lighter and less bulky than CRT. However, it is heavier
than LCD display and requires more power.
• Thin-film Electroluminescent Display: This display is similar to the plasma display except the fact
that the space between the glass plates is filled with phosphorescent substance (usually zinc sulfide
7
doped with manganese) instead of gas. The main problem with thin-film electroluminescent displays is
that they require more power.
II.5. Projectors
projector is an output device, which is used to project information from a computer
onto a large screen, so that it can be simultaneously viewed by a large group of people.
Projection display is commonly used for classroom training or conference room or for
multimedia presentations with a large audience. Like monitors, projectors provide a
temporary, soft copy output.
II.8 Terminals
Computer terminal is a special unit that can perform as both input and output. A terminal is an I/O
device that uses a keyboard for input and a monitor for output. Hence, a terminal is also known as video
display terminal (VDT). The terminals can be categorized into the following types
• Dumb Terminal: It refers to a terminal that has no processing or programming capabilities. It
is designed to communicate exclusively with a host computer. Usually, it consists of a screen
and keyboard used to access a host computer.
• Smart Terminal: Smart terminal has built-in processing capability and memory, but does not
have its own storage capacity. In comparison to the dumb terminal, smart terminal can
communicate and retrieve the data and can perform a limited processing of its own, that is,
editing or verification of the data.
• Intelligent Terminal: An intelligent terminal has memory and in-built microprocessors, hence
also known as user-programmable terminal. This terminal can independently perform a certain
number of jobs without even interacting with the mainframe. Although they are intelligent
terminals, some workstations are designed without disk drives. Due to this, the restricted data
cannot be downloaded or copied.
8
III. GENERALITIES ON COMPUTER MEMORY
III.1 What is a computer memory?
Computer memory is any physical device capable of storing information temporarily or permanently.
III.2 Memory representation
For measuring computer memory, a standard unit is required. Although the smallest unit of data that a
computer can deal with is a bit, the computers generally do not deal with a single bit. Instead, they deal
with a group of eight bits, which is referred as 'byte'. Various units used to measure computer memory
are as follows:
• Bit: It is the smallest unit of data on a machine and a single bit can hold only one of two values:
0 or 1. Bit is represented by lower case b.
• A nibble is a collection of 4 bits.
• Byte: A unit of eight bits is known as a byte. Hence, a byte is able to contain any binary number
between 00000000 and 11111111. It is represented by upper case B.
• Kilobyte: In a decimal system, kilo stands for 1000, but in a binary system, kilo refers to 1024.
Therefore, a kilobyte is equal to 1024 bytes. It is usually represented as KB.
• Megabyte: It comprises 1024 kilobytes or 10,48,576 bytes. However, since this number is hard
to remember, a megabyte can be thought of as million bytes. Megabyte is the standard unit of
measurement of RAM and is represented as MB.
• Gigabyte: It consists of 1024 megabytes (10,73,741,824 bytes). It is the standard unit of
measurement for hard disks and is often represented as GB.
• Terabyte: It refers to 1024 gigabytes and is often represented as TB. Terabyte memory is
usually associated with only super computers
9
NOTE: In modern computers, groupings of bytes (usually 2 or 4) called computer words can represent
larger 'chunks' of information.
Exercise using notebook
(calculations on storage units)
III.3 Memory characteristics
Computer memories can be differentiated by evaluating certain core characteristics. These core
characteristics are volatility, mutability, accessibility, and addressability.
III.3.1. Volatility
→ Non-volatile memory will retain the stored information even if it is not constantly supplied
with electric power. It is suitable for long-term storage of information.
→ Volatile memory requires constant power to maintain the stored information. The fastest
memory technologies of today are volatile ones.
III.3.2. Mutability
→ Read/write storage or mutable storage allows information to be overwritten at any time.
→ Read only storage retains the information stored at the time of manufacture
→ Write once storage (Write Once Read Many) allows the information to be written only once
at some point after manufacture. These are called immutable storage. Examples include CD-
ROM and CD-R
→ Slow write, fast read storage : Read/write storage, which allows information to be overwritten
multiple times, but with the write operation being much slower than the read operation.
Examples include CD-RW and flash memory.
III.3.3. Accessibility
Access Mode: Access mode refers to the way the data are accessed from the memory.
→ Random access: Any location in storage can be accessed at any moment in approximately the
same amount of time. Such characteristic is well suited for primary and secondary storage.
→ Sequential access: The accessing of pieces of information will be in a serial order, one after
the other; therefore the time to access a particular piece of information depends upon which
piece of information was last accessed. Such characteristic is typical of off-line storage.
→ Direct access: In some cases, the data are accessed neither in a random nor in a sequential
fashion, but using a combination of both the modes.This type of semi-random mode exists in
the magnetic disk.
III.3.5. Addressability
→ Location-addressable: Each individually accessible unit of information in storage is selected
with its numerical memory address.
→ File addressable: Information is divided into files of variable length, and a particular file is
selected with human-readable directory and file names. In modern computers, secondary,
tertiary and off-line storage use file systems.
→ Content-addressable: Each individually accessible unit of information is selected based on
the basis of (part of) the contents stored there. Content-addressable storage can be implemented
using software (computer program) or hardware (computer device), with hardware being faster
but more expensive option. Hardware content addressable memory is often used in a computer's
CPU cache.
Other characteristics of computer memory involve
• Access time: Access time is the time required between the request made for read/write
operation and the time it takes for the completion of the request. Generally, the access time is
measured for read operations only. Disk access time depends on the following three
parameters:
→ Seek Time: It is the time required to position the read/write head over the desired
track, as soon as a read/write command is received by the disk unit
→ Latency: It is the time required to spin the desired sector under the read/write head,
once the read/write head is positioned on the desired track
→ Transfer Rate: the transfer rate is the number of characters or words that a device can
transfer per second after it has been positioned at the beginning of the record. As the
transfer rate is negligible as compared to seek time and latency,
Average access time = Average seek time + Average latency
10
• Storage capacity: Storage capacity refers to the size of the memory, that is, the amount of data
that can be stored in the memory.
• Cost: The cost of memory is valued by estimating the cost per bit of storage, that is, the cost of
a storage unit for a given storage capacity.
III.4 Types of Memory
These are the fundamental types of memory in a computer system:
a) Primary storage device: The primary memory allows the computer to store data for
immediate manipulation and to keep track of what is currently being processed. There are two
main types of primary storage:
- Main memory (RAM and ROM) and
- Internal processor memories (Cache memory and registers).
b) Secondary Memory: This is also known as auxiliary memory. It differs from primary storage
in that it is not directly accessible by the CPU.
c) Tertiary Storage: Tertiary storage is very large storage which is separate from the computer.
The most obvious example of tertiary storage is an automated storage facility where
mechanical arms retrieve media and load it into large computers. Other tertiary storage may
simply be off-grounds locations which allow vital data in various mediums to be safe-guarded
for security purposes- fire, theft, etc.
d) Off-line Storage: Offline storage is storage media which can be inserted into the computer
and used but which can then be removed from the computer and stored elsewhere. Floppy
drives, CD drives, and DVD drives might also alternately be considered secondary storage
because their drives are usually installed in the computer but the key here is the media the data
is stored on.
III.5 Storage technologies
Most commonly used data storage technologies are semiconductor, magnetic, and optical, while paper
still sees some limited usage. Some other fundamental storage technologies have also been used in the
past or are proposed for development.
Magnetic storage media: Magnetic storage uses different patterns of magnetization on a
magnetically coated surface to store information. In modern computers, magnetic storage will
take these forms: Magnetic disk (Floppy disk, Hard disk drive) and Magnetic tape data storage.
Optical storage media: The typical optical disc, stores information in deformities on the surface
of a circular disc and reads this information by illuminating the surface with a laser diode and
observing the reflection.
Semiconductor storage media: Semiconductor memory uses semiconductor-based integrated
circuits to store information. A semiconductor memory chip may contain millions of tiny
transistors or capacitors. Both volatile and non-volatile forms of semiconductor memory exist.
Magneto-optical disc storage media: Magneto-
optical disc storage is optical disc storage where the
magnetic state on a ferromagnetic surface stores
information. The information is read optically and
written by combining magnetic and optical methods.
III.6 Memory hierachy
A "memory hierarchy" in computer storage distinguishes
each level in the "hierarchy" by response time. Since
response time, complexity, and capacity are related, the
levels may also be distinguished by the controlling
technology. The figure below illustrates the memory hierarchy.
11
II.1 Main memory
Broadly primary memory can be of two types RAM (Random Access Memory) and ROM (Read only
memory). Every computer comes with a small amount of ROM, which contains the boot firmware
called BIOS (Basic Input Output System).
II.1.1 Random Access Memory (RAM)
1. What is RAM?
RAM is the place where the computer temporarily stores its operating system, application programs
and current data so that the computer's processor can reach them quickly and easily. RAM allows the
computer to store data for immediate manipulation and to keep track of what is currently being
processed. RAM is much faster to read from and write to than the other kinds of storage in a computer
(like hard disk or floppy disk). The major limitation of this type of memory is that it is volatile. It means
that when the power is turned off, the contents of the primary memory are lost forever.
NOTE: Random access memory is also called read/write memory because, unlike read-only memory
(ROM) that does not allow any write operation, random access memory allows CPU to read as well as
write data and instructions into it.
2. Types of RAM
There are two types of random access memory, which are as follows:
a) Dynamic RAM (DRAM):
This RAM must be continually refreshed (pulse of current through all the memory cells) to maintain
the data. This is done by placing the memory on a refresh circuit that rewrites the data several hundred
times per second. DRAM is used for most system memory because it is cheap and small. Some of the
most popular DRAM technologies are briefed as follows:
b) Static RAM (SRAM):
This RAM retains the data as long as power is provided to the memory chip. It need not be 'refreshed'
periodically. It is very fast but much more expensive than DRAM. SRAM is often used as cache
memory due to its high speed.
The word length is an important architectural factor, which typically relates to the CPU and is usually
the size of its registers in bits. The word lengths typically range from 8, 16, 32 bits to 64 bits and
accordingly the computers are termed as 8-bit, 16-bit, 32-bit and 64-bit computers. The higher the word
length, the more powerful a computer is.
The total number of memory cells that can be uniquely addressed by CPU depends on the total number
of address lines in an address bus. If there are n lines in the address bus then there are 2 n addressable
locations in the memory.
4. Fixed and Variable Word Length Memory
The main memory of a computer can be designed in two ways: fixed word length and variable word
length.
→ In fixed word length memory system, each memory location stores a fixed number of
characters, which are equal to the word length of the computer. The computers that employ
fixed word length memory approach are called word-addressable computers. In such
computers, the storage space is always allocated in multiples of word length.
→ In variable word length memory system, the memory is designed in such a way that each
memory location can store only one character. Hence, the word 'HI' will occupy only 2 bytes,
'MIKE' will occupy 4 bytes, and 'COMPUTER' will occupy 8 bytes of memory. The computers
that employ variable word length memory approach are called character-addressable
computers
II.1.2 Read Only Memory
1. What is ROM?
Short for Read-Only Memory, ROM is a type of "built-in" memory that is capable of holding data and
having that data read from the chip, but not written to. Unlike Random Access Memory (RAM), ROM
12
is non-volatile which means it keeps its contents regardless if it has power or not.
NB: The term ROM is used to describe any type of memory or media that is read only. For example, a
CD-ROM
2. Types of ROM
Memories in the ROM family are distinguished by the methods used to write data on them and the
number of times they can be rewritten. There are different types of ROMs, which are as follows:
• Masked ROM: The very first ROMs, known as masked ROMs, were hard-wired devices that
contained a preprogrammed set of data or instructions.
• Programmable ROM (PROM): This form of ROM is initially blank. The user or manufacturer
can write data/program on it by using special devices. However, once the program or data is
written in PROM chip, it cannot be changed.
• Erasable Programmable ROM (EPROM): An EPROM is programmed in exactly the same
manner as a PROM. However, unlike PROMs, an EPROM can be erased and reprogrammed
repeatedly. It can be erased by simply exposing it to a strong source of ultraviolet (UV) light for
a certain amount of time.
• Electrically Erasable Programmable ROM (EEPROM): This type of ROM can be erased by
an electrical charge and then written to by using slightly higher-than-normal voltage. EEPROM
can be erased one byte at a time, rather than erasing the entire chip with UV light. Hence, the
process of re-programming is flexible, but slow.
• Flash ROM: flash ROM, also called flash BIOS or flash memory, is a type of ROM that can be
erased and re-programmed in blocks.
13
The number of registers that a CPU has and the size of each (number of bits) help determine the
power and speed of a CPU. For example a 32-bit CPU is one in which each register is 32 bits wide.
Therefore, each CPU instruction can manipulate 32 bits of data.
Some characteristics of CPU registers are:
Very fast (access times of a few nanoseconds)
Low capacity (usually less than 200 bytes)
Very limited expansion capabilities (a change in CPU architecture would be required)
Expensive (more than one dollar/byte)
Types of register
Types of Registers are as Followings
→ Memory Address Register(MAR) : This register holds the memory addresses of data and
instructions. This register is used to access data and instructions from memory during the
execution phase of an instruction.
→ Program Counter (PC): It holds the address of the memory location of the next instruction
when the current instruction is executed by the microprocessor.
→ Accumulator Register: This Register is used for storing the Results those are produced by the
System. When the CPU will generate Some Results after the Processing then all the Results
will be Stored into the AC Register.
→ Memory Data Register (MDR) : MDR is the register of a computer's control unit that contains
the data to be stored in the computer storage (e.g. RAM), or the data after a fetch from the
computer storage.
→ Index Register (IR) : Also known as base register. An index register in a computer's CPU is a
processor register used for modifying operand addresses during the run of a program.
→ Memory Buffer Register (MBR): This register holds the contents of data or instruction read
from, or written in memory. It means that this register is used to store data/instruction coming
from the memory or going to the memory.
→ Data Register: A register used in microcomputers to temporarily store data being transmitted
to or from a peripheral device.
14
III.1 Magnetic Tape
Magnetic tape is a recording medium consisting of a thin tape with a coating of a fine magnetic material,
used for recording analogue or digital data. Data is stored in frames across the width of the tape. The
frames are grouped into blocks or records which are separated from other blocks by gaps. Magnetic
tape is a serial access medium, similar to an audio cassette, and so data (like the songs on a music tape)
cannot be quickly located. However large amounts of information can be stored within magnetic tape.
This characteristic has prompted its use in the regular backing up of hard disks.
Advantages and disadvantage of Magnetic Tapes
The following are advantages and disadvantages of magnetic tape
Advantages of magnetic tape Disadvantages of magnetic tape
Probably the cheapest form of storage
Serial access so can be quite slow to access data
per megabyte of storage
Can store large amounts of data - up to 1 Need a special piece of equipment to record and read the
Terabyte per tape cartridge data on the tape
Can be set up to do the back up The data may be corrupted if the tape is placed near a
overnight or over the weekend strong magnetic field e.g. a large speaker or magnet
They are portable because they are
the data on such devices are difficult to recover even if a
compact in size, lightweight and
minor bit error occurs.
removable.
They are not flexible as compared to other media types
when file updating requires record insertion or deletion.
15
b) OS-level disk formatting
- Creates the File Allocation Table (FAT) that is a table with the sector and track locations
of data
- Leaves sufficient space for FAT to grow
- Scans and marks bad sectors
III.2.4 Master Boot Record (MBR)
The Master Boot Record, created when you create the first partition on the hard disk, is probably the
most important data structure on the disk. It is the first sector on every disk. The location is always
track (cylinder) 0, side (head) 0, and sector 1.The Master Boot Record contains the Partition Table
for the disk and a small amount of executable code. The Master Boot Record then finds the system
partition's starting location on the disk, and loads a copy of its Partition Boot Sector into memory. The
Master Boot Record then transfers execution to executable code in the Partition Boot Sector.
III.2.5 Storage Capacity of a Magnetic Disk
Several parameters must be considered while finding out the capacity of a magnetic disk. These
parameters include number of recording surfaces, number of tracks per surface, number of sectors per
track and number of bytes per sector. Therefore, one can define storage capacity of a disk as a
multiple of all the above parameters.
16
→ 3½-inch diskette, whose diameter is 3½-inch.It is encased in a square, hard plastic
jacket
Size N° of N° of N° of N° of Capacity Approximate
(Diameter surfaces tracks sectors/tracks bytes/sector in bytes capacity
in inches)
5¼ 2 40 9 512 368640 360 KB
3½ 2 80 36 512 2949120 2.88 MB
3½ 2 80 18 512 1474560 1.44 MB
2) Hard disk
A hard disk drive (HDD) is a data storage device used for storing and retrieving digital information
using rapidly rotating disks (platters) coated with magnetic material. An HDD retains its data even when
powered off. Data is read in a random-access manner, meaning individual blocks of data can be stored
or retrieved in any order rather than sequentially. An HDD consists of one or more rigid ("hard") rapidly
rotating disks (platters) with magnetic heads arranged on a moving actuator arm to read and write data
to the surfaces. Depending on how they are packaged, hard disks are of three types: Zip/Bernoulli disks,
Disk packs, Winchester disks
3) Zip disk
A Zip drive is a small, portable disk drive used primarily for backing up and archiving personal
computer files. Zip drives and disks come in two sizes. The 100 megabyte size actually holds
100,431,872 bytes of data or the equivalent of 70 floppy diskettes. There is also a 250 megabyte drive
and disk.
a) Compact Disk
Compact disk is the most popular and the least expensive type of optical disk. It was originally intended
only for storing music (in the form of digital audio) and can record about 80 minutes of uninterrupted
playing time. A CD is capable of being used as a data storage device along with storing of digital audio.
Compact disks are available in various formats: CD-ROM (compact disk-read-only memory), CD-R
(compact disk-recordable) and CD-RW (compact disk-rewritable) disks.
- A CD-ROM disk comes with pre-recorded data by the manufactures and can be read but
cannot be altered.
17
- CD-R is a type of WORM (write once-read many) disk that allows you to record your own
data. Once written, the data on the CD-R can be read but cannot be altered.
- A CD-RW disk is rewritable version of CD-R, which means, it allows writing, erasing and
rewriting of the data several times.
The data recorded on all CD formats can be read using the CD-ROM drive; however, to write data on
CD-R and CD-RW disks, one needs a special peripheral device known as CD-writer (or CD-burner)
b) Digital Versatile Disk
DVD, initially called digital video disk, is a high-capacity data storage medium.
NOTE: Like CDs, DVDs are also available in different formats: DVD-ROM, DVD-R and DVD-RW.
c) Blu-ray Disk
A Blu-ray Disc is a high density optical disc storage medium, which is used for the
storage of all high-definition digital formats like audio, video, and play-station
games and so on. They have the same physical appearance as a DVD. The name
“BLU-RAY” is actually a combination of the colour “blue” and “ray”. Here blue
refers to the blue colour of the laser that is used for its reading and ray refers to the
optical ray.
Like CDs and DVDs, Blu-ray disks are also available in different formats:
• BD-ROM: It comes with pre-recorded content that can only be read.
• BD-R: It is a WORM type of disk on which you can record data only once.
• BD-RW: It is similar to BD-R disk, but the difference is that it is rewritable. This means that
the data can be erased and recorded a number of times on the same disk.
• BD-RE: It is also a rewritable disk, but is used only for high-definition audio/video and
television recording
Blu-Ray Disc (BD) vs DVD
• Both of them have the same physical appearance. [Thickness = 1.2 mm]
• The single layer Blu-ray disc can store up to 27 GB data. A singe layer DVD can hold only 4.7
GB of data.
• A DVD needs two substrates and they should be bonded. But a Blu-ray disc requires only one
substrate.
• The production cost of Blu-ray is lesser than that of a DVD because there is no need for bonding
of substrates..
• The Blu-Ray disc uses violet-blu laser with improved lens specifications, while a DVD uses red
laser.
18
III.6 Universal Serial Bus
Universal Serial Bus (USB) (developed by Intel) is a set of connectivity specification that establishes
communication between personal computers and devices such as mouse, keyboard, pen drive and
external hard disk drives.
a) Pen Drive
The flash drive is a high storage (ranging from 1 to 512 GB) capacity device and is
physically small enough to fit into a pocket. In addition, it is fast, robust and reliable,
and requires very less power to operate, which it gets through USB port and hence no
battery is required.
b) External Hard Disk Drive
External hard disk drive is a type of hard drive that resides in its own
enclosure (called hard drive cage) outside the computer case and is
connected to the system through interfaces like USB.
The internal structure and functioning of external hard disk drive is similar
to the internal hard disk drive. Hence, external hard disk drive is a reliable and high-capacity storage
media. In addition, it is portable and provides plug and play feature.
19
1. The diagram bellow shows coded data that could be input into a computer
76143072497
(a) What is the name of the above method of input
(b) Where would the above method of 3 input be applied?
(c) For the application you have given in the above question, state two items of information this
type of input may represent.
2- with reasons, briefly describe the most appropriate type of printer or output device for the output
of:
(a) customer invoices on multi-part stationery
(b) letters to customers
(c) detailed engineering designs
3- What is a terminal? Name two types of terminal with short description of each
4- State what is meant by each of the following and give an example of where each is used.
(a) Magnetic Ink Character Recognition (MICR)
(b) Optical Mark Reader (OMR)
5- Distinguish LCD monitor and CRT monitor
Computer hardware is only as effective as the instructions we give it, and those instructions are
contained in software. Software not only directs the computer to manage its internal resources,
but also enables the user to tailor a computer system to provide specific business value. This
chapter aims to:
- Define software and state the main difference between hardware and software
- give the main differences between application software and system software
- Classify the different type of application software by categories with examples in each
category
Table of Contents
I. INTRODUCTION TO SOFTWARE............................................................................................ 21
I.1 Definition of software .................................................................................................................. 21
I.2 Relation between hardware and software .................................................................................... 21
I.3 Ways of acquiring computer software ......................................................................................... 21
II. CLASSIFICATION OF SOFTWARE.......................................................................................... 23
II.1 Classification of software based on task .................................................................................... 23
II.2 Classification of software based on source ................................................................................ 28
II.3 Classification of software based on licence................................................................................ 28
II.4 Other type of software ................................................................................................................ 29
EXERCISES ON SOFTWARE ............................................................................................................ 30
20
VI. INTRODUCTION TO SOFTWARE
Correctness: It means the required functionality and correct results. Customer satisfaction
depends on the degree to which customer requirements and expectations have been met. It
Efficiency: It means the efficient use of resources. Software is said to be efficient if it uses
all its resources ( memory, storage, processor) inefficient manner. The software design and
21
architecture should be such that it gives you a response in the least processing time, using
Integrity: Integrity is related to extent of access to the software by unauthorized users that
can be controlled.
flexibility: The software should be developed so that if the user demands any changes in the
system at the coding or testing phase. i.e. in the middle of the software development life
cycle, then it should be easy to insert these challenges in the existing modules.
Usability: It means that the software must be user-friendly. The software should have hood
documentation and user manual which may include the installation and the process of
using the software. This makes it easy for the new to learn and operate just says studying
the manual.
Testability: It should need less effort to test the program so that it performs its intended
function. As the complexity of the program increase, the efforts to test the software also
increase.
Portability: It means the software should have the ability to transfer the software from one
environment to another.
Reusability: It gives you the concepts of write once and uses many times. For example,
writing functions or subprocedures to receive variable parameters. The calling code passes
the value to the parameters and the called procedure processes them as needed.
Interoperability: The software development should be so that it can interact with other
products. For example, the word processor can interpolate charts from Excel or data from
databases. It deals with the interface between software products over a communication
network.
22
Cost effective: The development of the software within cost and budget depends on
Maintainability: For all the changes desired by the customer or the user, the developer has
to respond fast. And this is possible only if the software design and its architecture are so
chosen that changes can be carried out tin the shortest time without affecting the overall
integrity of the software. The change could be to correct the mistake, expand its
scope.
23
An operating system executes many functions to operate computer system efficiently. Among them,
four essential functions are the followings.
Resource Management: An operating system manages a collection of computer hardware
resources by using a variety of programs. It manages CPU, primary memory, virtual memory,
secondary storage devices, input/output peripherals, and other devices.
Task Management: The function of the operating system that controls the running of many
tasks. It manages one program or many programs within a computer system simultaneously.
That is, this function of operating system manages the completion of users' tasks.
File management: This is a function that manages data files. An operating system contains
file management programs that provide the ability to create, delete, enter, change, ask, and
access of files of data. The operating system keeps track of where files are located on the hard
drive through the type of file system. The type two main types of file system most used in
windows OS are File Allocation table (FAT) or New Technology File system (NTFS).
User Interface: It is a function of an operating system that allows users to interact with a
computer. The two main types of user interfaces are: command line and a graphical user
interface (GUI). With a command line interface, the user interacts with the operating system
by typing commands to perform specific tasks. An example of a command line interface is
DOS (disk operating system).
Examples of popular modern operating systems include Android, BSD, iOS, Linux (ubuntu,
Knoppix, Dreamlinux, …) OS X, QNX, Microsoft Windows(Windows 95, 2000, Vista, 7, 8, …),
Windows Phone, and IBM z/OS. All these, except Windows, Windows Phone and z/OS, share roots
in UNIX.
2) Utility program
This is system software designed to help analyse, configure, optimise or maintain a computer. A
single piece will be called a utility or tool. Some Well-known utility software include:
Antivirus programs: They are used to detect and eliminate computer viruses and related
malicious software. Some examples are: avast, AVG, Avira, BitDefender, Norton
Backup programs: They help to make copies of all information valuable to a computer or
information system and store it safe. The information can be restored in the event of disk
failure or other accidents that will lead to data loss.
Data Recovery: As the name implies, data recovery programs are used to recover data. Since
disk drives or other hardware may fail, these utilities are essential to recover data in such a
scenario.
Data Compression programs: They make the data more compact, reducing the space
occupied by the data.
Disk management program : These are program involving formatting and arranging disk
files in an orderly manner.
Memory management software : It handles locations in RAM where data put their current
data. It can move certain memory-resident items out of the way so as to increase the memory
space.
The Server: In the context of client-Server architecture, a server is a computer program
running to serve the requests of other programs – “the clients”. The clients may run on the
same systems or through networks.
3) Programming software
24
It is the type of software that is used for creating other software. Another name for programming
software is Integrated Development Environment (IDE). An IDE normally consist of a source code
editor, a translator (compiler or interpreter) and a debugger.
- Editor: It is a programming tool that is used for creating and modifying application programs.
It helps the computer user to enter, search, delete, replace, copy and insert text or sections of
a text in a desired position.
- Compiler: It is used to convert a complete program written in a high-level language (such as
Pascal and C) into a program in machine language.
- Interpreter: A program which translates the program statements into machine language one
line at a time as the program is
running.
- Assembler: A programming tool
that convert a program in assembly
language into program in machine
language.
- Debugger: It is a program that is
used for locating and correcting
programming errors.
- Linker: A linker or link Editor is a
program that takes one or more
objects generated by the compiler
and combines them to a single
executable program..
- Loader: Loader is a kind of system
software, which is responsible for
loading and relocation of the
executable program in the main
memory. The functions of a loader
include assigning load time space
for storage, that is, storage allocation
and assisting a program to execute
appropriately.
4) Device driver
Device drivers are computer programs that allow higher level computer programs to communicate
and interact with a hardware device. All hardware devices have the devices drivers that communicate
with them through the computer bus to which the hardware is connected. Drivers are hardware
dependent and operating system specific. Some specific categories of device drivers are
Logical Device Drivers (LDD) which are written by the Operating System vendors
Physical Device Drivers (PDD) which are written and implemented by the hardware vendor. To
solve device driver crises, Microsoft has created the Windows Drivers Foundation (WDF) which
collects and keeps all device drivers as a database.
II.1.2 Application software
Although system software has the vital job of controlling and managing the computer, it is the
application software that lets you carry out the tasks for which the system was purchased. It enables
the end users to accomplish certain specific tasks. Business software, databases and educational
25
software are some forms of application software. Different word processors, which are dedicated to
specialized tasks to be performed by the user, are other examples of application software.
a) General purpose software
A general purpose application, sometimes known as ‘off-the-shelf’ is the sort of software that you
use at home and school. Examples include word processors, spreadsheets, databases, desktop
publishing packages, graphics packages etc.
This type of software tries to be a ‘jack-of-all-trades’. It provides many features that the majority of
users will want e.g. formatting text, creating charts, organising tables. But it does try to be’ all things
to all people’ and so there will be a vast number of features that you may never use e.g. statistical
functions, mail merge. This makes the storage size of these applications fairly large.
There are several good reasons for using general purpose software:
It is relatively cheap
It is easily available from most computer shops
It will have been thoroughly tested so there won’t be any serious problems or bugs
There will be lots of user support i.e. books, user guides, online help and discussion forums
on the Internet
26
Function-specific software are highly specialized software that are designed to handle specific tasks.
They're more limited in what they can do, but they usually perform much better than a general purpose
program in a specific task.
For example, TurboTax (a tax preparation package) is a special purpose application. Sure, it adds and
subtracts numbers like a spreadsheet, but you can't use it to plan your monthly budget. It does only
one thing - prepare tax returns. Other examples of special purpose application software are web
browsers, calculators, media players, calendar programs etc. Again, make sure that you don't use
brand names!
Communications software: Used to send messages and emails Example software: MS
Outlook Express. MS Messenger.
Desktop publishing programs: Used to combine and control graphics and text in a single
document. Example software: Adobe PageMaker. MS Publisher.
Web browser: Computer program that enables internet users to access, navigate, and
search World Wide Web sites. It is also called browser. Ex: Mozilla Firefox, Internet
explorer, Opera, Google chrome
Enterprise Software: It deals with the needs of organization processes and data flow.
Customer relationship management or the financial processes in an organization are carried
out with the help of enterprise software. Ex: Sage Saari
Multimedia Software: They allow users to create and play audio and video files. They are
capable of playing media files. Audio converters, audio players, burners, video encoders
and decoders are some forms of multimedia software. Examples of this type of software
include Real Player and Windows Media Player.
c) Bespoke software
Although most organisations use general purpose software, some organisations will find that it just
doesn’t do exactly what they want or it doesn’t work with their current systems. In this case, they
might decide to have the software system they need designed and developed specifically for
them. This is called ‘tailor-made’ or ‘bespoke’ software. Bespoke application software is tailor made
for a specific user and purpose. For example a factory may require software to run a robot to make
cars; however, it is the only factory making that car in the world, so the software required would have
to be specially built for the task.
the company will get the exact software/system that they need
the software will work exactly how they want it to work
the software will only have the features that they specifically need in their business.
it takes a long time to develop such a system, between a few months to years
it costs a great deal of money to develop such a system.
the company may need to employ a team of people such as business analysts, programmers,
testers etc
there will be little in the way of user support and online help
27
Other examples might include software for the military, missile/UAV operations, software for
hospitals and medical equipment, software being written inside banks and other financial institutions.
28
This may be copyrighted software, regularly in trial version, but generally the developer allows users
to make copies without an initial charge. However, if the user intends to use it beyond a brief tryout,
the developer requests that the program be paid for. A marketing method for software, whereby a trial
version is distributed in advance and without payment. A user tries out the program, and thus
shareware has also been known as 'try before you buy', demoware, trialware and by many other
names.
II.3.4 Crippleware
The shareware version of a program whose most advanced and most desirable features have been
disabled with the intention of increasing users apetite for the better version. If the fee is paid, a code
is acquired, which uncripple the program.
II.3.5 Nagware:
Nagware (also known as annoyware) is a type of shareware, that reminds —or nags— the user to
register it by paying a fee. It usually does this by popping up a message when the user starts the
program or, worse, intermittently while the user is using the application. These messages can appear
as windows obscuring part of the screen or message boxes that can quickly be closed. Some nagware
keeps the message up for a certain time period, forcing the user to wait to continue to use the program
II.3.6 Adware:
Advertising-supported software is any software package which automatically plays, displays, or
downloads advertising material to a computer after the software is installed on it or while the
application is being used.
II.3.7 Liteware
This is the free version of a program, that does not contain those features that are attractive to frequent
or heavy user.
II.3.8 Vapoware
Vaporware (or vapourware) is software or hardware which is announced by a developer well in
advance of release, but which then fails to emerge, either with or without a protracted development
cycle.
30
Application Software Example Applications
1. Word processors - Internet Explorer - MS Outlook Express
2. Spreadsheets - Real Player - Windows Media Player
3. Databases - Adobe PageMaker - Lotus 123
4. Desktop publishing programs - Firefox - MS PowerPoint
5. Presentation applications - Word Perfect - MS Messenger
6. Web design applications - MySQL - MS Word
7. Graphics programs - CorelDraw - MS FrontPage
8. Multimedia display programs - MS Publisher - DreamWeaver
9. Web browsing applications - MS Excel - MS Access
10. Communications software - Macromedia Director - Paint Shop Pro
Descriptions
Used to combine and control graphics and text in a single document
Used to perform calculations on rows and columns of data
Allow you to create pictures and edit photographs
Used to send messages and emails
Enable you to write, edit and print letters, articles and reports.
Used to design and edit pages of information for the internet
Allow you to view videos and animations with sound
Use to organise and search through collections of data
Used to view websites on the internet
Allow you to present information to an audience
1. Describe how bespoke software is different from the normal software packages
purchased in shops.
2. Give a short description (or definition) of the following words or expressions (no more
than 2 lines per word): Loader, Crippleware, Open source software
31