SlideShare a Scribd company logo
Introduction to Computers
What is a Computer?
• A computer is an electronic device that
operates under the control of a set of instructions
that is stored in its memory unit.
• A computer accepts data from an input device
and processes it into useful information which it
displays on its output device.
• A computer is a collection of hardware and
software components that help you accomplish
many different tasks.
A Typical Computer System
Functional Components of a Computer
INPUT
UNIT
OUTPUT
UNIT
MAIN MEMORY
CENTRAL
PROCESSING
UNIT
Input Unit
• The input unit is formed by the input devices attached to
the computer.
• Input devices accept data in a form that the computer
can utilize.
• It sends the data or instructions to the processing unit to
be processed into useful information .
• Examples:-Keyboard, Mouse, Touch pad, Track Ball etc.
Central Processing Unit (CPU)
• Control center or the brain of a computer
• The role is to use a stored program to manipulate the
input data into the information required.
• The CPU consists of electronic circuits that interpret
and execute instructions; it communicates with the
input, output, and storage devices.
• It has two components:-
Arithmetic Logic Unit (ALU)
Control Unit (CU)
Arithmetic Logic Unit
• Performs arithmetic and logical operations
• These operations provide the capability of decision-making to the
computer
Control Unit
• Controls and guides the flow and manipulation of data and
information.
• It sends appropriate control signals
• Major function is program execution
– The control unit fetches an instruction and data associated with
it from memory.
– The control unit decodes the instruction.
– The arithmetic/logic unit executes the instruction.
– The arithmetic/logic unit stores the result in memory
Output Unit
• Formed by output devices attached to the computer.
• Converts the electronic binary signals into human
readable form.
• Examples:-Monitor, Printer, Plotter etc.
Memory
• Memory is the place where raw data, intermediate
data and processed data are stored.
• It can hold data only temporarily because it requires a
continuous flow of electrical current. If current is
interrupted, data is lost.
• Memory is in the form of a semiconductor or silicon
chip and is contained inside the computer.
• Two types of memory: ROM and RAM.
• Memory is measured in bytes.
• A byte is usually made up of 8 bits and represents
one character—a letter, digit, or symbol.
• The number of bytes that can be held is a measure of
the memory and storage capacity.
Hardware and Software
A computer system consists of hardware and software
for the proper functioning:
–Hardware
The equipment associated with a computer system is the
hardware.
Input devices, CPU, output devices and storage devices form
the h/w
–Software
A set of instructions which govern the operation of the
computer system and make the h/w run.
Other types of Computers
• A Notebook computer can fit into a briefcase and weigh fewer
than two pounds,
• A larger, heavier version is called a Laptop computer.
• Smartphone is a small computer
Notebook Computers
Laptop Computer
1.22
1-1 TURING MODEL
The idea of a universal computational device was first
described by Alan Turing in 1937. He proposed that all
computation could be performed by a special kind of a
machine, now called a Turing machine. He based the
model on the actions that people perform when involved
in computation. He abstracted these actions into a model
for a computational machine that has really changed the
world.
1.23
Data processors
Before discussing the Turing model, let us define a
computer as a data processor. Using this definition, a
computer acts as a black box that accepts input data,
processes the data, and creates output data (Figure 1.1).
Although this model can define the functionality of a
computer today, it is too general. In this model, a pocket
calculator is also a computer (which it is, in a literal sense).
Figure 1.1 A single purpose computing machine
1.24
Programmable data processors
The Turing model is a better model for a general-purpose
computer. This model adds an extra element to the specific
computing machine: the program. A program is a set of
instructions that tells the computer what to do with data.
Figure 1.2 shows the Turing model.
Figure 1.2 A computer based on the Turing model
1.25 Figure 1.4 The same data, different programs
1.26
The universal Turing machine
A universal Turing machine, a machine that can do any
computation if the appropriate program is provided, was the
first description of a modern computer.
It can be proved that a very powerful computer and a
universal Turing machine can compute the same thing.
We need only provide the data and the program—the
description of how to do the computation—to either
machine.
In fact, a universal Turing machine is capable of computing
anything that is computable.
1.27
1-2 VON NEUMANN MODEL
Computers built on the Turing universal machine store
data in their memory. Around 1944–1945, John von
Neumann proposed that, since program and data are
logically the same, programs should also be stored in
the memory of a computer.
1.28
Computers built on the von Neumann model divide the
computer hardware into four subsystems: memory,
arithmetic logic unit, control unit, and input/output (Figure
1.5).
Four subsystems
Figure 1.5 The von Neumann model
1.29
The von Neumann model states that the program must be
stored in memory. This is totally different from the
architecture of early computers in which only the data was
stored in memory: the programs for their task was
implemented by manipulating a set of switches or by
changing the wiring system.
The memory of modern computers hosts both a
program and its corresponding data. This implies that both
the data and programs should have the same format, because
they are stored in memory. In fact, they are stored as binary
patterns in memory—a sequence of 0s and 1s.
The stored program concept
1.30
1-3 COMPUTER COMPONENTS
We can think of a computer as being made up of three
components: computer hardware, data, and computer
software.
Computer hardware today has four components under the
von Neumann model, although we can have different types
of memory, different types of input/output subsystems, and
so on.
The von Neumann model clearly defines a computer as a
data processing machine that accepts the input data,
processes it, and outputs the result.

