cs-101 lecture 1 - psau.edu.sa...lecture 1 basics of computers definition &computer generations...

46
Introduction to Computer and Programming CS-101 Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1

Upload: others

Post on 23-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Introduction to Computer and

Programming

CS-101

Lecture 1

Basics of Computers Definition

&Computer Generations

By :

Lecturer : Asad Abd Elrashid

College of Arts and Science

1

Page 2: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Content

2

Definition.

Computer Diagram.

Central Processing Unit(CPU).

Memory Unit (MU).

Page 3: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Definition

• A computer is an electronic machine that can

input, process, store and output a vast amount

of information at an extremely high speed.

(Or)

• A computer is an electronic device that

manipulates information, or data. It has the

ability to store, retrieve, and process data.

Page 4: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Computer Diagram

Page 5: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Central Processing Unit(CPU)

Arithmetic

and Logic Unit

Input Unit

Keyboard, mouse

Arithmetic and Logic

Unit

Output Unit

Printer, Monitor

Control Unit

Memory Unit

Main memory: ROM, RAM Secondary memory: hard disk

Page 6: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Input Unit and Output unit

• Input unit:-Used to enter the data or program

(instructions)

• Output unit:-Output the results or data

Page 7: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Central Processing Unit

CPU:-The data is processed in this unit.

1. Arithmetic and Logic Unit (ALU)

2. Control Unit (CU)

3.Memory Unit (MU)

Page 8: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Arithmetic and Logic Unit (ALU)

• An ALU can do arithmetic operations like

addition (+), subtraction (-), multiplication (*),

division (/).

• It also can do logic operations like true or

false, yes or no.

Page 9: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Control Unit (CU)

• The unit controls and co-ordinates all parts of

computer system.

Page 10: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Memory Unit (MU)

This is the storage device (used to store programs and data) .

Types of memory:

1. Main memory

2. Secondary memory

3. Cache memory

Page 11: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Main memory

Temporary memory because the data is erased.

When the power goes off. (in RAM)

It consists of RAM and ROM

RAM – Random access Memory

ROM – Read only Memory

Page 12: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Secondary memory Permanent memory or back up memory.

It stores a large amount of information for a

long time,

Speed is less than main memory.

Cache memory

High speed memory which placed between the

CPU and the main memory.

Page 13: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

CPU

13

Comprised of :

Control Unit

Retrieves and decodes program instructions

Coordinates activities of all other parts of

computer

Arithmetic & Logic Unit

Hardware optimized for high-speed numeric

calculation

Hardware designed for true/false, yes/no

decisions

Page 14: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

14

Input Unit

Output Unit

Secondary storage Device

Central Processing Unit

Memory Unit

Control Unit

Arithmetic/Logic Unit

Registers

Page 15: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

CPU Operations

15

Add

Subtract

Multiply

Divide

move data from location to location.

Control all processes.

Page 16: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

16

Addresses – Each byte in memory is

identified by a unique number

– address Organized as follows:

– Information is stored in bits or binary digits.

– bit: smallest piece of memory. Has values

(0,off or false), OR (1 = on or true)

– byte: 8 consecutive bits. Bytes have addresses.

– Each cell has its own address that indicate the

location of stored data and instruction.

Page 17: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Main Memory

17

Stores instructions and data that are to processed

by the computer.

• It is volatile.

Main memory is erased when program

terminates or computer is turned off by user

or by any mistake.

• Also called Random Access Memory (RAM)

Page 18: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

18

Page 19: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Secondary Storage

19

Mass storage device.

• Stores instructions and data between Stores

instructions and data between Sessions.

Non-volatile: data retained when program is not

running or computer turned off.

• Comes in a variety of media:

Magnetic: floppy disk, zip disk, hard disk

Optical: CD-ROM, USB – Flash drives, which is

connected to the USB port.

Page 20: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

20

Hard disk

– Fast

– Fixed in the computer and not normally removed

Floppy disk

– Slow

– Easily shared with other computers

Compact disk

– Slower than hard disks

– Easily shared with other computers

– Can be read only or re-writable

Page 21: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Input Devices

21

Devices that send data to the computer from

outside environment.

• Many devices can provide input:

– Keyboard, mouse, scanner, digital camera,

Microphone, disk drives(Hard disk), CD-

ROM,…, etc.

Page 22: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

22

Page 23: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Output Devices

23

Output is information sent from a computer

program to the outside world(User, customers,

company,… ,etc).

• The output is sent to an output device

• Many devices can be used for output:

