computer fundamentals and introduction to computing · 2015-09-23 · fundamentals what is...
TRANSCRIPT
Computer Fundamentals and
Introduction to Computing
Madhumita Sengupta
Indian Institute of Information
Technology, Kalyani
1
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
TOPICS Fundamental
Number system & Codes Positional & non positional
Binary, octal, hexadecimal number system
Conversion, representation of negative numbers & real numbers.
Fixed and floating point numbers.
Arithmetic & Logic Gates
Half/Full adder
Subtraction through adder
C Language
Arrays,
Pointer,
Functions
Files and streams
2
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
COMPUTER FUNDAMENTALS
Fundamentals
Number System
Conversion’s
1’s Complement & 2’s Complement
Binary Codes
Logic Gates
Boolean Algebra
Adder
3
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
FUNDAMENTALS
What is Computer?
- Computer is an advanced electronic device that takes raw data as
input from the user and processes these data under the control of
set of instructions (called program) and gives the result (output)
and saves output for the future use. It can process both numerical
and non-numerical (arithmetic and logical) calculations.
A computer has four functions:
a. accepts data - Input
b. processes data - Processing
c. produces output - Output
d. stores results- Storage
4
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
FUNDAMENTALS
Computer System ?
COMPUTER SYSTEM = HARDWARE + SOFTWARE+
USER
Hardware
Internal Devices + Peripheral Devices
Input + Output
5
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
MAJOR PARTS OF THE COMPUTER
INPUT DEVICES
6
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
CONT....
7
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
8
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
PROCESSING DEVICE
9
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
OUTPUT DEVICES
10
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
CONT...
11
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
STORAGE DEVICES
1. Primary memory (main memory)
A. RAM (Random Access Memory/Read-Write Memory)
B. B. ROM (Read-only-memory)
12
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
SECONDARY MEMORY (STORAGE DEVICES)
A. Hard Disk (Local Disk)
B. Optical Disks: CD-R, CD-RW, DVD-R, DVD-RW
C. Pen Drive
D. Zip Drive
E. Floppy Disks
F. Memory Cards
G. External Hard Disk
13
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
14
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
HARD DISK (LOCAL DISK
OTHER MEMORY UNITS
15
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
MEMORY HIERARCHY
Magnetic Tape
Optical disk
Hard disk
Primary memory
Level 3 cache
Level 2 cache
Level 1 cache
CUP registers
16
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
Less Expensive
More access time
Bigger in size
MEMORY REPRESENTATION
0 or 1 bit
8 bits 1 Byte
1024 Bytes 1 KB
1024 KB 1 MB
1024 MB 1 GB
1024 GB 1 TB (terabytes, trillion bytes)
1024 TB 1 PB (Petabyte)
1024 PB 1 EB (Exabyte)
1024 EB 1 ZB (Zettabyte)
17
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
MEMORY REPRESENTATION FLOPPY
The storage capacity of a 3.5 inch floppy with double side can be calculated as:
Storage Capacity = No. of recording surface * No. of tracks per surface * No of sectors per track * No. of bytes per sector
Let have 80 tracks, 18 sector/track and can store 512 bytes/sector.
= 2 * 80 * 18 *512 bytes
= 14,74,560 bytes
=1.44 MB 18
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
MEMORY REPRESENTATION MAGNETIC TAPE
Storage Capacity of Magnetic Tap:
= Data recording density * Length of the tap
Here :
Data recording density the amount of data that can
be stored on a given length
of tape. In bytes per inch
(bpi).
19
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
MEMORY REPRESENTATION HARD DISK
The storage capacity of a hard disk with multiple
recording surface can be calculated as:
Storage Capacity :
= No. of recording surface *
No. of tracks per surface *
No of sectors per track *
No. of bytes per sector
20
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
QUESTION?
A hard disk has 10 disk plates, 2000 tracks per
surface, 125 sectors pr track, and 512 bytes of
data can be stored per sector. Using this
information, calculate the storage capacity of the
disk.
Note: The disk has 10 plates, which means 20
recording surface. However, in a double-sided
disk, the upper surface of the first disk and the
lower surface of the last disk are normally not
used for recording data because theses surfaces
may be scratched easily. 21
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
SOLUTION:
Therefore,
Storage capacity = 18 x 2000 x 125 x 512
= 2,30,40,00,000 bytes
= 2 x 109 bytes
= 2 GB
22
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
PERIPHERAL DEVICES
23
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
INTERNAL COMPONENTS
24
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
CONT...
25
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
SOFTWARE
Software, simply are the computer programs. The
instructions given to the computer in the form of a
program is called Software. Software is the set of
programs, which are used for different purposes. All the
programs used in computer to perform specific task is
called Software.
26
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
Types of software
a) Operating System Software
DOS, Windows XP, Windows Vista, Unix/Linux, MAC/OS X etc.
b) Utility Software
Windows Explorer (File/Folder Management), Windows Media
Player, Anti-Virus Utilities, Disk Defragmentation, Disk Clean,
BackUp, WinZip, WinRAR etc…
2. Application software:
a) Package Software
Ms. Office 2003, Ms. Office 2007, Macromedia
(Dreamweaver, Flash, Freehand), Adobe (PageMaker,
PhotoShop)
b) Tailored or Custom Software
SAGE (Accounting), Galileo/Worldspan (Travel) etc.
3. Computer Languages & Scripting:
a) Low Level Language
i) Machine Level Language
ii) Assembly Language
b) High Level Language
COBOL (COmmon Business Oriented Language), FORTRAN
(FORmula TRANslation), BASIC (Beginner's All-purpose
Symbolic Instruction Code), C, C++ etc. are the examples of
High Level Language. 27
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
TYPES OF COMPUTER
On the basis of working principle
a) Analog Computer
An analog computer (spelt analogue in British
English) is a form of computer that uses continuous
physical phenomena such as electrical, mechanical,
or hydraulic quantities to model the problem being
solved.
28
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
CONT...
29
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
b) Digital Computer
A computer that performs calculations and logical
operations with quantities represented as digits,
usually in the binary number system.
CONT...
c) Hybrid Computer (Analog + Digital)
A combination of computers those are capable of
inputting and outputting in both digital and analog
signals. A hybrid computer system setup offers a
cost effective method of performing complex
simulations.
30
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
ON THE BASIS OF SIZE
a) Super Computer
The fastest type of computer. Supercomputers are very
expensive and are employed for specialized applications that
require immense amounts of mathematical calculations. For
example, weather forecasting requires a supercomputer.
Other uses of supercomputers include animated graphics, fluid
dynamic calculations, nuclear energy research, and
petroleum exploration.
31
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
b) Mainframe Computer
c) Mini Computer
d) Micro Computer
i. Desktop Computer
ii. Laptop Computer
iii. Palmtop Computer
iv. Digital Diary
v. Notebook /PDAs
e) Workstations
BOOTING
The process of loading the system files of the
operating system from the disk into the computer
memory to complete the circuitry requirement of the
computer system is called booting. The system files
of MS. DOS are:
32
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
Types of Booting:
There are two types of booting:
1. Cold Booting: If the computer is in off state and we boot the
computer by pressing the power switch ‘ON’ from the CPU box
then it is called as cold booting.
2. Warm Booting: If the computer is already ‘ON’ and we restart it
by pressing the ‘RESET’ button from the CPU box or CTRL,
ALT and DEL key simultaneously from the keyboard then it is
called warm booting.
QUIZ
1. Which one is not an output device?
o Printer
o Monitor
o Keyboard
o Modem
2. Which one works as an output and input device?
o Modem
o Scanner
o Mouse
o Monitor
3. All computers must have:
o Word processing software
o An operating system
o A printer attached
o A virus checking program
33
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
QUIZ
4. The brain of the computer is called:
o Random Access Memory or RAM
o Central Processing Unit or CPU
o Read Only Memory or ROM
o BIOS
5. An operating system is:
o Integrated software
o CD-ROM software
o Application software
o System software
6. Software is:
o A computer program
o A set of instructions
o All of the above
o none of the above 34
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
QUIZ
7. One MB is equal to:
o The amount of RAM in every computer
o 1 billion bytes
o 1024KB
o 1 thousand bytes
8. The resolution of a printer is measured in:
o Megabits
o Hz
o Dots per inch (DPI)
o Inches (diagonal)
9. A computer port is used to:
o Communicate with other computer peripherals
o Download files from the web
o Communicate with all hard drives
o Connect computers together
35
ma
dh
um
ita.sn
gp
t@gm
ail.co
m
END
36
ma
dh
um
ita.sn
gp
t@gm
ail.co
m