SlideShare a Scribd company logo
1
Computer Hard wareComputer Hard ware
Presentation By: Shehrevar Davierwala
Visit: http://www.authorstream.com/shehrevard
http://www.slideshare.net/shehrevard
http://sites.google.com/sites/techwizardin
• A computer performs basically five
major operations :
1. it accepts data or instructions by any way
of input,
2. it stores data,
3. it can process data as required by the
user,
4. it gives results in the form of output, and
5. it controls all operations inside a computer
2
Computer Hardware
• Refers to the physical components
• Not one device but a system of many devices
• Major types of components include:
– Central Processing Unit
– Main memory
– Secondary storage devices
– Input devices
– Output devices
Slide 1-3
Organization of a Computer
System
Slide 1-4
Central
Processing
Unit
Main
Memory
Input
Device
Output
Device
Secondary
Storage
The CPU
• Fetches instructions from main memory
• Carries out the operations commanded by the
instructions
• Each instruction produces some outcome
• A program is an entire sequence of instructions
• Instructions are stored as binary numbers
• Binary number - a sequence of 1’s and 0’s
Slide 1-5
Main Memory
• Commonly known as random access memory,
or just RAM
• Holds instructions and data needed for
programs that are currently running
• RAM is usually a volatile type of memory
• Contents of RAM are lost when power is
turned off
Slide 1-6
Secondary Storage
• A nonvolatile storage medium
• Contents retained while power is off
• Hard disk drives are most common
– Records data magnetically on a circular disk
– Provides fast access to large amounts of data
• Optical devices store data on CD’s as pits
• USB flash memory devices
– High capacity device plugs into USB port
– Portable, reliable, and fits easily in a pocket
Slide 1-7
Input Devices
• Any type of device that provides data to a
computer from the outside world
• For example:
– Keyboard
– Mouse
– Scanner
Slide 1-8
Output Devices
• Any type of device that provides data from a
computer to the outside world
• Examples of output data:
– A printed report
– An image such as a picture
– A sound
• Common output devices include:
– Monitor (display screen)
– Printer
Slide 1-9
Knowing About: Computer Hardware
• Evolution of hardware
– 1950s: all hardware units were built using relays and vacuum tubes
– 1960s: introduction of transistors
– mid-1960s: introduction of integrated circuits (ICs)
– Present computers: use of microprocessors
• Bit: smallest and most basic data item in a computer; represents a 0 or a 1
• Byte: a grouping of eight bits
– E.g., 00010001
– What does this represent?
• Word: a grouping of one or more bytes
Slide 1-10
(Low-Level) Languages
• Low-level languages
– First-generation and second-generation languages
– Machine-dependent languages
– The underlying representation the machine actually understands
• First-generation languages
– Also referred to as machine languages
– Consist of a sequence of instructions represented as binary
numbers
– E.g.: Code to ADD might be 1001 . To add 1+0 and then 1+1
our program might look like this:
• 1001 0001 0000
• 1001 0001 0001
Slide 1-11
(Low-Level) Languages
• Second-generation languages
– Also referred to as assembly languages
– Abbreviated words are used to indicate operations
– Allow the use of decimal numbers and labels to indicate
the location of the data
• Assemblers
– Programs that translate assembly language programs into
machine language programs
– Our add program now looks like:
• ADD 1,0
• ADD 1,1
Slide 1-12
1001
0001
0000
1001
0001
0001
Assembler
(High-Level) Languages
• High-level languages
– Third-generation and fourth-generation languages
– Programs can be translated to run on a variety of computer
types
• Third-generation languages
– Procedure-oriented languages
– Object-oriented languages
• Our Add program might now look like:
sum = value1 + value2
Slide 1-13
1001
0001
0000
1001
0001
0001
Compiler
Third-Generation and Fourth-
Generation (High-Level) Languages
(Continued)
Slide 1-14
The Evolution of
Programming Languages
Third-Generation and Fourth-
Generation (High-Level) Languages
• Procedure-oriented languages
– Programmers concentrate on the procedures used in
the program
– Procedure: a logically consistent set of instructions
which is used to produce one specific result
• Object-oriented languages
– Items are represented using self-contained objects
– Often used for graphical windows environments,
ability to re-use code efficiently
Slide 1-15
1- Input units
• This units are used for the process of entering
data and programs in to the computer system.
• The input unit takes data from us to the
computer in an organized manner for
Processing.
• Examples of input units : Mouse, Modem,
Keyboard, Net card, Camera, microphone, CD,
DVD,HD
16
2. Storage
• The process of saving data and instructions
permanently is known as storage.
• All data and instructions are stored before
and after processing
• Intermediate results of processing are also
stored here.
17
CPU ComponentsCPU Components
• Two typical components of a CPU are:
• The arithmetic logic unit (ALU), which
performs arithmetic and logical operations.
• The control unit (CU), which extracts
instructions from memory and decodes and
executes them, calling on the ALU when
necessary.
18
ALU
• The actual processing of the data and
instruction are performed by Arithmetic Logical
Unit
• The major operations performed by the ALU
are addition, subtraction, multiplication,
division, logic and comparison.
• Data is transferred to ALU from storage unit
when required
19
Control Unit (CU)
• The Control Unit acts like the supervisor
• It extracts instructions from memory and decodes
and executes them, and sends the necessary signals
to the ALU to perform the operation needed.
• The control unit determines the sequence in which
computer programs and instructions are executed.
• Processing of programs stored in the main
memory, interpretation of the instructions and
issuing of signals for other units of the computer to
execute them. 20
4- Output Units4- Output Units
This is the process of producing results from
the data for getting useful information.
The output is also stored inside the computer
for further processing.
Examples of output units: Screen, printers,
plotters, net card,..
21
Physical computer components
• 1. Central Processing Unit (CPU)
• 2. Computer Memory (RAM and ROM)
• 3. Data bus 4. Ports
• 5. Motherboard 6. Hard disk
• 7. Output Devices
• 8. Input Devices
22
MEMORY
• There are two kinds of computer memory: primary
and secondary.
• Primary memory is accessible directly by the
processing unit.
• RAM (Random access memory) is an example of
primary memory
• As soon as the computer is switched off the contents
of RAM is lost.
• You can store and retrieve data much faster with
primary memory compared to secondary memory
23
• Secondary memory such as floppy
disks ,hard magnetic disk, etc., is located
inside and outside the computer.
• Primary memory is more expensive than
secondary memory.
• The size of primary memory is less than
that of secondary memory.
• Primary memory is faster than secondary
memory.
24
Memory is used to store:
• i) instructions to execute a program and
• ii) data. When the computer is doing
any job, the data that have to be
processed are stored in the primary
memory. This data may come from an
input device like keyboard or from a
secondary storage device like a floppy
disk.
25
• In computer’s memory both programs and data are
stored in the binary form
• The binary system has only two values (bits ) 0
and 1.
• Each of RAM’s locations stores one byte ) 8 bits)
• (1 kilobyte is 1024 bytes)
• (1Megabyte is 1024 kilobytes)
• (1 terabyte is 1024 megabytes)
• Thus 64 kilobyte (KB) memory is capable of
storing
64 X 1024 = 32,767 bytes 26
Capacity of Primary MemoryCapacity of Primary Memory
• Each cell of memory contains one character
or 1 byte of data
• Primary storage is referred to as random
access memory (RAM) because it is
possible to randomly select and use any
location of the memory directly store and
retrieve data. It takes same time to any
address of the memory as the first address.
• It is also called read/write memory
27
• The storage of data and instructions inside the
primary storage is temporary.
• It disappears from RAM as soon as the power
to the computer is switched off.
• The memories, which loose their content on
failure of power supply, are known as volatile
memories
28
Read Only Memory (ROM)
• There is another memory in computer, which is
called Read Only Memory (ROM).
• The storage of program and data in the ROM is
permanent.
• The ROM stores some standard processing
programs supplied by the manufacturers to
operate the computer.
• The ROM can only be read by the CPU but it
cannot be changed.
29
• The basic input/output program is stored in
the ROM that examines and initializes
various equipment attached to the PC
when the switch is made ON.
• The memories, which do not loose their
content on failure of power supply, are
known as non-volatile memories.
• ROM is non-volatile memory.
30
• PROM is another type of primary memory in
computer, which is called Programmable Read
Only Memory (PROM).
• You know that it is not possible to modify or
erase programs stored in ROM, but it is possible
for you to store your program in PROM chip.
Once the programmes are written it cannot be
changed and remain intact even if power is
switched off.
• Programs or instructions written in PROM or
ROM cannot be erased or changed.
31
• EPROM: Erasable Programmable Read Only
Memory, which over come the problem of
PROM & ROM.
• EPROM chip can be programmed time and
again by erasing the information stored earlier
in it.
• When the EPROM is in use information can
only be read.
32
Cache Memory
• The speed of CPU is extremely high compared to
the access time of main memory.
• Therefore the performance of CPU decreases due to
the slow speed of main memory.
• Cache Memory is a small memory chip is attached
between CPU and Main memory whose access time
is very close to the processing speed of CPU.
• CACHE memories are accessed much faster than
conventional RAM. It is used to store programs or
data currently being executed or temporary data
33
Registers:
• The CPU processes data and instructions with high
speed, there is also movement of data between
various units of computer.
• It is necessary to transfer the processed data with
high speed.
• So the computer uses a number of special memory
units called registers.
• They are not part of the main memory but they
store data or information temporarily and pass it
on as directed by the control unit. 34
auxiliary memoryauxiliary memory oror secondary storagesecondary storage
• 1-Hard Disk, in computer science, one or more
inflexible platters coated with material that allows
the magnetic recording of computer data.
• Hard disks provide faster access to data than
floppy disks and are capable of storing much
more information. Because platters are rigid, they
can be stacked so that one hard-disk drive can
access more than one platter.
• Most hard disks have from two to eight platters.
35
• Magnetic Tape: Magnetic tapes are used for
large computers like mainframe computers
where large volume of data is stored for a
longer time
• Floppy Disk: It is similar to magnetic disk
discussed above. They are 5.25 inch or 3.5
inch in diameter. They come in single or
double density and recorded on one or both
surface of the diskette. The capacity of a 5.25-
inch floppy is 1.2 mega bytes whereas for 3.5
inch floppy it is 1.44 mega bytes.
36
• floppy disk
* small magnetic data storage disk: a small
flexible magnetically coated disk in a rigid
plastic case on which data can be stored or
retrieved by a computer
* a regular floppy disk holds approximately
1.44 megabytes.
37
CD- ROM
• CD-ROM, short for compact disc read-only memory,
a rigid plastic disk that stores a large amount of data
through the use of laser optics technology.
• Because they store data optically, CD-ROMs have a
much higher memory capacity than computer disks
that store data magnetically.
• However, CD-ROM drives, the devices used to
access information on CD-ROMs, can only read
information from the disc, not write to it.
• CD-ROMs can store large amounts of data and so are
popular for storing databases and multimedia
material. The most common format of CD-ROM
holds approximately 630 megabytes .
38
INPUT OUTPUT DEVICES
• When you work with the computer you feed your
data and instructions through some devices to the
computer. These devices are called Input devices.
• Input Devices: Keyboard, Mouse, Scanner,
Optical Character Recognition (OCR)
• Output Devices
• Visual Display Unit: The most popular
input/output device is the Visual Display Unit
(VDU). It is also called the monitor
39
• Terminals: It is a very popular interactive
input-output unit.
• It can be divided into two types: hard copy
terminals and soft copy terminals. A hard copy
terminal provides a printout on paper whereas
soft copy terminals provide visual copy on
monitor.
• A terminal when connected to a CPU sends
instructions directly to the computer.
40
Printer
• It is an important output device which can
be used to get a printed copy of the
processed text or result on paper.
• There are different types of printers that
are designed for different types of
applications.
• Depending on their speed and approach of
printing, printers are classified as impact
and non-impact printers.
41
• Impact printers use the familiar typewriter
approach of hammering a typeface against the
paper and inked ribbon.
• Dot-matrix printers are of this type.
• Non-impact printers do not hit or impact a
ribbon to print.
• They use electro-static chemicals and ink-jet
technologies.
• Laser printers and Ink-jet printers are of this
type.
• This type of printers can produce color printing
and elaborate graphics.
42

