Module 1_Introduction to Computer & Input Output Devices
Module 1_Introduction to Computer & Input Output Devices
● Course Objectives:
Module 2
● Operators in C, Type conversion and typecasting.
10. Develop a program using pointers to compute the sum, mean and
standard deviation
© of allUniversity
Oxford elements Pressstored in an
2012. All rights array of N real numbers.
reserved.
Introduction to C Programming (MVJ22ESCK14E)
Course Outcomes: At the end of the course the student will be able to:
Computers
● For Example, the date of birth is the data and calculating the age using
© Oxford University Press 2012. All rights reserved.
the date of birth is a information.
Stored Program Concept:
All digital computers are based on the principle of stored program concept by Sir John Von
Neumann in the late 1940s.
● Instructions are stored in binary form (using binary numbers 0s & 1s).
● Processing starts with the first instruction in the program, which is copied into a control
unit circuit. The control unit executes the instructions.
● Instructions are written by the users are performed sequentially until there is a break in
the current flow.
● Input / Output and processing operations are performed simultaneously. While data is
being read / written, the CPU executes another program in the memory that is ready for
© Oxford University Press 2012. All rights reserved.
execution.
Types of Stored Program Computers
Shared Memory Architecture:
● A computer with Von Neumann Architecture stores data and instructions in the
same memory / main memory.
● There is a serial machine in which data and instructions are selected one at a
time.
● Data and instructions are transferred to and from memory through shared data
bus.
● Since there is a single bus to carry data and instructions, process of execution
becomes slower.
The first generation computers used very large number of vacuum tubes
for circuitry and magnetic drums for memory.
● The development of the integrated circuit was the hallmark of the third
generation of computers.
● These computers had few megabytes of main memory and magnetic
disks which could store few tens of megabytes of data per disk drive.
● High level programming languages like COBOL and FORTRAN were
standardized by ANSI
● Some more high level programming languages like PL/I PASCAL and
BASIC were introduced at this time.
● Third generation computers were the first to implement time sharing
operating systems.
● Input to these computers could now be provided using keyboards
and mouse. © Oxford University Press 2012. All rights reserved.
PL/I – Procedural , imperative computer
programming Language
●In the fifth generation of computers the aim is to develop devices that
respond to natural language input and are capable of learning and self-
organization.
Classification of Computers
Dumb Intelligent
Terminal Terminal
Dumb terminals:
It consists of only monitor and keyboard and uses mainframe’s system
CPU and storage device.
Intelligent terminals:
It have their own processor and perform processing operations but do
not have their own storage space.
• Mainframe computers are typically used as servers on WWW.
Dumb terminals:
It consists of only monitor and keyboard and uses mainframe’s system
CPU and storage device.
Intelligent terminals:
It have their own processor and perform processing operations but do
not have their own storage space.
• Mainframe computers are typically used as servers on WWW.
They are also used in organizations such as banks, airline companies,
universities where large number of people access the data frequently.
Desktop PCs:
It is the most popular model of PC’s.
Laptops:
They are small microcomputers that easily fit inside a briefcase.
The memory and storage capacity of a laptop is almost equivalent to a
desktop computer.
They also have hard disk drives.
For input, laptops have built-in keyboard and touch pad.
CPU
CONTROL UNIT
DEVICES
INPUT DEVICES
With a keyboard , the user can type a document, use keystroke shortcuts, access
menu, play games and perform numerous other tasks. Most keyboards have
between 80 and 110 keys which include:
●Typing keys
●Numeric keys
●Function keys
Advantages: Easy to use and cheap
Disadvantages:
Keyboard cannot be used to draw figures
The process of moving the cursor to some other position is very slow. Mouse and
other pointing devices are more apt for this purpose
Advantages:
Occupies less space
Easier to use as compared to mouse as its use involves
less hands and arms movements
It is built-in the keyboard, so no need to carry an extra device separately
●In the flat bed scanner, the object to be scanned is placed on a glass pane and a
sensor and light moves along the pane, reflecting off the image placed on the
glass.
●Film scanners are usually used in photography and slides. The slide or negative
film is first inserted in strips of six or less frames into the film scanner, and then
moved across a lens and censor to capture the image.
● LCD monitor is a thin, flat electronic visual display that uses the light
modulating properties of liquid crystals which do not emit light directly.
●LCD screens are used in a wide range of applications ranging from computer
monitors, television, instrument panels, aircraft cockpit displays, signage, to
consumer devices like such as video players, gaming devices, clocks, watches,
calculators, and telephones.
●Liquid crystal display technology is based on blocking light. The LCD consists
of two pieces of polarizing filters (or substrates) that contain a liquid crystal
material between them. A backlight creates light which is made to pass through
the first substrate. Simultaneously, the electrical currents cause the liquid crystal
molecules to align to allow varying levels of light to pass through to the second
substrate and create the colors and images are seen on the screen.
●Plasma monitors are thin and flat monitors widely used in TVs and computers. The plasma
display contains two glass plates that have tiny cells filled with xenon and neon gas.
●The display electrode is covered by a magnesium oxide protective layer and is arranged in
horizontal rows along the screen while the address electrodes are arranged in vertical
columns thereby forming grid like structure.
●To ionize the gas in a particular cell, the electrodes that intersect at that cell are charged at
least thousands of times in a small fraction of a second
● An electric current begins to flow through the gas in the cell. The current creates a rapid
flow of charged particles thereby stimulating the gas atoms to release ultraviolet photons.
●When these UV photons hit a phosphor atom in the cell, one of the phosphor's electrons
jumps to a higher energy level and the atom heats up. When the electron falls back to its
normal level, it releases energy in the form of a visible light photon.
© Oxford University Press 2012. All rights reserved.
PROJECTOR
A projector is a device which takes an image from a video source and projects it
onto a screen or other surface. These days, projectors are used for a wide range
of applications varying from home theater e systems to organizations for
projecting information and presentations onto screens large enough for rooms
filled with people to see.
Today all business and home users demand sound capabilities and thus
different types of speakers to enable users to enjoy music, movie, or a game
and the voice will be spread through the entire room. With good quality
speakers, the voice will also be audible even to people sitting in another or
room or even to neighbors.
However, in case the user wants to enjoy loud music without disturbing the
people around him, he can use a headphone.
Another device called headset was developed to allow the users to talk and
listen at the same time, using the same device.
PRINTERS
Printer is a device that outputs text and graphics information obtained from the
computer and prints it on to a paper. Printers are available in the market in a
variety of size, speed, sophistication, and cost. The qualities of printer which are
of interest to users include:
Color: Colored printouts are needed for presentations or maps and other pages
where color is part of the information. They are more expensive,
Speed: Speed means number of pages that are printed in one minute.
While high speed printers are a little expensive, the inexpensive printers
on the other hand can print only about 3 to 6 sheets per minute. Color
printing is even slower.
Impact Printer. They create characters by striking an inked ribbon against the
paper. Ex., dot-matrix printers, daisywheel printers, and most types of line printer.
Non Impact Printer: Non-impact printers are much quieter than impact printers as
their printing heads do not strike the paper. They offer better print quality, faster
printing and the ability to create prints that contain sophisticated graphics.
Non-impact printers use either solid or liquid cartridge-based ink which is either
sprayed, dripped or electro statically drawn onto the page. The main types of non-
impact printer are: inkjet, printer, laser printer and thermal printer.
Advantages
It can produce carbon copies; offers lowest printing cost per page;
widely used for bulk printing where quality of the print is not of
much importance; is cheap; When the ink is about to finish, the
printout gradually fades rather than suddenly stopping partway through a job
It can use continuous paper rather than individual sheets, making them useful for
data logging.
Disadvantages
It creates a lot of noise when the pins strike the ribbon to the paper.
It can only print lower-resolution graphics, with limited quality
It is very slow
Poor print quality
●The print head of a daisy wheel printer is a circular wheel, about 3 inches in
diameter with arms or spokes. The characters are embossed at the outer end of
the arms.
●To print a character, the wheel is rotated in such a way that the character to be
printed is positioned just in front of the printer ribbon.
●The key benefit of using a daisy wheel printer is that the print quality is
high as the exact shape of the character hits the ribbon to leave and
impression on paper.
Line printer is a high speed impact printer in which one typed line is printed at a
time. The speed of a line printer usually varies from 600 to 1200 lines-per-minute
or approximately 10 to 20 pages per minute. They are widely used in datacenters
and in industrial environments. Band printer is a commonly used variant of line
printers.
Band Printer: A band printer (loop printer) is an impact printer . The set of
characters are permanently embossed on the band and this set cannot be
changed unless the band is replaced. The band itself revolves around hammers
that push the paper against the ribbon, allowing the desired character to be
produced on the paper. However, band printers cannot be used for any graphics
printing as the characters are predetermined and cannot be changed unless the
band is changed.
● In inkjet printers , the print head has several tiny nozzles, also called jets.
●As the paper moves past the print head, the nozzles spray ink onto it, forming
the characters and images.
●The dots are extremely small (usually between 50 and 60 microns in diameter)
and are positioned very precisely, with resolutions of up to 1440x720 dots per
inch (dpi).
●There is usually one black ink cartridge and one so-called color cartridge
containing ink in primary pigments (cyan, magenta, and yellow).
●While inkjet printers are cheaper than laser printers, they are more expensive
to maintain. The cartridges of inkjet printers have to be changed more
frequently and the special coated paper required to produce high-quality output
is very expensive. So the cost per page of inkjet printers becomes ten times
more expensive than laser printers. Therefore, inkjet printers are not well-suited
for high-volume print jobs.
●It is a non-impact printer that works at a very high speed and produces high
quality text and graphics.
● After the drum is charged, it is rolled in toner (a dry powder type of ink).
● The toner is transferred onto a piece of paper and fused to the paper with heat
and pressure.
● After the document is printed, the electrical charge is removed from the
drum and the excess toner is collected.
● While color laser printers are also available in the market but users
prefer only monochrome printers because a color laser printer is up to 10
times more expensive than a monochrome laser printer.