computer fundamentals and introduction to computing · 2015-09-23 · fundamentals what is...

36
Computer Fundamentals and Introduction to Computing Madhumita Sengupta Indian Institute of Information Technology, Kalyani 1 [email protected]

Upload: others

Post on 22-Apr-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 2: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 3: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 4: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 5: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 6: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

MAJOR PARTS OF THE COMPUTER

INPUT DEVICES

6

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 7: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

CONT....

7

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 8: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

8

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 9: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

PROCESSING DEVICE

9

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 10: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

OUTPUT DEVICES

10

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 11: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

CONT...

11

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 12: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 13: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 14: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

14

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

HARD DISK (LOCAL DISK

Page 15: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

OTHER MEMORY UNITS

15

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 16: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 17: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 18: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 19: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 20: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 21: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 22: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 23: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

PERIPHERAL DEVICES

23

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 24: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

INTERNAL COMPONENTS

24

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 25: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

CONT...

25

ma

dh

um

ita.sn

gp

t@gm

ail.co

m

Page 26: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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…

Page 27: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 28: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 29: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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.

Page 30: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 31: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 32: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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.

Page 33: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 34: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 35: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

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

Page 36: Computer Fundamentals and Introduction to Computing · 2015-09-23 · FUNDAMENTALS What is Computer? - Computer is an advanced electronic device that takes raw data as input from

END

36

ma

dh

um

ita.sn

gp

t@gm

ail.co

m