More Related Content

PPT
Hardware and Software Basics With Dr. Poirot
PPS
Power Point Lesson 03
PPS
Power Point Lesson 04
PPTX
Components of computer
PPTX
Computer Fundamentals
PPTX
Fundamental of computer
PPTX
Day 2 hardware & software
PPT
Components of a computer system
Hardware and Software Basics With Dr. Poirot
Power Point Lesson 03
Power Point Lesson 04
Components of computer
Computer Fundamentals
Fundamental of computer
Day 2 hardware & software
Components of a computer system

What's hot (18)

PPTX
Overview of computer
PPTX
Computer System Overview,
PPT
Chapter 1 computer hardware and flow of information
DOC
COMPONENTS OF COMPUTER SYSTEM UNIT
PPTX
Various types of Hardware and Software
PPSX
Computer fundamentals
PPT
Basic computer fundamentals
PPTX
Introduction to Computer System
PPTX
Fundamentals of Computer
PPTX
Computer program, computer languages, computer software
PPS
NI221 - Fundamentals of Computer
PPT
Software and hardware presentation
PDF
Computer Software
PPTX
What is Software? Relationship between Hardware & Software. Purposes of Software
PPT
Intro ch 01_b
PPT
Computer basics and i.o devices
PPT
Computer Hardware and Software Elements
PPT
Introduction To Computer Systems
Overview of computer
Computer System Overview,
Chapter 1 computer hardware and flow of information
COMPONENTS OF COMPUTER SYSTEM UNIT
Various types of Hardware and Software
Computer fundamentals
Basic computer fundamentals
Introduction to Computer System
Fundamentals of Computer
Computer program, computer languages, computer software
NI221 - Fundamentals of Computer
Software and hardware presentation
Computer Software
What is Software? Relationship between Hardware & Software. Purposes of Software
Intro ch 01_b
Computer basics and i.o devices
Computer Hardware and Software Elements
Introduction To Computer Systems
Ad