– Monitor, printer, speakers, Floppy disk, zip

disk drives, Writable CD drives,… etc.

Page 24: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Generations of Computer

24

Page 25: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

The First Generation

of Computers (1948 — 1958)

25

The main features of this generation are:

•Used vacuum tubes for circuitry.

•Used magnetic drums for memory.

•Used machine language to perform operations

•Able to solve one problem at a time.

•Output consisted of punched cards or papers.

Page 26: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Disadvantages of this generation

26

• More costly to operate.

• Big in size.

• Generate lot of heat.

• Heavy air-conditioning is required.

• Less reliable.

• Consume very high power.

• Low storage capacity.

Page 27: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

UNIVAC -1951

(Universal Automatic Computer)

Page 28: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

UNIVAC -1951

•First fully electronic digital computer built in the U.S. •Created at the University of Pennsylvania •ENIAC weighed 30 tons contained 18,000 vacuum tubes •Cost a paltry $487,000

Page 29: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

It is the Bendix G-15 General Purpose

Digital Computer, a First

Generation computer introduced in 1956.

Page 30: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

SECOND GENERATION OF

COMPUTERS

Page 31: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

The Second Generation of

Computers (1959 — 1967)

31

Page 32: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Features of This Generation

32

•Used Assembly language instead of binary

language.

•Later on used High Level Languages like

COBOL, FORTRAN BASIC and PL/I

•More reliable than previous generation.

•Smaller in size as compared to previous

generation.

•Produce less heat when compare with previous

generation.

Page 33: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

33

•Less power consumption than previous

generation.

•High capacity of internal storage.

•Used magnetic core technology.

•Stored instructions in memory.

Page 34: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Disadvantages of this generation

34

•Still require high air-conditioning.

•Input and output devices were very slow.

Page 35: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

The Third Generation of

Computers (1968 — 1973)

35

Page 36: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

36

•First commercial operating system of real time

is introduced.

•Smaller in size when compared to first two

generations.

•Keyboards, Monitors were used

•Higher capacity internal storage.

•Operating system is used to control the

computer and its resources.

•Remote communication facilities made

possible.

Page 37: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

37

• Multiprogramming facilities.

•Used High-Level Language (HLL), like RPG

and Pascal.

•Programs written for one computer were

compatible with others.

•High speed

•Small in size.

•Power consumption is low.

•Weight has decreased.

Page 38: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

The Fourth Generation

of Computers (1974 — 1982)

38

Page 39: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Features of This Generation

39

•Contained entire CPU on a single silicon chip.

•Very much reliable as compared to all previous

generations.

•Magnetic disks became the primary means of

internal storage

•Large internal storage capacity.

•Single chip contains thousands of IC’s.

Page 40: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

40

• The size became very small due to the use of

LSI (Large Scale Integrated) and VLSI (Very

Large Scale Integrated) circuits.

•Less expensive.

•Very fast when compared to all previous

generations.

Page 41: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

The Fifth Generation

of Computers (1982 — Till now)

41

Page 42: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Main features

42

• Automatic programming, computational logic

and pattern recognition.

• Able to execute billions of instructions per

second.

• Easy and natural to use with high intelligence

and natural human input and output

mechanism.

• Reliable and efficient software development

by new languages.

• Improved functions and performance making

computers smaller, faster, lighter and flexible.

Page 43: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

• Less power consumption .

• High performance, lower cost and very compact.

• Computers based on artificial intelligence are

available.

• Portable note book computers introduced .

• Memory chips up to 1 GB, hard disk drives up to 180

GB and optical disks up to 27 GB are available (still

the capacity is increasing) .

Page 44: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Cont..

Fifth generation computing devices, based on artificial intelligence, are still in development, though there are some applications, such as voice recognition, that are being used today. The use of parallel processing and superconductors is helping to make artificial intelligence a reality. Quantum computation and molecular and nanotechnology will radically change the face of computers in years to come. The goal of fifth-generation computing is to develop devices that respond to natural language input and are capable of learning and self-organization.

Page 45: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

challenge

45

1- give an example of Two input device and two

out put device?

2- What is main memory function?

3- how the data stored on memory , draw simple

example?

4-What are Disadvantages of second generation

Page 46: CS-101 Lecture 1 - psau.edu.sa...Lecture 1 Basics of Computers Definition &Computer Generations By : Lecturer : Asad Abd Elrashid College of Arts and Science 1. Content 2 Definition

Thank you for your attention

46

Lecturer : Aasd Abd Elrashid