More Related Content

Similar to 0.0 Introduction to a computer programming.pptx

COA Unit 1 Chapter 2.pptx
COA Unit 1 Chapter 2.pptxCOA Unit 1 Chapter 2.pptx
COA Unit 1 Chapter 2.pptx
Mala Gowda
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
sonykhan3
 
Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
Vineet Kumar Saini
 
1 fundamentals of computer
1 fundamentals of computer1 fundamentals of computer
1 fundamentals of computer
BaliThorat1
 
Lecture 1 operate a computer system
Lecture 1   operate a computer systemLecture 1   operate a computer system
Lecture 1 operate a computer system
Maxwell Musonda
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan
 
Introduction to computers MRS. SOWMYA JYOTHI
Introduction to computers MRS. SOWMYA JYOTHIIntroduction to computers MRS. SOWMYA JYOTHI
Introduction to computers MRS. SOWMYA JYOTHI
Sowmya Jyothi
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer system
dofirfauzi1302
 
Msc chemistry previous
Msc chemistry previousMsc chemistry previous
Msc chemistry previous
mshoaib15
 
Presentation (1).pptx
Presentation (1).pptxPresentation (1).pptx
Presentation (1).pptx
KwigaGree
 
1 introduction-to-computer
1 introduction-to-computer1 introduction-to-computer
1 introduction-to-computer
Rohit Shrivastava
 
computer literacy chapter1.pptx
computer literacy chapter1.pptxcomputer literacy chapter1.pptx
computer literacy chapter1.pptx
ToobaFarooq10
 
Functional units
Functional unitsFunctional units
Functional units
Jeeva Nanthini
 
Unit-I - Introduction to Computer Fundamentals-AWI-.pptx
Unit-I - Introduction to Computer Fundamentals-AWI-.pptxUnit-I - Introduction to Computer Fundamentals-AWI-.pptx
Unit-I - Introduction to Computer Fundamentals-AWI-.pptx
MrNikhilMohanShinde
 
Computer System
Computer SystemComputer System
Computer System
hajjaz
 
introdection BASIC OF COMPUTER EDUCATION
introdection BASIC OF COMPUTER EDUCATIONintrodection BASIC OF COMPUTER EDUCATION
introdection BASIC OF COMPUTER EDUCATION
reshmi30
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
Ruhul Amin
 
Basics of computer
Basics of computerBasics of computer
Basics of computer
Romio Khumukcham
 