Viewers also liked (20)

PPT
Basics of c
PPTX
Software y hardware
PDF
Enter center c++ oop chapter 2
PDF
Software and hardware
PPTX
Computer Details Of Software And Hardware
PPTX
Hardware y software
PPT
Introduction to computer hardware
PDF
សៀវភៅគន្លឹះរកលុយតាម Internet (ភាសាខ្មែរ)pdf
PDF
Um guia para resolver problemas e interpretar espectros em espectrometria de ...
ODP
Hardware & Software
PPT
Hardware And Software
PPT
Intro To Hardware And Software
PPTX
Hardware y software
PDF
Hardware & software
PPTX
Computers Hardware and Software ( Modern Technology)
PDF
Strategies for Effective Hardware and Software Asset Management
PPT
Computer System
PPTX
Hardware Software Codesign
PPT
Hardware & Software
Basics of c
Software y hardware
Enter center c++ oop chapter 2
Software and hardware
Computer Details Of Software And Hardware
Hardware y software
Introduction to computer hardware
សៀវភៅគន្លឹះរកលុយតាម Internet (ភាសាខ្មែរ)pdf
Um guia para resolver problemas e interpretar espectros em espectrometria de ...
Hardware & Software
Hardware And Software
Intro To Hardware And Software
Hardware y software
Hardware & software
Computers Hardware and Software ( Modern Technology)
Strategies for Effective Hardware and Software Asset Management
Computer System
Hardware Software Codesign
Hardware & Software
Ad

