CE 124 Computer Fundamentals and Programming Module 1 and 2 (1)
CE 124 Computer Fundamentals and Programming Module 1 and 2 (1)
➢
Learn the concept of a system in general and the computer system in specific.
➢
Understand how the computer evolve dramatically within a very short span,
from very huge machines of past to very compact of designs of the present
with tremendous advances in technology
➢
Understand the general classification of a computer.
➢
Study computer applications.
➢
Understand the typical characteristics of computers namely speed, accuracy,
efficiency, storage, capacity, versatility.
➢
Identify the limitations of the computer.
➢
Discuss the differences between humans and computers.
➢
Understand the computer component.
4. Learning Content
It contains readings, selection and discussion questions, and sets of activities
that students can work on individually or by a group.
The terms hardware and software are almost always used in connection with the
computer.
Fig. 1.1 Functions of the Operating System Fig. 1.2 Different Types of Operating Ststem
2. Translators
Computers can understand instructions only when they are written in their
language – the machine language. Therefore, a program written in any other language
should be translated into machine language. The software that translates the instructions
of different. Languages are known as translators.
There are two types of translators.
➢
Compilers
➢
Interpreters
2. An interpreter takes more time for the execution of the program compared to
compilers as it translates one statement at a time.
3. Utility Programs
These are pre-written programs supplied by the manufacturer for maintaining the
day-to-day activities of a computer system. Utility Software is designed to help you
monitor and configure settings for your computer system equipment. Example: COPY,
SORT, MAILING, virus scanning software, etc.
The computers of the first generation were very bulky and emitted a large amount
of heat which required air conditioning. They were large and cumbersome to handle. They
had to be manually assembled and had limited commercial use. The concept of operating
systems was not known at that time. Each computer had a different binary-coded program
called a machine language that told it how to operate.
The Abacus, which emerged about 5000 years ago in Asia Minor and is still in use
today, allows users to make computations using a system of sliding beads arranged on
a rack. Early merchants used Abacus to keep trading transactions.
Fig.2.7 ENIAC
EDVAC Electronic Discrete Variable Automatic Computer
In the mid-1940’s Dr. John von Neumann designed the Electronic Discrete
Variable Automatic Computer with a memory to store both program and data. This was
the first machine that used the stored program concept. It had five distinct units -
arithmetic, central control, memory, input, and output. The key element was the central
control. All the functions of the computer were co-ordinated through this single source,
the central control. The programming of the computers was done in machine language
The Fourth Generation realized Large Scale Integration (LSI) which could fit hundreds
of components on one chip and Very Large-Scale Integration (VLSI) which squeezed
thousands of components on one chip. The Intel 4004 chip, located all the components of a
computer (central processing unit, memory, input and output controls) on a single chip and
microcomputers were introduced. Higher-capacity storage media like magnetic disks were
developed. Fourth-generation languages emerged and application
software’s started becoming popular. Computer production became inexpensive and the
era of Personal Computers (PCs) commenced. In 1981, IBM
introduced its personal computer for use in an office, home, and schools. In direct
competition, the Macintosh was introduced by Apple in 1984. Shared interactive systems
and user-friendly environments were the features of these computers. As computers
started becoming more and more powerful, they could be linked together or networked to
share not only data but also memory space and software. The networks could reach
enormous proportions with local area networks. A global web of computer circuitry, the
Internet, links the computers worldwide into a single network of information.
Digital Computers
A computer that performs calculations and logical operations with quantities
represented as digits, usually in the binary number system.
These are high-speed electronic devices. These devices are programmable. They
process data by way of mathematical calculations, comparison, sorting, etc. They accept
input and produce output as discrete signals representing high (on) or low (off) voltage
state of electricity. Numbers, alphabets, symbols are all represented as a series of 1s and
Os.
b) Hand-Held Computers
These types of computers are mainly used in applications like the collection of field
data. They are even smaller than notebook computers.
b) Mainframe Computers
They also have large storage and high
computing speed (but relatively lower than the
supercomputers). They are used in applications like
weather forecasting, space applications, etc., they
support a large number of terminals for use by a
variety of users simultaneously, but are expensive.
c) Mini Computers
It is a medium-sized computer with moderate cost, available indigenously, and
used for large volume applications. It can serve multi-users simultaneously.
d) Micro Computers
A microcomputer is the smallest general-purpose processing system.
Microcomputers are also referred to as personal computers‖(PC). These are self-contained
units and usually developed for use by one person at a time but can be linked to very large
systems. They are cheap, easy to use even at homes, and can be read for a variety of
applications from small to medium range. These are available in three models:
1. PC: Personal Computer
2. PC-XT: PC with Extended Technology
3. PC-AT: PC with Advanced Technology
Accuracy
Computers are very accurate. They are capable of executing hundreds of
instructions without any errors. They do not make mistakes in their computations. They
perform every calculation with the same accuracy.
Efficiency
The efficiency of computers does not decrease with age. The computers
Storage
Computers are capable of storing large amounts of data in their storage devices.
These devices occupy very less space and can store millions of characters in condensed
forms. These storage devices typically include floppy disks, tapes, hard disks, CDs, etc,
the data stored on these devices can be retrieved and reused whenever it is required in
future
Versatility
Computers are very versatile. They are capable not only of performing complex
mathematical tasks of science and engineering, but also other non-numerical operations
fielding air-line reservations, electricity bills, database management, etc.
Computers are flexible to perform both simple and complex tasks.
Automation
Computers can be instructed to perform complex tasks automatically (which
increases productivity).
Diligence:
Computers can perform the same task repeatedly & with the same accuracy
without getting tired.
Cost-effectiveness:
Computers reduce the amount of paperwork and human effort, thereby reducing
costs.
Capabilities of a Computer
➢
it can process data faster than any digital machine
➢
it can perform instructions millions of times
➢
it can communicate with other computers
➢
it can be used to access information from all over the globe
➢
it is capable of storing and recalling information
Disadvantages:
Crashed Network
Computers can be easily connected via “NETWORKING”, It can connect to the
internet. Imagine you have an office of 25 computers, all of the computers are connected
with shared internet, while all of your employees do different works on their respective
computers and one day your network goes down or the whole network is crashed .you
will find that all the computer which are connected stop working and hence less production
or no work is found. This is one of the significant Disadvantages of computer occurs
frequently when used in a network.
The computer has storage devices like floppies, hard disks, compact disks to store
and retrieve information. However, the computer does not understand emotions, it does
not understand meaning beyond words, it cannot read between the lines like the human.
We learn many things unknowingly, certain things knowingly; we call it as upbringing. But
computers can learn everything only knowingly. We learn many things on our own, but
the computer has to be taught to do everything.
Reads information from input media and enters to the computer in a coded form.
The input system connects the external environment with the computer system.
The input devices are the means of communication between the user and the computer
system. Typical input devices include the keyboard, floppy disks, mouse, microphone,
light pen, joystick, magnetic tapes, etc. How the data is fed into the computer through
each of these devices is different. However, a computer can accept data only in a specific
form. Therefore, these input devices transform the data fed to them, into a form that can
be accepted by the computer. These devices are a means of communication and inter-
station between the user and the computer systems.
Page 29
Output Unit
The output devices give the results of the process and computations to the
outside world. The output units accept the results produced by the computer, convert
them into a human-readable form, and supply them to the users. The more common
output devices are printers, plotters, display screens, magnetic tape drives, etc.
The term primary memory is used for the information in physical systems which are fast
(i.e. RAM), as a distinction from secondary memory, which are physical devices for
program and data storage which are slow to access but offer higher memory capacity.
Primary memory stored on secondary memory is called virtual memory.
SRAM retains its contents as long as the power is connected and is easy to interface to
but uses six transistors per bit.
Cache Memory:
Cache memory is an intermediate between RAM and processor. It is very fast. Cache
memory is random access memory (RAM) that a computer microprocessor can access
more quickly than it can access regular RAM. As the microprocessor processes data, it
looks first in the cache memory and if it finds the data there (from a previous reading of
data), it does not have to do the more time-consuming reading of data from larger
memory.
Secondary Memory:
A. Hard Disk (Local Disk)
B. Optical Disks: CD-R, CD-RW, DVD-R, DVD-RW
C. Floppy Disks
D Memory Cards
E. External Hard Disk
F. Blu Ray Disk
Units of Memory:
Those peripheral devices which supply information i.e. data and program from the
outside world to the computer are the input devices. Those peripheral devices which
give information from the computer to the user or store them in secondary storage
devices, like floppy disks or tapes for future use are called output devices.
The processors which are required to convert the input data into the machine-
readable form and to convert the output generated by the computer into human-readable
form are known as input/output (I/O) interfaces. There are two concepts related to how
data is input to the computer:
Data is recorded onto punch cards or punch tapes using standard codes, like the Hollerith
code. The pattern of these holes is interpreted by a card reader device and converted into
a machine-readable form. A punch card machine is used to transcribe the data onto the
card.
2.2.2 Keyboard
The keyboard is one of the most commonly used input devices. The computer keyboard
is similar to a typewriter keyboard. The keyboard has keys made up of letters, numbers,
symbols, and special function keys.
A display screen or monitor (Cathode Ray Tube) is used to display the data entered by
the operator with the keyboard. This monitor can also display the results of the
processing as well as messages generated by the computer. A special symbol, called a
cursor, indicates the position on the screen. There are special keys on the keyboard
The mouse is a pointing device. The mouse is used to control and manipulate cursor
movement on the monitor. The mouse usually has three or four buttons on it and a rollerball
which signals the movements made by the mouse on a flat surface. These movements are
transferred to the system. The mouse is rolled on a flat surface by the user. It can be used
independently, but normally it is used in conjunction with the keyboard to improve the
efficiency of the input operation. The mouse can be used to select data. Also, the mouse
makes it possible to move fast from one part of the screen to the other.
• Mechanical mouse
• Optical mouse
• Opt mechanical mouse
2.2.4 Light Pen
The light pen is a picking device. The light pen contains a photocell placed in a small tube.
This photocell detects the presence of light on the CRT (monitor). The tip of the pen is
moved on the surface of the screen to write or sketch data. The light pen is especially
useful in Computer-Aided Design (CAD) applications.
The position and speed with which the joystick is moved are converted into digital signals
by the use of a lever. These signals are then sent to the computer system. This in turn
controls the movement of the cursor on the screen. The joystick is mainly used in video
game applications.
The trackball uses a hard-sphere to control cursor movement. The bail can be rotated in
any direction by hand and this is translated into a digital signal to control the cursor
movement on the screen.
A touch panel is a transparent plate which is fitted over the CRT. Input is registered
when a finger or any other object comes in contact with the plate. There are two types
of touch panels:
• Optical touch panels
• Electric touch panels
A digitizer converts graphical or pictorial data into digital form which can be directly
entered and stored on a computer. A digitizer is also called as a graphics tablet. There
are two types of digitizers:
In the image scan digitizer, the entire image is scanned and reproduced automatically.
Therefore, the image scan digitizers are more powerful as compared to flatbed digitizers.
Flatbed digitizers are mainly used in simple drawings, graphs, etc. whereas image scan
digitizers are used for photographs and pictures.
2.2.9 Scanner:
The scanner can directly enter text and images into the computer memory. Therefore,
the duplication work of entering data is eliminated and this also results in increased
accuracy. The speed of data entry also increases. There are two types of scanners:
A. Optical Scanner:
The optical scanner uses a light source and sensor for reading the information on the
paper. It can read characters, pictures, graphics from the paper. The common types of
optical scanners are:
1. The Optical Mark Reader (OMR): This is capable of reading pre-specified marks
made by pencils or pens with the help of light. Light is focused on the page that
is to be scanned. The reflected light pattern is detected by the device. These
types of scanners are normally used where the data is preprinted for applications.
eg. answer papers of the objective tests where the answers are marked with
pencils or preprinted forms.
2. Optical Character Reader: The Optical Character Reader (OCR) can read
alphabets, characters, and numbers printed on paper. These characters can be
either handwritten or typed. However, special fonts are required to be used while
typing. In the case of handwritten data, the characters have to be of standard
predefined size. The OCR reads each character as a collection of pixels. The light
which is reflected from the page to be scanned is converted into binary data.
OCRs are available in various sizes and speeds. These devices are expensive
and are mainly used in processing where the data volumes are large.
The bar code reader is a device that reads barcoded data. Data that is coded in the form
of light or dark lines (bars) is a bar code. Bar code readers are normally used in
applications like labeling of products in retail shops, supermarkets, etc. A laser beam
scanner is used to read the bar code.
The most commonly used bar code is the Universal Product Code (UPC). In this code,
the bars are coded as 10 digits. The first five digits define the manufacturer or supplier,
and the remaining five digits denote the actual product of the manufacturer.
A special type of input device, this mainly finds application in banking areas. Magnetic ink
is used to encode the characters to be read. This ink contains iron oxide particles. When
a cheque is presented in the bank, the amount is encoded by the bank employee in the
lower right corner and the cheque is then processed with MICR. Special character sets
like E13B and CMC7 are used by these devices to encode data. The E13B has four
special characters and the digits 0-9. The CMC7 has five special characters, digits 0-9,
and all alphabets.
The advantages of using MICR are that they speed up data entry, and even roughly
handled cheque can be processed relatively easily. However, among the limitations are
that special type of magnetic ink is required for. Encoding characters and only a limited
number of digits and characters are available for encoding.
This system allows the user to talk with the computer. The Voice Recognition System
consists of a microphone or telephone into which the operator speaks. The speech is
converted into electrical signals. The signal is input as the voice of the operator. This is
matched with an already entered pre-stored pattern of words called vocabulary. When
the closest match is found the word is recognized. Since each operator may have a
different style of speaking, all Voice Recognition systems are highly operator dependent.
Also, a separate vocabulary for each operator is required to be maintained. The
advantages of the Voice Recognition systems are that they reduce the cost of data entry.
Also, the operator can move freely while talking to the computer.
2.3.1 Printers:
A printer produces the output from the computer on the paper. It is the most commonly
used output device. The printers produce a hard copy i.e. a permanent copy of the results
which can be stored and read later. Printers are classified as:
a) Impact Printer
b) Non-Impact Printer
A. Impact Printer
Impact printers are similar to typewriters. They use a hammer to strike a character against an
inked ribbon and the impact of the hammer causes the image of the character to be printed
on paper. E.g. Dot matrix printers, line printers, daisy wheel printers
Dot-matrix printer prints each character as a pattern of dots. The printer has a printer
head with a matrix of pins (needles). Typical heads have a matrix of 7 rows and 9
columns. These pins produce a pattern of dots to form the individual characters.
Fig. 2.8 A dot matrix printer, a daisy wheel, and a daisy wheel printer
These printers are also called as letter-quality printers. These printers have a daisy
wheel with several petals. A character is embossed on each wheel. There is a motor that
spins the wheel at a fast rate. When the desired character is brought to the correct
position, a hammer strikes the petal to produce the output. Thus, these printers are
impact printers. The letter quality of these printers is much superior as compared to the
dot matrix printers. But they are slow and typically print in the range of 10-50 characters
per second.
Line printers are very fast printers that print at speed of 200-2500 lines per minute. These
printers are impact printers and normally have 132 print positions per line. Different types
of character sets are available for different printers. Line printers are normally used in
applications where large volumes of data are to be printed.
This consists of a metallic cylinder. On the surface of this drum, there are characters in
bands. Each column or band on the drum contains all the characters. Opposite to each
band, there is a hammer located behind the paper. The drum rotates at a fast rate. The
hammer strikes the paper along with the inked ribbon and produces the output. One line
is printed in each revolution of the printer.
b) Non-Impact Printer
They use thermal, chemical, electrostatic, and inkjet technologies for printing as against
the hammer mechanism of impact printers. E.g. Laser printers, DeskJet printers.
Inkjet Printer:
An inkjet printer is a non-impact printer. It prints characters by spraying ink from tiny
nozzles onto the paper. A special type of ink which has a high iron content is used. This
ink is charged electrically when it comes out of the nozzle. This ink is absorbed by the
paper and dries instantly. The output of the inkjet printer is of superior quality. Also, it is
possible to obtain a colored output. Several character styles and sizes are available.
However, being a non-impact printer, it is not possible to prepare carbon copies with this
printer.
These printers are used where a very superior quality output is desired. The image
is created on a photosensitive drum; with a laser beam. The laser is turned on and off
when it moves back and forward across the drum. It leaves a negative charge on the
drum to which a positively charged black toner powder sticks. When the paper rolls by
the drum, the ink is transferred to the paper. Laser printers have a buffer memory to store
entire pages and hence their speed is very fast. The biggest advantage of these printers
is that no mechanical movement is involved, therefore they are noiseless in operation.
However, there are comparatively expensive.
2.3.2 Plotter:
A plotter is an output device used in applications where printouts of graphs and drawings
are required. Plotters are of two types:
This plotter plots on a paper which is fixed on a rectangular flatbed table. One recording
pen moves in the x-direction and one in the y-direction to plot on the paper. Color plotting
is also possible by using pens of different colors.
2) Drum Plotter:
In this plotter, the paper on which the output is to be obtained is placed over a drum.
The drum rotates back and forth to produce motion. The pen is mounted horizontally
across the drum and the horizontal motion of the pen is achieved with the help of the
pen holder. The drum and the holder move simultaneously to produce output. Multi-
colored printing is possible by changing pens.
The speed of plotters is very slow. Therefore, normally the output is first sent to some
secondary storage device like magnetic tape and then directed to the plotter.
• CRT:
The most common flat panel display is the Liquid Crystal Display (LCD). This does not
have a picture tube. The other type of display is the gas plasma screen.
Dumb Terminal:
This is a combination of a keyboard and monitor which can send or receive data but
cannot process the data.
This technology is used to record the computer output as microscopic filmed images.
Information is recorded on a roll of microfilm. A microfilm recorder displays the information
onto a screen. An inbuilt camera then takes pictures of this information. A microfilm reader
is used to view this information. COM devices are normally used in applications where
there are large volumes of data.
COM devices are much faster than normal printers. Also since the size of these films is
very small the space required for storage is very less as compared to printed output.
However, since COM systems are highly sophisticated, they are relatively expensive and
are mainly used where there are high volumes of data.