janvichauhan110cs.pptx
janvichauhan110cs.pptxjanvichauhan110cs.pptx
janvichauhan110cs.pptx
SANKETKOTAK5
 
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOKCOMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
gangesh sharma
 

Similar to 0.0 Introduction to a computer programming.pptx (20)

COA Unit 1 Chapter 2.pptx
COA Unit 1 Chapter 2.pptxCOA Unit 1 Chapter 2.pptx
COA Unit 1 Chapter 2.pptx
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
 
Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
 
1 fundamentals of computer
1 fundamentals of computer1 fundamentals of computer
1 fundamentals of computer
 
Lecture 1 operate a computer system
Lecture 1   operate a computer systemLecture 1   operate a computer system
Lecture 1 operate a computer system
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
Introduction to computers MRS. SOWMYA JYOTHI
Introduction to computers MRS. SOWMYA JYOTHIIntroduction to computers MRS. SOWMYA JYOTHI
Introduction to computers MRS. SOWMYA JYOTHI
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer system
 
Msc chemistry previous
Msc chemistry previousMsc chemistry previous
Msc chemistry previous
 
Presentation (1).pptx
Presentation (1).pptxPresentation (1).pptx
Presentation (1).pptx
 
1 introduction-to-computer
1 introduction-to-computer1 introduction-to-computer
1 introduction-to-computer
 
computer literacy chapter1.pptx
computer literacy chapter1.pptxcomputer literacy chapter1.pptx
computer literacy chapter1.pptx
 
Functional units
Functional unitsFunctional units
Functional units
 
Unit-I - Introduction to Computer Fundamentals-AWI-.pptx
Unit-I - Introduction to Computer Fundamentals-AWI-.pptxUnit-I - Introduction to Computer Fundamentals-AWI-.pptx
Unit-I - Introduction to Computer Fundamentals-AWI-.pptx
 
Computer System
Computer SystemComputer System
Computer System
 
introdection BASIC OF COMPUTER EDUCATION
introdection BASIC OF COMPUTER EDUCATIONintrodection BASIC OF COMPUTER EDUCATION
introdection BASIC OF COMPUTER EDUCATION
 
COA-Unit-1-Basics.ppt
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
 
Basics of computer
Basics of computerBasics of computer
Basics of computer
 
janvichauhan110cs.pptx
janvichauhan110cs.pptxjanvichauhan110cs.pptx
janvichauhan110cs.pptx
 
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOKCOMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
COMPUTER ORGNIZATION AND ASSEMBLY LANGUAGE EBOOK
 

Recently uploaded

Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 

Recently uploaded (20)

Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 