Similar to Comp hardware Introduction (20)

PPTX
computer-2-Computer-System-1-1.pptxbvghghbbv
PPT
Co module1a introdctnaddressingmodes
PPTX
03 - Inside Comupters.pptx
PPTX
Chapter 1 computers
PDF
Week 01.pdf
PPT
An overview of the computer system
PPT
Introduction to Computer.ppt
PPT
computer networking
PPTX
Hardware and software of computer
PPT
Chapter1 introduction to computer systems
PPT
Fundamentals of Computers
DOCX
1. Intro to Computer and OPERATING SYSTEM.docx
PPT
5120224.ppt
PPTX
pre phd class 1.pptx
PPTX
Organization of modern digital computers
PDF
CPE UNIT I.pdf c Programming for engineers
PPT
Von Neumann Architecture
PDF
FastTrack of OS - OneDay(6H) - May 2022_Ver 1.pdf
PPTX
Chapter 02 system unit csc & tts
PDF
Unit 1 computing fundamental 2013
computer-2-Computer-System-1-1.pptxbvghghbbv
Co module1a introdctnaddressingmodes
03 - Inside Comupters.pptx
Chapter 1 computers
Week 01.pdf
An overview of the computer system
Introduction to Computer.ppt
computer networking
Hardware and software of computer
Chapter1 introduction to computer systems
Fundamentals of Computers
1. Intro to Computer and OPERATING SYSTEM.docx
5120224.ppt
pre phd class 1.pptx
Organization of modern digital computers
CPE UNIT I.pdf c Programming for engineers
Von Neumann Architecture
FastTrack of OS - OneDay(6H) - May 2022_Ver 1.pdf
Chapter 02 system unit csc & tts
Unit 1 computing fundamental 2013

