COS 101 MODULES 1-3_053757
COS 101 MODULES 1-3_053757
COS 101 MODULES 1-3_053757
1
Computer Science Department (KWASU)
Table of content
MODULE 1: INTRODUCTION TO COMPUTING..........................................................3
Basic Concepts………………………………………………………………………………………………….3-4
Brief history of computing……………………………………………………………………………….4
Classification of computers………………………………………………………………………………5
Classification based on technology innovation……………………………………………….5-6
Classification based on method of data representation…………………………………7
Classification based on purpose………………………………………………………………8-9
MODULE 2: COMPONENTS OF COMPUTER…………………………………………….10
Computer Hardware……………………………………………………………………………11
Difference between RAM and ROM………………………………………………………12-13
Diagram illustrating the major components of computer………………………14
Peripheral devices………………………………………………………………………………………15-16
Computer Software………………………………………........................................17
Operating systems……………………………………………………………………………….18-20
MODULE 3: APPLICATION OF COMPUTERS……………………………………………………21-23
Module1
Introduction to Computing
2
Computer Science Department (KWASU)
Basic Concepts
Brief history of computing
Classification of computers
Classification based on technology innovation
Classification based on method of data representation
Classification based on purpose
Basic Concepts
1.0 Introduction
In the 21st century, computers have become indispensable tools in virtually all aspects of human lives.
The development of handheld computers such as personal digital assistants (PDAs), tablet computers and
smart phones has helped computers to become ubiquitous. This unit presents background information
about computers by defining basic computer terms, providing a brief history of modern computing, and
describing the parts of a computer system.
A digital computer unlike the analogue computer and hybrid computers represents data by a
coded set of discrete electrical pulses. The computer system as presently structured has passed
through several stages of conceptual development including:
I. The invention of ABACUS (otherwise called BEAD FRAME) in china around the 7th
century B.C. The ABACUS was for addition.
II. The design of a logarithmic scale by the Scottish mathematician John Napier(1550-1617)
in the 17th century A.D
III. The inventory of the slide rule 1620 by the English mathematician Edmund Gunter
(1581-1626).
IV. French mathematician Blaise Pascal (1624-1662) who invented a mechanical calculator
in 1642.
V. Sir Samuel Morland (1625-1695), an English mathematician who invented three
calculating machines between 1663 and 1666
VI. German philosopher and mathematician Gottfried Leibnitz (1646-1716) who in 1671
developed a calculator for multiplication and division.
VII. J.M.Jacquard a French weaver, in 1801 developed the punched cards.
VIII. Charles Babbages (1792-1872) the English mathematician who is regarded as the Father
of Computing .He it was who first made an attempt to design a machine different from
3
Computer Science Department (KWASU)
4
Computer Science Department (KWASU)
Data: Data refer to raw or unprocessed facts about a person, place or thing. Examples of data
include name, age, height and profession. Data is the plural for datum.
Information: Information is processed data or data that has been converted into useful form e.g.
the result of students in an examination or the net pay of an employee.
Based on the component structure of the modern computer, at least four generation of computers
have up till the 1980s emerged.
5
Computer Science Department (KWASU)
There are various ways by which computers are classified, the major ones are based on the
following:
1. Technological innovation.
2. Manner/method of data representation.
3. Purpose of the computer.
4. Processing speed.
CLASSIFICATION BASED ON TECHNOLOGICAL INNOVATION
Classification of computers based on technological innovation involves the grouping of
computers in terms of their various generations i.e. stages of computer development. These
various generations of computers were triggered by the work of inquisitive researchers who took
it upon themselves to correct the mistakes or laxities in their previous discoveries at one
particular time or the other. Such generations of computers are as follows:
FIRST GENERATION OF COMPUTERS (mid1940s-1950s)
These are the computers that were in use in the early 1950s.The technological innovation that led
this group of computers was the Stored Program Concept. The logic part of these computers
was made of Vacuum Tubes while Magnetic Drum was used for the memory element. Because
of the vacuum tubes, first generation computers were very large, expensive and consumed a lot
of electricity hence generates a lot of heat. Examples of the first generation computers are
EDVAC, UNIVAC and IBM700 series.
CHARACTERISTICS OF THE FIRST GENERATION COMPUTERS
As a result of the vacuum tube used in this generation of computers, the machines possess the
following features:
1. They are very large in size.
2. They consume a lot of electricity, hence generates a lot of heat.
3. They are usually very expensive to maintain.
4. The memory element was made up of magnetic drum.
5. The programs were written in Machine Language.
6
Computer Science Department (KWASU)
7
Computer Science Department (KWASU)
8
Computer Science Department (KWASU)
9
Computer Science Department (KWASU)
10
Computer Science Department (KWASU)
CHARACTERISTICS OF COMPUTER
Speed, accuracy, diligence, storage capability and versatility are some of the key characteristics of a
computer. A brief overview of these characteristics are—
Speed The computer can process data very fast, at the rate of millions of instructions per second. Some
calculations that would have taken hours and days to complete otherwise, can be completed in a few
seconds using the computer. For example, calculation and generation of salary slips of thousands of
employees of an organization, weather forecasting that requires analysis of a large amount of data related
to temperature, pressure and humidity of various places, etc.
Accuracy Computer provides a high degree of accuracy. For example, the computer can accurately
give the result of division of any two numbers up to 10 decimal places.
Diligence or Consistency When used for a longer period of time, the computer does not get tired or
fatigued. It can perform long and complex calculations with the same speed and accuracy from the start
till the end.
Storage Capability Large volumes of data and information can be stored in the computer and also
retrieved whenever required. A limited amount of data can be stored, temporarily, in the primary memory.
Secondary storage devices like floppy disk and compact disk can store a large amount of data
permanently.
11
Computer Science Department (KWASU)
Versatility Computer is versatile in nature. It can perform different types of tasks with the same ease.
At one moment you can use the computer to prepare a letter document and in the next moment you may
play music or print a document. Computers have several limitations too. Computer can only perform tasks
12
Computer Science Department (KWASU)
MODULE 2
COMPONENT OF THE COMPUTER
Computer Hardware
Difference between RAM and ROM
Diagram illustrating the major components of computer
Peripheral devices
Computer Software
Operating systems
1. Input unit
2. System unit
3. Output unit(Visual display unit or monitor)
THE INPUT UNIT: This refers to the device through which data is sent into the Central
Processing Unit(CPU) for processing. The most common input device is the keyboard and
mouse. Input device is any peripheral (piece of computer hardware equipment to provide data
and control signals to an information processing system such as a computer or other information
appliance. Input device Translate data from form that humans understand to one that the
computer can work with. However all the input devices are important in data processing.
The first step in data processing is the sending of data(to be processed) into the CPU where the
actual processing takes place, from the CPU, it proceeds to the main memory where it is
temporarily stored to be viewed and accessed by the users through the visual display unit(i.e. the
13
Computer Science Department (KWASU)
monitor). However failure to enter the data correctly yields no useful information or output in
accordance to a common computer parlance “ Garbage In Garbage Out (GIGO)”.
Example of Input Devices:-
1.Keyboard 2.Mouse(pointing device) 3. Microphone
4.Touch screen 5.Touch screen 6. Webcam
7.Touchpads 8. MIDI keyboard 9.Graphics Tablets
10.Cameras 11.Pen Input 12.Video Capture
13.Video Capture 14.Microphone 15.Trackballs
Hardware
16.Barcode reader 17.Digital camera
14
Computer Science Department (KWASU)
Keyboard: The keyboard is the most important input device on a computer. Computer
keyboards have the same layout as standard typewriters. The layout is called QWERTY, because
the first six letters on the top row of letters are Q, W, E, R, T and Y. in addition to typing keys,
computer keyboards have arrow keys for navigation, function keys for computer-specific tasks,
and a calculator-like numeric keypad.
Mouse: A mouse is a device for controlling the movement of a pointer or cursor on the screen.It
consists of a ball which is rolled on a surface. The mouse derives its name from its resemblance
to a real mouse.
Joystick: A joystick resembles a car’s gear stick. Moving the stick in any direction results in a
corresponding movement of an on-screen object such as a pointer. Joysticks are mostly used for
playing computer games.
Digital cameras: They are used to capture still or moving images, which can be transferred to a
computer and manipulated using image or video processing software.
THE SYSTEM UNIT: This is the central part of the computer. It comprises of the micro
processor (i.e. the CPU) and the secondary storage. This is also where peripheral devices such as
the mouse, scanner, and telephone etc. are connected for use when they are needed
Central Processing Unit (CPU) otherwise called the Microprocessor. A CPU is brain of a
computer. It is responsible for all functions and processes. Regarding computing power, the CPU
is the most important element of a computer system.
The CPU is comprised of three main parts :
Arithmetic Logic Unit (ALU): Executes all arithmetic and logical operations.
Arithmetic calculations like as addition, subtraction, multiplication and division. Logical
operation like compare numbers, letters, or special characters.
Control Unit (CU): controls and co-ordinates computer components.
1. Read the code for the next instruction to be executed.
2. Increment the program counter so it points to the next instruction.
3. Read whatever data the instruction requires from cells in memory.
4. Provide the necessary data to an ALU or register.
5. If the instruction requires an ALU or specialized hardware to complete, instruct
the hardware to perform the requested operation.
Registers : Stores the data that is to be executed next, "very fast storage area".
Primary Memory:-
15
Computer Science Department (KWASU)
1. RAM: Random Access Memory (RAM) is a memory scheme within the computer system
responsible for storing data on a temporary basis, so that it can be promptly accessed by the
processor as and when needed. It is volatile in nature, which means that data will be erased once
supply to the storage device is turned off. RAM stores data randomly and the processor accesses
these data randomly from the RAM storage. RAM is considered "random access" because you
can access any memory cell directly if you know the row and column that intersect at that cell.
2. ROM (Read Only Memory): ROM is a permanent form of storage. ROM stays active
regardless of whether power supply to it is turned on or off. ROM devices do not allow data
stored on them to be modified.
16
Computer Science Department (KWASU)
Secondary Memory:- Stores data and programs permanently :its retained after the power is
turned off.
1. Hard drive (HD): A hard disk is part of a unit, often called a "disk drive," "hard drive," or
"hard disk drive," that store and provides relatively quick access to large amounts of data on an
electromagnetically charged surface or set of surfaces. Hard disks are used to store your operating
system, your application programs (i.e. your word processor, games etc) and your data. They are much
faster than CD-ROMs and floppy disks and can also hold much more data.
2. Optical Disk: an optical disc drive (ODD) is a disk drive that uses laser light as part of the
process of reading or writing data to or from optical discs. Some drives can only read from discs,
but recent drives are commonly both readers and recorders, also called burners or writers.
Compact discs, DVDs, and Blu-ray discs are common types of optical media which can be read
and recorded by such drives. Optical drive is the generic name; drives are usually described as
"CD" "DVD", or "Bluray", followed by "drive", "writer", etc. There are three main types of
optical media: CD, DVD, and Blu-ray disc. CDs can store up to 700 megabytes (MB) of data and
DVDs can store up to 8.4 GB of data. Blu-ray discs, which are the newest type of optical media,
can store up to 50 GB of data. This storage capacity is a clear advantage over the floppy disk
storage media (a magnetic media), which only has a capacity of 1.44 MB.
3. Flash Disk :A storage module made of flash memory chips. A Flash disks have no mechanical
platters or access arms, but the term "disk" is used because the data are accessed as if they were
on a hard drive. The disk storage structure is emulated.
OUTPUT UNIT: This refers to the channels or mediums through which processed data is
displayed. An output device is any piece of computer hardware equipment used to communicate
the results of data processing carried out by an information processing system (such as a
computer) which converts the electronically generated information into human readable form.
17
Computer Science Department (KWASU)
Monitors: The monitor is the computer’s display screen. It is also known as visual display unit.
The two commonly used technologies for monitors are liquid crystal display and light emitting
diodes, which have replaced cathode ray tube monitors that resembled bulky old-fashioned
televisions.
Printers: A printer is a device that expresses text or illustration on paper and other media. The
two most commonly used types of printers today are inkjet and laser printers. Inkjet printers
work by spraying ink on papers to produce text and characters. On the other hand, laser printers
pass abeam on a cylindrical drum, which collects powdered ink (toner) and transfers the toner to
paper. Laser printers work in the same way as photocopiers.
18
Computer Science Department (KWASU)
Plotters: A plotter is a device that draws pictures by moving one or more pens on paper. Plotters
can be used to produce large printouts. They are typically used by engineers, architects and
interior designers who require more precision than can be offered by printers.
Input Unit:
Computers need to receive data and instruction in order to solve any problem. Therefore, we
need to input the data and instructions into the computers. The input unit consists of one or more
input devices. Keyboard is the one of the most commonly used input device. Other commonly
used input devices are the Mouse, Scanner, Microphone etc.
All the input devices perform the following functions.
• Accept the data and instructions from the outside world.
• Convert it to a form that the computer can understand.
• Supply the converted data to the computer system for further processing.
19
Computer Science Department (KWASU)
Storage Unit: The storage unit of the computer holds data and instructions that are entered
through the input unit, before they are processed. It preserves the intermediate and final results
before these are sent to the output devices. It also saves the data for the later use.
The various storage devices of a computer system are divided into two categories.
a) Primary Storage: Stores and provides very fast. This memory is generally used to hold the
program being currently executed in the computer, the data being received from the 2 input unit,
the intermediate and final results of the program. The primary memory is temporary in nature.
The data is lost, when the computer is switched off. In order to store the data permanently, the
data has to be transferred to the secondary memory. The cost of the primary storage is more
compared to the secondary storage. Therefore, most computers have limited primary storage
capacity.
b) Secondary Storage: Secondary storage is used like an archive. It stores several programs,
documents, data bases etc. The programs that you run on the computer are first transferred to the
primary memory before it is actually run. Whenever the results are saved, again they get stored
in the secondary memory. The secondary memory is slower and cheaper than the primary
memory. Some of the commonly used secondary memory devices are Hard disk, CD, etc.,
Memory Size: All digital computers use the binary system, i.e. 0’s and 1’s. Each character or a
number is represented by an 8-bit code. The set of 8 bits is called a byte. A character occupies 1-
byte space. A numeric occupies 2-byte space. Byte is the space occupied in the memory. The
size of the primary storage is specified in KB (Kilobytes) or MB (Megabyte). One KB is equal to
1024 bytes and one MB is equal to 1000KB. The size of the primary storage in a typical PC
usually starts at 16MB. PCs having 32 MB, 48MB, 128 MB, 256MB memory are quite common.
Output Unit: The output unit of a computer provides the information and results of a
computation to outside world. Printers, Visual Display Unit (VDU) are the commonly used
output devices. Other commonly used output devices are Speaker, Headphone, Projector etc.
Arithmetic Logical Unit: All calculations are performed in the Arithmetic Logic Unit (ALU) of
the computer. It also does comparison and takes decision. The ALU can perform basic operations
such as addition, subtraction, multiplication, division, e.t.c and does logic operations viz, >,
20
Computer Science Department (KWASU)
Peripheral storage devices are those devices used to store or back up useful information. Such
devices can also be used to save work for future use. E.g. diskettes ,flash drive and memory
cards.
PRINTER
This peripheral output device attached to the central processing unit (CPU)to print out processed
information.
TYPES OF PRINTERS
Dot Matrix Printers(DMP)
Daisywheel Printer(DP)
Laser jet Printer (LP).
Dot Matrix Printers (DMP): These are the most popular and cheapest printer. They form each
by a combination of dots usually in a pattern of 8rows by 11 columns. While 7rows by 9
columns are used for the characters, the remaining 1 row and 2 columns are used for spacing
between characters. They are fast, versatile, economical and multi-purpose printers e.g. EPSON
FX 1050. They can print graphics, spreadsheet charts and different types of fonts or characters
that are not necessarily as sharp as those of electronic typewriters.
Daisywheel Printer (DP): These adopt a thimble shaped printing element called Daisywheel to
generate Letter Quality (LQ)
Laser jet Printer (LP): These are high revolution printers that produce typeset quality texts and
graphics .They are essentially based on the same technology as photocopy machines. They are
high quality printers and give high density to produce per inch. E.g. 300 0r 600 per inch.
However, the most recently designed printers are the inkjet and heat sensitive printers
TAPEUNIT
This is also a peripheral storage device designed to provide cheap and reliable back up for vital
information. This is because hard disk a prone to corruption or damage particularly by power
surges. Hence it provides a very convenient remedy to backup large volumes of information e.g.
diskettes.
KEYBOARD
This is one of the unit devices used to send data into the system. There are two types of
keyboard. They are:
21
Computer Science Department (KWASU)
1. Standard keyboard
2. Enhanced keyboard
Introduction
Unlike hardware which refers to the physical parts of the computer that can be touched, software
is the set of intangible instructions that tell the computer what to do. This unit discusses the two
major categories of computer software, namely application and system software, as well as the
types of software in each category.
System Software: These are the software that interact with the computer at a very basic level.
They help the computer to carry out its basic operating functions such as managing files,
interacting with input/output devices, and removing viruses from the computer. Examples of
system software are operating systems, utilities and language translators.
Application Software: These are the software that help users to do real work such as creating
documents, editing photos or tracking finances. Application software do not interact with the
computer directly. Rather, they do so through system software such as operating systems and
utilities.
22
Computer Science Department (KWASU)
Figure 1.0, provides an overview of application software and system software, as well as the
types of software in each category.
23
Computer Science Department (KWASU)
Operating Systems
Software
Language translators
Wordprocessors
Spreadsheet Software
Presentation software
Graphics software
Examples of operating systems for general-purpose computers are Microsoft Windows, Mac OS,
UNIX and Linux. Handheld devices use operating systems such as Windows Mobile OS, iOS
and Android OS.
Utilities
24
Computer Science Department (KWASU)
Language translators are system software that convert high level language programs to machine
language programs which the computer understands. Examples of language translators are:
i. Compilers which translate all instructions in a high level language program to machine
language before executing any instruction.
ii. Interpreters which translate and execute an instruction in a high level language program
before moving to the next instruction.
Word Processors
A word processor is a program for producing documents such as letters, memos, reports and
manuscripts. Word-processing software allow you to create, edit, format and spell-check
documents on the screen before orienting on paper. Examples of word processors are Microsoft
Word and Open Office Writer.
Spreadsheets
A spreadsheet is an arrangement of rows and columns containing values that can be manipulated.
An electronic spreadsheet is a program for working with spreadsheets. Because electronic
spreadsheets allow users to simple or complex formula, they can be used for performing tasks
such as budgeting, tracking finances, calculating loan payments, computing student grades and
estimating project costs. Electronic spreadsheets allow users to display varieties of colorful
graphs. They often support what-if-analysis, for analyzing different scenarios such as “What if I
score B’s in all my courses this semester? But what if I score only C’s?” examples of electronic
spreadsheets are Microsoft Excel and Open Office Calc.
25
Computer Science Department (KWASU)
Presentation Software
Presentation software enable users to combine text, graphs, photos, sound clips and animation
into series of electronic slides. For one-on-one presentations, the slides can viewed on the
monitor. However, group presentations are commonly viewed using a computer projector.
Presentation slides can also be posted on the Internet. Electronic slides can be used by instructors
and students to deliver lecturers and oral presentations. They are also useful for presenting ideas
in meetings and conferences. Examples of common presentation software are Microsoft
PowerPoint and Open Office Impress and Google Presentations.
Graphics Software
Graphics software allow users to create, edit and manipulate graphics. These graphics could be
pictures, images, drawings, icons or photographs. There are different types of graphics software:
i. Paint software help you paint images by providing pens, brushes and paints. They
represent images using bitmap graphics formats such as BMP, PNG, TIF and JPEG.
Examples of paint software are Microsoft Paint and Corel Painter.
ii. Drawing software are designed to for combining lines, shapes and colors into diagrams.
They represent diagrams using vector graphics files such as WMF and EPS. Examples of
drawing software are Adobe Illustrator and Corel DESIGNER.
iii. Photo editing software allow you to enhance poor-quality photos by adjusting
brightness and contrast, cropping out unwanted portions, and so on. A popular example
of photo editing software is Adobe Photoshop.
26
Computer Science Department (KWASU)
MODULE 3
APPLICATION OF COMPUTERS
APPLICATION OF COMPUTERS
Computers have proliferated into various areas of our lives. For a user, computer is a tool that
provides the desired information, whenever needed. You may use computer to get information
about the reservation of tickets (railways, airplanes and cinema halls), books in a library, medical
history of a person, a place in a map, or the dictionary meaning of a word. The information may
be presented to you in the form of text, images, video clips, etc. Some of the application areas of
the computer are listed below—
Education: Computers are extensively used, as a tool and as an aid, for imparting
education. Educators use computers to prepare notes and presentations of their lectures.
Computers are used to develop computer-based training packages, to provide distance
education using the e-learning software, and to conduct online examinations. Researchers use
computers to get easy access to conference and journal details and to get global access to the
research material.
Entertainment Computers have had a major impact on the entertainment industry. The
user can download and view movies, play games, chat, book tickets for cinema halls, use
multimedia for making movies, incorporate visual and sound effects using computers, etc.
The users can also listen to music, download and share music, create music using computers,
etc.
Sports A computer can be used to watch a game, view the scores, improve the game, play
games (like chess, etc.) and create games. They are also used for the purposes of training
players.
27
Computer Science Department (KWASU)
customers can be posted. Computers are also used to create an advertisement using the visual
and the sound effects. For the advertisers, computer is a medium via which the
advertisements can be viewed globally. Web advertising has become a significant factor in
the marketing plans of almost all companies. In fact, the business model of Google is mainly
dependent on web advertising for generating revenues
Medicine Medical researchers and practitioners use computers to access information about
the advances in medical research or to take opinion of doctors globally. The medical history
of patients is stored in the computers. Computers are also an integralpart of various kinds of
sophisticated medical equipment like ultrasound machine, CATscan machine, MRI scan
machine, etc. Computers also provide assistance to the medical surgeons during critical
surgery operations like laparoscopic operations, etc.
Science and Engineering Scientists and engineers use computers for performing complex
scientific calculations, for designing and making drawings (CAD/CAM applications) and
also for simulating and testing the designs. Computers are used for storing the complex data,
performing complex calculations and for visualizing 3– dimensional objects. Complex
scientific applications like the launch of the rockets, space exploration, etc., are not possible
without the computers.
Government The government uses computers to manage its own operations and also for e-
governance. The websites of the different government departments provide information to
the users. Computers are used for the filing of income tax return, paying taxes, online
submission of water and electricity bills, for the access of land record details, etc. The police
department uses computers to search for criminals using fingerprint matching, etc.
Home Computers have now become an integral part of home equipment. At home, people
use computers to play games, to maintain the home accounts, for communicating with friends
and relatives via Internet, for paying bills, for education and learning, etc. Microprocessors
are embedded in house hold utilities like, washing machines, TVs, food processors, home
theatres, security devices, etc. The list of applications of computers is so long that it is not
possible to discuss all of them here. In addition to the applications of the computers discussed
above, computers have also proliferated into areas like banks, investments, stock trading,
28
Computer Science Department (KWASU)
PRACTICE QUESTIONS
1. What did first generation of computers use for circuitry?
2. What is the main technology used in third generation computers
3. Which of the following device was not invented by Babbage?
a: Pascaline
b: Difference Engine
c: Analytical Engine
4. Which part of the computer is used for calculating and comparing?
5. The hard drive is
a:Volatile
b:Non –volatile
c:Both
d:None
6. The hardware that is responsible for processing information and processing instructions
given to is
a:The motherboard
b:The CPU
c:The hard drive
d:The compact disk
7. All the following are widely used input devices except the
a:Keyboard and mouse
b:Microphone and scanner
c:Digital camera and PC camera
d:Printer and monitors
8. Which of the following is/are functions that a mouse CANNOT do?
a:Scrolling
b:Drag and drop
c:Clicking
d:Make a copy of a document
9. A joy stick is primary used to/for
10. The software can best be described as
a:The team of people who used the computer
b:Programmed instruction for the computer perform tasks
c:Computer generated printed output
d:The physical parts of a computer that cannot be seen
11. Abacus is otherwise known as
29
Computer Science Department (KWASU)
30