0.0 Introduction to a computer programming.pptx

  • 2. What is a Computer? • A computer is an electronic device that operates under the control of a set of instructions that is stored in its memory unit. • A computer accepts data from an input device and processes it into useful information which it displays on its output device. • A computer is a collection of hardware and software components that help you accomplish many different tasks.
  • 4. Functional Components of a Computer INPUT UNIT OUTPUT UNIT MAIN MEMORY CENTRAL PROCESSING UNIT
  • 5. Input Unit • The input unit is formed by the input devices attached to the computer. • Input devices accept data in a form that the computer can utilize. • It sends the data or instructions to the processing unit to be processed into useful information . • Examples:-Keyboard, Mouse, Touch pad, Track Ball etc.
  • 6.
  • 7.
  • 8.
  • 9. Central Processing Unit (CPU) • Control center or the brain of a computer • The role is to use a stored program to manipulate the input data into the information required. • The CPU consists of electronic circuits that interpret and execute instructions; it communicates with the input, output, and storage devices. • It has two components:- Arithmetic Logic Unit (ALU) Control Unit (CU)
  • 10.
  • 11. Arithmetic Logic Unit • Performs arithmetic and logical operations • These operations provide the capability of decision-making to the computer Control Unit • Controls and guides the flow and manipulation of data and information. • It sends appropriate control signals • Major function is program execution – The control unit fetches an instruction and data associated with it from memory. – The control unit decodes the instruction. – The arithmetic/logic unit executes the instruction. – The arithmetic/logic unit stores the result in memory
  • 12. Output Unit • Formed by output devices attached to the computer. • Converts the electronic binary signals into human readable form. • Examples:-Monitor, Printer, Plotter etc.
  • 13.
  • 14.
  • 15.
  • 16. Memory • Memory is the place where raw data, intermediate data and processed data are stored. • It can hold data only temporarily because it requires a continuous flow of electrical current. If current is interrupted, data is lost. • Memory is in the form of a semiconductor or silicon chip and is contained inside the computer.
  • 17.
  • 18. • Two types of memory: ROM and RAM. • Memory is measured in bytes. • A byte is usually made up of 8 bits and represents one character—a letter, digit, or symbol. • The number of bytes that can be held is a measure of the memory and storage capacity.
  • 19. Hardware and Software A computer system consists of hardware and software for the proper functioning: –Hardware The equipment associated with a computer system is the hardware. Input devices, CPU, output devices and storage devices form the h/w –Software A set of instructions which govern the operation of the computer system and make the h/w run.
  • 20. Other types of Computers • A Notebook computer can fit into a briefcase and weigh fewer than two pounds, • A larger, heavier version is called a Laptop computer. • Smartphone is a small computer
  • 22. 1.22 1-1 TURING MODEL The idea of a universal computational device was first described by Alan Turing in 1937. He proposed that all computation could be performed by a special kind of a machine, now called a Turing machine. He based the model on the actions that people perform when involved in computation. He abstracted these actions into a model for a computational machine that has really changed the world.
  • 23. 1.23 Data processors Before discussing the Turing model, let us define a computer as a data processor. Using this definition, a computer acts as a black box that accepts input data, processes the data, and creates output data (Figure 1.1). Although this model can define the functionality of a computer today, it is too general. In this model, a pocket calculator is also a computer (which it is, in a literal sense). Figure 1.1 A single purpose computing machine
  • 24. 1.24 Programmable data processors The Turing model is a better model for a general-purpose computer. This model adds an extra element to the specific computing machine: the program. A program is a set of instructions that tells the computer what to do with data. Figure 1.2 shows the Turing model. Figure 1.2 A computer based on the Turing model
  • 25. 1.25 Figure 1.4 The same data, different programs
  • 26. 1.26 The universal Turing machine A universal Turing machine, a machine that can do any computation if the appropriate program is provided, was the first description of a modern computer. It can be proved that a very powerful computer and a universal Turing machine can compute the same thing. We need only provide the data and the program—the description of how to do the computation—to either machine. In fact, a universal Turing machine is capable of computing anything that is computable.
  • 27. 1.27 1-2 VON NEUMANN MODEL Computers built on the Turing universal machine store data in their memory. Around 1944–1945, John von Neumann proposed that, since program and data are logically the same, programs should also be stored in the memory of a computer.
  • 28. 1.28 Computers built on the von Neumann model divide the computer hardware into four subsystems: memory, arithmetic logic unit, control unit, and input/output (Figure 1.5). Four subsystems Figure 1.5 The von Neumann model
  • 29. 1.29 The von Neumann model states that the program must be stored in memory. This is totally different from the architecture of early computers in which only the data was stored in memory: the programs for their task was implemented by manipulating a set of switches or by changing the wiring system. The memory of modern computers hosts both a program and its corresponding data. This implies that both the data and programs should have the same format, because they are stored in memory. In fact, they are stored as binary patterns in memory—a sequence of 0s and 1s. The stored program concept
  • 30. 1.30 1-3 COMPUTER COMPONENTS We can think of a computer as being made up of three components: computer hardware, data, and computer software. Computer hardware today has four components under the von Neumann model, although we can have different types of memory, different types of input/output subsystems, and so on. The von Neumann model clearly defines a computer as a data processing machine that accepts the input data, processes it, and outputs the result.