More from Shehrevar Davierwala (20)

PDF
Introduction_Swift
PPTX
PsudoCode.pptx
PPTX
Number System.pptx
PPTX
Java Script (Module 1).pptx
PPTX
Website in Clicks Day 2
PPTX
Develop Website in Clicks
PPTX
Build Virtual Assistant Using AI
PPTX
Build brand reputation using facebook
PPTX
Digital Marketing Session 2
PPTX
Learn Digital Marketing : 0 to Hero Day 1
DOC
Standard template
PPT
Digital Marketing for Sustainable Business - Afghan Perspective
PPT
Developing stunning website in clicks - 2
PPT
Developing stunning website in clicks
PPTX
Google forms for data analysis
PPT
Webdesign session1
PPT
Tech talk webtech
PPT
Tech talk php_cms
PPT
PPT
Introduction_Swift
PsudoCode.pptx
Number System.pptx
Java Script (Module 1).pptx
Website in Clicks Day 2
Develop Website in Clicks
Build Virtual Assistant Using AI
Build brand reputation using facebook
Digital Marketing Session 2
Learn Digital Marketing : 0 to Hero Day 1
Standard template
Digital Marketing for Sustainable Business - Afghan Perspective
Developing stunning website in clicks - 2
Developing stunning website in clicks
Google forms for data analysis
Webdesign session1
Tech talk webtech
Tech talk php_cms

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
RMMM.pdf make it easy to upload and study
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
master seminar digital applications in india
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Business Ethics Teaching Materials for college
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
O5-L3 Freight Transport Ops (International) V1.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
RMMM.pdf make it easy to upload and study
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
STATICS OF THE RIGID BODIES Hibbelers.pdf
Supply Chain Operations Speaking Notes -ICLT Program
master seminar digital applications in india
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Classroom Observation Tools for Teachers
Renaissance Architecture: A Journey from Faith to Humanism
TR - Agricultural Crops Production NC III.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Microbial diseases, their pathogenesis and prophylaxis
Abdominal Access Techniques with Prof. Dr. R K Mishra
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Business Ethics Teaching Materials for college
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India

