Introduction To Computer Science
Introduction To Computer Science
computer science.
Identify different application areas of computers.
system.
Explain the computer organization and
architecture.
Explain about the basic concepts of computer
2
In this chapter you will specifically:
Define the discipline computer science.
Define clearly what is term computer.
Identify the characteristics of computer.
Explain the application areas of computer.
Explain History and generation of
computer.
Identify the different type of computer.
3
Introduction to computers
What Computer Science?
It is a science concerned with representation, storage,
manipulation and presentation of information.
computer science uses a special device called
computer.
Sub disciplines(specialization) of computer science:
Software Engineering:- concerned about the development
What is COMPUTER?
• A computer is an electronic device that accepts
data, processes the accepted data, and then
displays the result.
• More accurately, A computer is a machine which
receive an input(data), processes it according to a
predefined program/instruction and then stores it,
and gives an output, i.e. provides the result in
printed or visual form.
7
History of computers
B. Pascal’s calculator
It is the first true mechanical calculator.
It was invented by a French mathematician called Blasé
Pascal in 1642 and its known as Pascaline (Pascal's
calculator)
C. The difference engine
Charles Babbage, a nineteenth century professor at
Cambridge University, is considered to be the father of
modern digital computers.
The important contribution of Babbage’s engine was its
ability to perform computations and print results
automatically.
8
History of computers
In 1842, Babbage comes out with his new idea
of Analytical Engine that was intended to be
completely automatic.
9
History of computers
D. Herman Hollerith's tabulating machine
Herman Hollerith is a statistician in 1880 and
he develop his machine to speed up the
process of census data.
He develops his machine that uses the punched
card.
E. Mark I
Developed by Howard A. at Harvard university
(1944)
which were the first electromechanical
computer.
10
History of computers
F. The ENIAC (Electronic Numerical Integrator
and Calculator)
It was the first general purpose digital computer.
It is very huge occupying 15,000 square feet room and
use 18000 vacuum tubes.
The major drawback was it has to be programmed
manually by setting switches and plugging &
Unplugging cables.
It doesn’t use internally stored memory.
11
History of computers
G. The Von Neumann Machine
Van Neumann forward the stored program.
concept of the ENIAC project.
i.e. It designing the computer to get its
instruction by reading them from memory.
H. Commercial Computers
The 1950s century was the birth of computers
industry with two companies, Spery and IBM, by
demonstrating the market place.
i.e. The development of successful commercial
computer called UNIVACI(Universal
Automatic Computer)
12
History of computers
New Pen Computers
13
History of computers
Continue…
14
History of computers
Continue…
15
Generation of computers
Generation in computer language is a steps in
technology.
We have five generation of computer
The major characteristics that distinguish
these generations of computer are the
following.
Types of electronic circuit element used
Major secondary storage media used
Computer language used.
Types of operating system used
Memory access time (time to store or retrieve a
word of data from memory). 16
Generation of computers
A. First Generation computers (1944-1955)
used vacuum tubes as the principal electronic
components.
punched cards were the main sources of input and
magnetic grams were used for internal storage.
Memory access time was expressed in milliseconds.
Very large in size, slow in performance and expensive
in price.
They uses machine & assembly language.
Most application were scientific calculation.
ENIAC & UNIVACI are examples of 1st generation
computers.
17
Generation of computers
B. Second Generation Computers (1955-1964)
Transistor were the main ckt element.
-Transistors are solid state device made from silicon.
Magnetic tapes were used for main storage media.
Memory access times were expressed in microseconds
Emergence of high-level programming languages, like
FORTRAN, COBOL, & ALGOL. (Easy to write)
Batch operating systems is used that permit rapid
processing of magnetic tape files.
They are much faster than 1st generation computers.
18
Generation of computers
C. Third Generation Computers (1964-1975)
Transistors are replaced by Integrated circuits(IC)
Magnetic disc storage became popular and
provided direct access to very large data files.
Access time in these computers was measured in
nanoseconds (billionths of a second).
Structured programming languages were
introduced :PASCAL and BASIC.
Creation of an independent software industry.
19
Generation of computers
D. Fourth Generation Computers (1975-1989)
ICs are replaced by Large Scale Integration (LSI)
Access time in these computers was measured in
nanoseconds (billionths of a second).
Creation of MICROPROCESSOR. (for PCs).
Spread of high-speed computer networking.
(LAN & WAN)
Several new operating systems were developed,
like MS-DOS, Ms- Windows, and UNIX.
Totally general purpose machines.
20
Generation of computers
E. Fifth Generation computes (1989- Present)
Totally general purpose machines.
Very Large Scale Integration(VLSI) technology and
also Ultra Large Scale Integration (ULSI) emerged.
Larger main memory > = 256 Mb, and hard disk
>= 80 GB are common
Optical disks emerged named as CD-ROMs
Distributed operating system for computer
network.
Portable notebook computers, powerful desktop
PCs, and workstations, powerful servers and
supercomputers
21
Generation of computers
E. Fifth Generation computes (1989- Present)
VLSI technology becomes Ultra Large Scale Integration (ULSI).
Portable notebook computers, powerful desktop PCs, and workstations,
powerful servers and supercomputers
Larger main memory > = 256 Mb, and hard disk >= 80 GB are common
Optical disks emerged named as CD-ROMs
Distributed operating system for computer network.
22
element tube
25
Characteristics of Computer
3. ACCURACY
Computers process vast amount of data in a very high
speed without committing errors
Errors can occur mainly due to humans’ incorrect
input data, and program instructions with a problem.
(often called GIGO).
4. DILIGENCE
Computers are not bored or become tired of
performing many thousands of calculations
repeatedly.
5. VERSATILITY
A computer is capable of performing almost any
task provided that the task can be reduced to a
series of logical steps.
For example, the same computer used for process
payroll can also be used for Design computations
or to track Inventory. 26
Characteristics of Computer
6. DURABILITY and RELIABILITY
Computers are durable and extremely reliable
devices.
They can operate error-free over long periods of
time.
7. LACK of DECISION-MAKING
Computers do not have the capacity to think by
their own.
Their IQ is zero and they had to be told what to
27
Types of Computers
There are different types of Computers. Their difference
is depending on different categories of characteristics.
Classification by the method of operation
(processing)
1.Analog 2. Digital 3. Hybrid
1. Analog Computers
Analog computers operate by measuring.
They deal with continues variables;
They are special purpose computers.
They have limited accuracy.
Examples:
• Thermometer • Voltmeter
• Speedometer
28
Types of Computers
2. Digital Computers
It deal with discrete variables.
They operate by counting rather than measuring.
Examples:
• Abacus
• Desk & pocket computers
• The general purpose computers.
Digital computers have higher accuracy and
speed than the analog ones.
29
Types of Computers
3. Hybrid computers
The best features of analog and digital
computers can be combined into a single
device to form a hybrid computer.
Example:
hospital insensitive (will convert the
patient’s heart function, temp, etc in to
number and supplied to digital comp,)
Gasoline pomp (will convert the flow of
pumped fuel)
30
Types of Computers
Classification by purpose of application
Classified into two(Special & General)
1. Special purpose computers
They are designed to solve a single type of
problem,
Example:
The public telephone box.
Traffic control system .
Ticket machines (used in hotel, super market etc.)
Pocket calculators etc.
Most Analog computers are special purpose
computers.
31
Types of Computers
2. General purpose computers
They are designed to solve variety of problems
through the use of “store program concept”.
The same computer can be applied to solve
another set of problem using different
program.
They are more flexible and versatile.
Example:
Micro computers
Mini computers
Super computers etc.
32
Types of Computers
Classification based on their size, cost and
power of execution
• Supercomputers • Mainframe computers
• Minicomputers • Microcomputers
1.Supercomputers
Supercomputers are the largest, most powerful,
fast, extremely high storage and most expensive
computers.
computing speeds several times faster than
mainframe computers
primarily used for processing complex scientific
applications.
speeds measured in nanoseconds and even in
picoseconds
33
Types of Computers
Some application areas of super computers
Weapons research (Military Industry)
Large simulation in Aerospace & Automobile
industry
Oil exploration in the petroleum industry etc.
2. Main frame computers
Mainframe computers are large computers
frequently used in large organizations like
banks, insurance companies, hospitals, airline
reservation etc,
Needs to process large number of transaction
online and require computer system having
massive data storage and processing power. 34
Types of Computers
They are housed in a controlled and central
location with several user terminal connected to
them.
The main difference between a mainframe and a
35
Types of Computers
3. Minicomputers
They are mainframe having smaller
configuration (small hosts, less storage space
and fewer user terminals)
They are used in small companies.
They can be accessed by more than one user at
mainframe.
They are large and more powerful than micro
computers
36
Types of Computers
4. Microcomputers
Also known as personal computers (pc).
Use Microprocessors inside it.
Generally designed to be used by one person at
37
Types of Computers
Two physical models of PCs are:
Desktop model
Tower model
38
Why we use Computers?
Store and process large amount of
information with high speed and accuracy.
Transmit information across continents
through communication medias.
Perform complex mathematical
computations and make comparisons.
Simulate events;
Monitor ongoing industrial operations;
Perform repetitive processes great ease,
speed, and reliability.
39
The main areas of computer
applications
IN OFFICES: - Type writers are being
replaced by computers.
IN EDUCATION: - Computers are
widely used in educational fields; for
instruction and administration
/Interactive education/
CAL-Computer Aided Learning
CAI-Computer Assisted Instruction
IN LBRARIES
40
IN COMMUNICATION:- Computers
can be used in different ways for
communication purpose between
users. This can include:
- Fax- hard copy - Electronic mail -Internet
IN RESEARCH
IN BUSINESS
IN MANUFACTURING
Computers can be used in production
process, from the design stage to the
manufacturing stage.
CAD- Computer Aided Design
CAM- Computer Aided Manufacturing
41
Application of Computers
42
CHAPTER
TWO
Components of a
Computer System
43
Components of a Computer System
44
Components of a Computer System
A computer system composed of Computer
hardware and Computer software.
Computer Hardware
The physical components which we can touch
and see.
We can further classify the hardware as follows:
Input devices
Central Processing Unit (CPU)
Memory Unit (Primary memory/Main memory) Storage unit
Secondary storage devices
Output devices.
45
Components of a Computer System
1. Input Devices
Input is the process of giving or inserting data
and instructions to the computer system.
Functions of input devices are:
It accepts (read) instructions and data from the
outside world
It converts these instructions and data into
computer acceptable form.
Examples of input devices:-
• Keyboard • Mouse
• Scanner • Light pen
• Microphone • Bar code reader
• Voice synthesizer • Touch Screen etc.
46
Components of a Computer System
48
Components of a Computer System
The Control Unit
Performs all the control functions of the computer.
Fetches the instruction from memory.
Determines the next instruction to be executed by
the computer.
Serves as the computer traffic cope.
The Arithmetic Logical Unit (ALU)
Referred as the computers "number crunchier".
Performs the arithmetic operations (addition,
subtraction, multiplication and division)
Registers: are temporary storage locations for
managing instructions and data as they are being
processed in control & ALU. 49
Components of a Computer System
Memory Unit (Primary Memory)
Directly accessible by the control unit and ALU.
The main memory has two parts.
RAM (Random Access Memory)
ROM (Read only Memory)
RAM is:-Small in storage capacity
- Fast in processing speed
- Volatile
- Expensive in price.
ROM is:-non-volatile
-permanent data storage
50
Components of a Computer System
Secondary storages:
Are non-volatile, they store data and information
permanently,
Are cheap or low in cost,
Operating speed far slower than the primary
storage.
Store large amount of information.
Example : Types of magnetic disks
Floppy disk
Hard disk
Types of optical disks
CD-R
CD-RW
DVD R/RW 51
Components of a Computer System
Output Devices
Output is computer produced text, graphics, or
sound in hard-copy or soft-copy format that can
be used by people.
Output device- is an electromechanical device
that accepts data from a computer and translates
them into a form suitable for use by the user.
Examples of output device are:
-Printers -Monitors (screens)
-Speakers -Plotters ,etc
52
Components of a Computer System
BUS:- is an electrical pathway through which bits
are transmitted between the various computer
components.
There are three buses inside the computer
Address Bus: is a unidirectional bus over which digital
information is transferred to identify either a particular
memory location or particular I/O address.
Data Bus: a bus system which interconnects the CPU,
memory and all the peripheral Input/output devices of a
computer system for the purpose of exchanging data.
Control Bus: a bus used to select and enable an area of
main storage and transmit signals required to regulate
the computer operation.
53
Computer Software Components
Software is a set of instruction or programs that
order the hardware what to do or to do something
Program is a finite set of instructions (steps) that
operational procedures.
It is an essential component of the computer
60
Computer Software Components
i. Single tasking operating systems
With single tasking operating systems only one
program can be run on a computer at a time.
ii. Multi user operating system
It supports a number of work stations connected
to a central system.
A number of users can use the resources of one
high capacity computer by the help of terminals.
iii. Real Time Operating System
A real time is a system that is capable of
processing data so quickly that the results are
available to influence the activity currently taking
place.
61
Computer Software Components
B) Language Software.
Are systems software that serves to write set of
instructions or programs that are required to solve
a problem.
Are software which are used by programmers to
develop application software and translate
programs to machine code.
They provide a set of rules, symbols, and special
words to construct a program.
They serve as editors and translators to develop
programs in a number of programming languages.
Includes:- translators, general purpose routines &
utilities and high level languages
62
Computer Software Components
Translator:- is a program that converts one or
more languages to another language.(3 types)
Assemblers:-is a program that translates
assembly languages into machine code.
Compiler:-is a program that translates a high level
language into machine code.(Pascal, Fortran,
Cobol)
Interpreter:-is a program that translates each
instruction of high level language & executes the
instruction before translating the next instruction.
The general-purpose routine and utilities include
programs which are used to handle file processing,
editing and debugging.
High level language software is a software which
has its own compilers to detect syntax errors of 63
Computer Software Components
Application Software
Is a software that is designed to perform tasks for
the specific areas.
Type of application software
1.Word Processors/ Word processing
It is a computerized typewriter which permits the
electronic creation, editing, formatting, filing and
printing text.
Example:-WordStar, WordPerfect, Microsoft word
2.Spreadsheet (is an electronic worksheet)
Using the programs built-in function you can
perform complicated calculations complex
mathematical problem.
E.g. Lotus 1-2-3,MicrosoftExcel,Quatropro 64
Computer Software Components
3. Database management system.
Allow you to store information on a computer,
67
CHAPTER
three
Data Representation Method
68
Data Representation Method
Objective
To understand how really data
represented, flow, store and processed
inside the computer.
To explain different coding methods
and
To explain units of data representation.
69
Data Representation Method
corresponds to a 0.
In the computer “ON” is represented by the
75
Unit of Data Representation
If the computer memory is 524288 byte, this is
expressed in short by saying 512KB, where KB
stands for kilobyte.
1 Kilobyte (1KB) is 210 or 1024 bytes.
1 Megabyte (MB) is 220 bytes or 210 kilobytes.
1 Gigabyte (GB) is 230 bytes or 220 kilobytes.
Word
A combination of bytes, then form a “word”.
Word refers the number of bits that a computer
process at a time or a transmission media
transmits at a time.
76
Unit of Data Representation
Although bytes can store or transmit information,
the process can even be faster if more than one
byte is processed at a once;
A word can contain one, two, three or four bytes
based on the capacity of the computer.
Word length is usually given in bits.
We say that a computer is an 8-bits, a 16 bit, a 32
bit or a 64 bit computer to indicate that the amount
of data it can process at a time.
When the word length is larger a computer will
became more powerful and faster.
77
What is Numbering System?
78
What is Numbering System?
80
Data communication And Networking
Communication
It is a process of transferring ideas,
information and message b/n entities.
We do have three kinds of communication
81
Communication channel
82
There are three basic elements of communication
1. source(Sender):a device to send data.
2. Media(channel): a communication medium over
which data is sent.
3. Destination(receiver):
sender Encoder
a device to
Transmission receiveDestination
Decoder
the sent
/channel
data.
85
Fundamentals of Computer Networking
What is networking?
A computer network is a collection of
computers and other devices that
communicate to share data, hardware,
software, and other resources.
Benefits of Network Computing
Sharing Information (Or Data)
Sharing Hardware(Peripheral Devices)
Sharing Programs/Software
Centralizing Administration And Support
86
Based on geographical
1. Local Area Network(LAN):
Limited geographical area less than two kilometers.
Inexpensive transition media(coaxial or twisted pairs)
Good for resource sharing.
87
88
89
Common uses of the Internet
E-mail
The concept of sending electronic text
messages between parties.
World wide web (WWW)
Usually called Web.
Globally connected network contains a number
of interactive web pages.
Through keyword-driven Internet search using
search engines, like Google, millions of web
pages have easy & instant access to a vast and
diverse amount of online information.
USENET
It is an electronic discussion forum. 90
Remote access
The Internet allows computer users to connect
to other computers and information stores
easily, wherever they may be across the world.
They may do this with or without the use of
security, authentication and encryption
technologies, depending on the requirements.
File transfer protocol (FTP)
It
helps to transfer files and programs from
one system to another.
Using FTP programs we can upload or
download files. But to do this there should
be an admission from the remote computer.
91
File sharing
A computer file can be E-mailed to customers,
colleagues and friends as an attachment.
It can be uploaded to a Web site, FTP server or
Shared location for easily download by the
others.
Video Conferencing
Video conferencing means making a
conference on the Internet by individuals who
live in different locations.
This takes place at the same time in different
location.
It is similar to conference in a hall except they
are at distant.
92
Search Engine (E.g. Yahoo, Google… )
It is an information retrieval system designed
to help find information stored on different
computer through the World Wide Web.
The search engine allows one to ask for
93
Chapter 5
94
Chapter 5
Computer security is a branch of computer technology known as
information security as applied to computers and networks.
95
Chapter 5
Computer Information and Data Security
It is important to avoid data and information loss in case of hard disk
crashes.
The only solution is to regularly keep backups of all the data on other
media such as magnetic tapes, CD-ROM, etc.
96
Chapter 5
Computer Information and Data Security
In case a backup media is not affordable, one should try and store the
files on at least two different media devices.
Abuse and misuse of sensitive system and application programs and data such as
password, inventory, financial, engineering, and personnel files can be detected by
these systems
4)Firewalls: Software placed between the networked computers and protects the
networked computers. The firewall examines, filters, and reports on all information
passing through the network to ensure its appropriateness.
5)Passwords
6)Backup
7)Encryption
99
Chapter 5
Computer system security threats
A computer system can be exposed to risk of security threats. These
security threats can be of different types.
The following are the major threats which can disrupt security in a
computer system.
Trojan Horse
Viruses
Worms
Trojan Ho
10
0
Computer Virus
another when:-
A user sends it over the network,
A user carry it on a removable medium
such as a floppy disk, CD, or USB drive.
viruses can spread to other computers by
10
1
10
2
Virus prevention
Purchase an anti virus program that runs as
you boot or work your computer and update it
frequently.
Execute only programs of which you are
suspicious.
10
3
Virus removal
One possibility on Windows XP is a tool
known as System Restore, which restores
the registry and critical system files to a
previous checkpoint.
There are so many anti-virus software in
10
4
Backup
In information technology, a backup or the process of backing up refers to
making copies of data so that these additional copies may be used to restore
the original after a data loss event.
These additional copies are typically called "backups." The verb is back up
in two words, whereas the noun is backup (often used like an adjective in
compound nouns).
Backups are useful primarily for two purposes. The first is to restore a state
following a disaster (called disaster recovery).
The second is to restore small numbers of files after they have been
accidentally deleted or corrupted. Data loss is also very common. 66% of
internet users have suffered from serious data loss.
10
5
Backup
In information technology, a backup or the process of backing up refers to
making copies of data so that these additional copies may be used to restore
the original after a data loss event.
These additional copies are typically called "backups." The verb is back up
in two words, whereas the noun is backup (often used like an adjective in
compound nouns).
Backups are useful primarily for two purposes. The first is to restore a state
following a disaster (called disaster recovery).
The second is to restore small numbers of files after they have been
accidentally deleted or corrupted. Data loss is also very common. 66% of
internet users have suffered from serious data loss.
10
6
Encryption
a process of converting messages or data into a form that
cannot be read without decrypting or deciphering it.
The root of the word encryption—crypt—comes from the
Greek word kryptos, meaning “hidden” or “secret.”
10
7
Thank you !
10
8