Comp hardware Introduction

  • 1. 1 Computer Hard wareComputer Hard ware Presentation By: Shehrevar Davierwala Visit: http://www.authorstream.com/shehrevard http://www.slideshare.net/shehrevard http://sites.google.com/sites/techwizardin
  • 2. • A computer performs basically five major operations : 1. it accepts data or instructions by any way of input, 2. it stores data, 3. it can process data as required by the user, 4. it gives results in the form of output, and 5. it controls all operations inside a computer 2
  • 3. Computer Hardware • Refers to the physical components • Not one device but a system of many devices • Major types of components include: – Central Processing Unit – Main memory – Secondary storage devices – Input devices – Output devices Slide 1-3
  • 4. Organization of a Computer System Slide 1-4 Central Processing Unit Main Memory Input Device Output Device Secondary Storage
  • 5. The CPU • Fetches instructions from main memory • Carries out the operations commanded by the instructions • Each instruction produces some outcome • A program is an entire sequence of instructions • Instructions are stored as binary numbers • Binary number - a sequence of 1’s and 0’s Slide 1-5
  • 6. Main Memory • Commonly known as random access memory, or just RAM • Holds instructions and data needed for programs that are currently running • RAM is usually a volatile type of memory • Contents of RAM are lost when power is turned off Slide 1-6
  • 7. Secondary Storage • A nonvolatile storage medium • Contents retained while power is off • Hard disk drives are most common – Records data magnetically on a circular disk – Provides fast access to large amounts of data • Optical devices store data on CD’s as pits • USB flash memory devices – High capacity device plugs into USB port – Portable, reliable, and fits easily in a pocket Slide 1-7
  • 8. Input Devices • Any type of device that provides data to a computer from the outside world • For example: – Keyboard – Mouse – Scanner Slide 1-8
  • 9. Output Devices • Any type of device that provides data from a computer to the outside world • Examples of output data: – A printed report – An image such as a picture – A sound • Common output devices include: – Monitor (display screen) – Printer Slide 1-9
  • 10. Knowing About: Computer Hardware • Evolution of hardware – 1950s: all hardware units were built using relays and vacuum tubes – 1960s: introduction of transistors – mid-1960s: introduction of integrated circuits (ICs) – Present computers: use of microprocessors • Bit: smallest and most basic data item in a computer; represents a 0 or a 1 • Byte: a grouping of eight bits – E.g., 00010001 – What does this represent? • Word: a grouping of one or more bytes Slide 1-10
  • 11. (Low-Level) Languages • Low-level languages – First-generation and second-generation languages – Machine-dependent languages – The underlying representation the machine actually understands • First-generation languages – Also referred to as machine languages – Consist of a sequence of instructions represented as binary numbers – E.g.: Code to ADD might be 1001 . To add 1+0 and then 1+1 our program might look like this: • 1001 0001 0000 • 1001 0001 0001 Slide 1-11
  • 12. (Low-Level) Languages • Second-generation languages – Also referred to as assembly languages – Abbreviated words are used to indicate operations – Allow the use of decimal numbers and labels to indicate the location of the data • Assemblers – Programs that translate assembly language programs into machine language programs – Our add program now looks like: • ADD 1,0 • ADD 1,1 Slide 1-12 1001 0001 0000 1001 0001 0001 Assembler
  • 13. (High-Level) Languages • High-level languages – Third-generation and fourth-generation languages – Programs can be translated to run on a variety of computer types • Third-generation languages – Procedure-oriented languages – Object-oriented languages • Our Add program might now look like: sum = value1 + value2 Slide 1-13 1001 0001 0000 1001 0001 0001 Compiler
  • 14. Third-Generation and Fourth- Generation (High-Level) Languages (Continued) Slide 1-14 The Evolution of Programming Languages
  • 15. Third-Generation and Fourth- Generation (High-Level) Languages • Procedure-oriented languages – Programmers concentrate on the procedures used in the program – Procedure: a logically consistent set of instructions which is used to produce one specific result • Object-oriented languages – Items are represented using self-contained objects – Often used for graphical windows environments, ability to re-use code efficiently Slide 1-15
  • 16. 1- Input units • This units are used for the process of entering data and programs in to the computer system. • The input unit takes data from us to the computer in an organized manner for Processing. • Examples of input units : Mouse, Modem, Keyboard, Net card, Camera, microphone, CD, DVD,HD 16
  • 17. 2. Storage • The process of saving data and instructions permanently is known as storage. • All data and instructions are stored before and after processing • Intermediate results of processing are also stored here. 17
  • 18. CPU ComponentsCPU Components • Two typical components of a CPU are: • The arithmetic logic unit (ALU), which performs arithmetic and logical operations. • The control unit (CU), which extracts instructions from memory and decodes and executes them, calling on the ALU when necessary. 18
  • 19. ALU • The actual processing of the data and instruction are performed by Arithmetic Logical Unit • The major operations performed by the ALU are addition, subtraction, multiplication, division, logic and comparison. • Data is transferred to ALU from storage unit when required 19
  • 20. Control Unit (CU) • The Control Unit acts like the supervisor • It extracts instructions from memory and decodes and executes them, and sends the necessary signals to the ALU to perform the operation needed. • The control unit determines the sequence in which computer programs and instructions are executed. • Processing of programs stored in the main memory, interpretation of the instructions and issuing of signals for other units of the computer to execute them. 20
  • 21. 4- Output Units4- Output Units This is the process of producing results from the data for getting useful information. The output is also stored inside the computer for further processing. Examples of output units: Screen, printers, plotters, net card,.. 21
  • 22. Physical computer components • 1. Central Processing Unit (CPU) • 2. Computer Memory (RAM and ROM) • 3. Data bus 4. Ports • 5. Motherboard 6. Hard disk • 7. Output Devices • 8. Input Devices 22
  • 23. MEMORY • There are two kinds of computer memory: primary and secondary. • Primary memory is accessible directly by the processing unit. • RAM (Random access memory) is an example of primary memory • As soon as the computer is switched off the contents of RAM is lost. • You can store and retrieve data much faster with primary memory compared to secondary memory 23
  • 24. • Secondary memory such as floppy disks ,hard magnetic disk, etc., is located inside and outside the computer. • Primary memory is more expensive than secondary memory. • The size of primary memory is less than that of secondary memory. • Primary memory is faster than secondary memory. 24
  • 25. Memory is used to store: • i) instructions to execute a program and • ii) data. When the computer is doing any job, the data that have to be processed are stored in the primary memory. This data may come from an input device like keyboard or from a secondary storage device like a floppy disk. 25
  • 26. • In computer’s memory both programs and data are stored in the binary form • The binary system has only two values (bits ) 0 and 1. • Each of RAM’s locations stores one byte ) 8 bits) • (1 kilobyte is 1024 bytes) • (1Megabyte is 1024 kilobytes) • (1 terabyte is 1024 megabytes) • Thus 64 kilobyte (KB) memory is capable of storing 64 X 1024 = 32,767 bytes 26 Capacity of Primary MemoryCapacity of Primary Memory
  • 27. • Each cell of memory contains one character or 1 byte of data • Primary storage is referred to as random access memory (RAM) because it is possible to randomly select and use any location of the memory directly store and retrieve data. It takes same time to any address of the memory as the first address. • It is also called read/write memory 27
  • 28. • The storage of data and instructions inside the primary storage is temporary. • It disappears from RAM as soon as the power to the computer is switched off. • The memories, which loose their content on failure of power supply, are known as volatile memories 28
  • 29. Read Only Memory (ROM) • There is another memory in computer, which is called Read Only Memory (ROM). • The storage of program and data in the ROM is permanent. • The ROM stores some standard processing programs supplied by the manufacturers to operate the computer. • The ROM can only be read by the CPU but it cannot be changed. 29
  • 30. • The basic input/output program is stored in the ROM that examines and initializes various equipment attached to the PC when the switch is made ON. • The memories, which do not loose their content on failure of power supply, are known as non-volatile memories. • ROM is non-volatile memory. 30
  • 31. • PROM is another type of primary memory in computer, which is called Programmable Read Only Memory (PROM). • You know that it is not possible to modify or erase programs stored in ROM, but it is possible for you to store your program in PROM chip. Once the programmes are written it cannot be changed and remain intact even if power is switched off. • Programs or instructions written in PROM or ROM cannot be erased or changed. 31
  • 32. • EPROM: Erasable Programmable Read Only Memory, which over come the problem of PROM & ROM. • EPROM chip can be programmed time and again by erasing the information stored earlier in it. • When the EPROM is in use information can only be read. 32
  • 33. Cache Memory • The speed of CPU is extremely high compared to the access time of main memory. • Therefore the performance of CPU decreases due to the slow speed of main memory. • Cache Memory is a small memory chip is attached between CPU and Main memory whose access time is very close to the processing speed of CPU. • CACHE memories are accessed much faster than conventional RAM. It is used to store programs or data currently being executed or temporary data 33
  • 34. Registers: • The CPU processes data and instructions with high speed, there is also movement of data between various units of computer. • It is necessary to transfer the processed data with high speed. • So the computer uses a number of special memory units called registers. • They are not part of the main memory but they store data or information temporarily and pass it on as directed by the control unit. 34
  • 35. auxiliary memoryauxiliary memory oror secondary storagesecondary storage • 1-Hard Disk, in computer science, one or more inflexible platters coated with material that allows the magnetic recording of computer data. • Hard disks provide faster access to data than floppy disks and are capable of storing much more information. Because platters are rigid, they can be stacked so that one hard-disk drive can access more than one platter. • Most hard disks have from two to eight platters. 35
  • 36. • Magnetic Tape: Magnetic tapes are used for large computers like mainframe computers where large volume of data is stored for a longer time • Floppy Disk: It is similar to magnetic disk discussed above. They are 5.25 inch or 3.5 inch in diameter. They come in single or double density and recorded on one or both surface of the diskette. The capacity of a 5.25- inch floppy is 1.2 mega bytes whereas for 3.5 inch floppy it is 1.44 mega bytes. 36
  • 37. • floppy disk * small magnetic data storage disk: a small flexible magnetically coated disk in a rigid plastic case on which data can be stored or retrieved by a computer * a regular floppy disk holds approximately 1.44 megabytes. 37
  • 38. CD- ROM • CD-ROM, short for compact disc read-only memory, a rigid plastic disk that stores a large amount of data through the use of laser optics technology. • Because they store data optically, CD-ROMs have a much higher memory capacity than computer disks that store data magnetically. • However, CD-ROM drives, the devices used to access information on CD-ROMs, can only read information from the disc, not write to it. • CD-ROMs can store large amounts of data and so are popular for storing databases and multimedia material. The most common format of CD-ROM holds approximately 630 megabytes . 38
  • 39. INPUT OUTPUT DEVICES • When you work with the computer you feed your data and instructions through some devices to the computer. These devices are called Input devices. • Input Devices: Keyboard, Mouse, Scanner, Optical Character Recognition (OCR) • Output Devices • Visual Display Unit: The most popular input/output device is the Visual Display Unit (VDU). It is also called the monitor 39
  • 40. • Terminals: It is a very popular interactive input-output unit. • It can be divided into two types: hard copy terminals and soft copy terminals. A hard copy terminal provides a printout on paper whereas soft copy terminals provide visual copy on monitor. • A terminal when connected to a CPU sends instructions directly to the computer. 40
  • 41. Printer • It is an important output device which can be used to get a printed copy of the processed text or result on paper. • There are different types of printers that are designed for different types of applications. • Depending on their speed and approach of printing, printers are classified as impact and non-impact printers. 41
  • 42. • Impact printers use the familiar typewriter approach of hammering a typeface against the paper and inked ribbon. • Dot-matrix printers are of this type. • Non-impact printers do not hit or impact a ribbon to print. • They use electro-static chemicals and ink-jet technologies. • Laser printers and Ink-jet printers are of this type. • This type of printers can produce color printing and elaborate graphics. 42