SlideShare a Scribd company logo
Data in the Computer
Presented by
Mr.T.JohnsonPrince, M.Sc.(CS),B.Ed.(CS)
?
Data representation
Students should be able to learn:
• Introduction
• Representation of data in computer
• Binary and switches
• How data are stored in computer?
• Integer, Character, Pictures, Sounds and Programs
• Conclusion
Representing Data
We have all seen computers do seemingly miraculous things with all kinds of
sounds, pictures, graphics, numbers, and text. It seems that we can build a
replica of parts of our world inside the computer. You might think that this
amazing machine is also amazingly complicated - it really is not.
In fact, all of the wonderful multi-media that we see on modern computers is
all constructed from simple ON/OFF switches - millions of them - but really
nothing much more complicated than a switch. The trick is to take all of the
real-world sound, picture, number etc data that we want in the computer and
convert it into the kind of data that can be represented in switches, as shown in
Figure 1.
Figure 1: Representing Real-World Data In
The Computer
Binary and Switches
The computer has switches to represent data and switches
have only two states: ON and OFF. Binary has two digits to do
the counting: 0 and 1 - a natural fit to the two states of a
switch (0 = OFF, 1 = ON).
Binary and Switches.
• Bits and Bytes One binary digit (0 or 1) is referred to as a bit, which is short
for binary digit. Thus, one bit can be implemented by one switch, as shown in
Figure 2.
0 1 bit
1 1 bit
0110 4 bits
01101011 8 bits
Figure 3: Implementing a Byte
Computer manufacturers express the capacity of memory and storage in
terms of the number of bytes it can hold. The number of bytes can be
expressed as kilobytes. Kilo represents 2 to the tenth power, or 1024.
Kilobyte is abbreviated KB, or simply K. A kilobyte is 1024 bytes.
Representing Data in Bytes
Here is an important thing to keep in mind:
A single byte can represent many different kinds of data.
What data it actually represents depends on how the computer
uses the byte.
Decibel
a unit used to measure the intensity of a sound or the power
level of an electrical signal by comparing it with a given level
on a logarithmic scale.
Integers
• Integers. Integer numbers are represented by counting in binary.
• Integers are commonly stored using a word of memory, which is 4 bytes
or 32 bits, so integers from 0 up to 4,294,967,295 (232 - 1) can be stored.
Characters
• Characters. The computer also uses a single byte to represent a single
character. But just what particular set of bits is equivalent to which character?
In theory we could each make up our own definitions, declaring certain bit
patterns to represent certain characters.
• That is, there must be agreement on which groups of bits represent which
characters.The code called ASCII (pronounced "AS-key"), which stands for
American Standard Code for Information Interchange, uses 7 bits for each
character.
Characters
Figure 4: Character As a Byte Figure 5: Character Byte Stored In Memory
Picture and Graphic Data.
• You have probably seen photographs that have been enlarged a lot, or shown
close up - you can see that photographs are a big grid of colored dots.
Computer graphic data like pictures, frames of a movie, drawings, or frames
of an animation are represented by a grid of pixels. "Pixel" is short
for picture element. In simple graphics (those without many colors), a byte
can represent a single pixel. In a graphic representation called greyscale each
pixel is a shade of grey from black at one extreme to white at the other.
Figure 6: Graphics as a Collection of Pixel Bytes
Sound Data As Bytes
Sound occurs naturally as an analog wave, as shown in Figure 7.
Most current electronic speakers, the means that we use to
electronically reproduce sound, also produce analog waves.
However, as we have seen, all data in the computer is digital and
must be processed in bytes. The process of taking analog data, such
as sound, and making it digital is called analog to digital conversion.
Figure 7. Sound Data As Bytes
Program Data as Bytes
• Program Data as Bytes. When you buy a piece of software on a CD or
diskette, you are getting a collection of instructions that someone wrote to
tell the computer to perform the task that the software is meant to do. Each
instruction is a byte, or a small collection of bytes.
Conclusion
Data is represented in a computer by means of simple on/off switches, and
digitally these become 1 and 0. Millions of switches in combination create all
the data in a computer system.
Thank you

More Related Content

PDF
Publisher
PPT
Small basic үзүүлэн
PPTX
лекц-1
PPTX
Word
DOCX
зурган мэдээлэл боловсруулах 6-р анги нэгж хичээл
PPT
Lekts 3 hereglegchiin onol
PDF
мэдээллийн технологи 1 тест
PPTX
зурагтай ажиллах 7-р анги
Publisher
Small basic үзүүлэн
лекц-1
Word
зурган мэдээлэл боловсруулах 6-р анги нэгж хичээл
Lekts 3 hereglegchiin onol
мэдээллийн технологи 1 тест
зурагтай ажиллах 7-р анги

What's hot (20)

PPTX
Ms word insert
PDF
11-р ангийн мэдээлэл зүйн тест
PPTX
лекц№1
PDF
PPTX
U.cs101 алгоритм программчлал-12
PPTX
хайлтын систем
PDF
Дэлгүүрийн кассын систем
DOCX
Insert цэсний командууд
PPTX
Математик - 9р анги
PPTX
DOC
User requirements
PPTX
7 р анги
PDF
Lec3 c++operator
DOCX
Powerpoint test
PPTX
компьютерийн сүлжээний техник хангамж
PPTX
компьютеийн бүтэц
Ms word insert
11-р ангийн мэдээлэл зүйн тест
лекц№1
U.cs101 алгоритм программчлал-12
хайлтын систем
Дэлгүүрийн кассын систем
Insert цэсний командууд
Математик - 9р анги
User requirements
7 р анги
Lec3 c++operator
Powerpoint test
компьютерийн сүлжээний техник хангамж
компьютеийн бүтэц
Ad

Similar to Data representation (20)

DOCX
Data representation in a computer
PPT
Data Representatio151651325861223156.ppt
PDF
Data Storage By ZAK
PPT
Data-Representation about programming.ppt
PPTX
Introduction to computer hardware
DOCX
Chapter 2Hardware2.1 The System Unit2.2 Data and P
PPT
New Computer Systems
PPT
MathinaDigitalAgePowerPoint slideshare.ppt
PPT
MathinaDigitalAgePowerPoin1111224254.ppt
PPTX
Chapter 2
PPT
Learning&Teaching Systems Ppt
PPT
Learning& Teaching Systems Ppt
PPT
Learning&Teaching Systems Ppt
PPT
Computer Systems
 
PDF
Computer data representation (integers, floating-point numbers, text, images,...
PPT
Int Cs Rev
PDF
How bits and bytes work
PDF
How bits and bytes work
PDF
ICT - Lecture Notes 4.pdf
PPT
Data and information in digital organisation
Data representation in a computer
Data Representatio151651325861223156.ppt
Data Storage By ZAK
Data-Representation about programming.ppt
Introduction to computer hardware
Chapter 2Hardware2.1 The System Unit2.2 Data and P
New Computer Systems
MathinaDigitalAgePowerPoint slideshare.ppt
MathinaDigitalAgePowerPoin1111224254.ppt
Chapter 2
Learning&Teaching Systems Ppt
Learning& Teaching Systems Ppt
Learning&Teaching Systems Ppt
Computer Systems
 
Computer data representation (integers, floating-point numbers, text, images,...
Int Cs Rev
How bits and bytes work
How bits and bytes work
ICT - Lecture Notes 4.pdf
Data and information in digital organisation
Ad

Recently uploaded (20)

PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
Foundation of Data Science unit number two notes
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
Mega Projects Data Mega Projects Data
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Introduction to machine learning and Linear Models
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Foundation of Data Science unit number two notes
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Mega Projects Data Mega Projects Data
.pdf is not working space design for the following data for the following dat...
Supervised vs unsupervised machine learning algorithms
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Miokarditis (Inflamasi pada Otot Jantung)
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
IB Computer Science - Internal Assessment.pptx
ISS -ESG Data flows What is ESG and HowHow
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Business Acumen Training GuidePresentation.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Introduction to machine learning and Linear Models
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...

Data representation

  • 1. Data in the Computer Presented by Mr.T.JohnsonPrince, M.Sc.(CS),B.Ed.(CS)
  • 2. ?
  • 4. Students should be able to learn: • Introduction • Representation of data in computer • Binary and switches • How data are stored in computer? • Integer, Character, Pictures, Sounds and Programs • Conclusion
  • 5. Representing Data We have all seen computers do seemingly miraculous things with all kinds of sounds, pictures, graphics, numbers, and text. It seems that we can build a replica of parts of our world inside the computer. You might think that this amazing machine is also amazingly complicated - it really is not. In fact, all of the wonderful multi-media that we see on modern computers is all constructed from simple ON/OFF switches - millions of them - but really nothing much more complicated than a switch. The trick is to take all of the real-world sound, picture, number etc data that we want in the computer and convert it into the kind of data that can be represented in switches, as shown in Figure 1.
  • 6. Figure 1: Representing Real-World Data In The Computer
  • 7. Binary and Switches The computer has switches to represent data and switches have only two states: ON and OFF. Binary has two digits to do the counting: 0 and 1 - a natural fit to the two states of a switch (0 = OFF, 1 = ON).
  • 8. Binary and Switches. • Bits and Bytes One binary digit (0 or 1) is referred to as a bit, which is short for binary digit. Thus, one bit can be implemented by one switch, as shown in Figure 2. 0 1 bit 1 1 bit 0110 4 bits 01101011 8 bits
  • 9. Figure 3: Implementing a Byte Computer manufacturers express the capacity of memory and storage in terms of the number of bytes it can hold. The number of bytes can be expressed as kilobytes. Kilo represents 2 to the tenth power, or 1024. Kilobyte is abbreviated KB, or simply K. A kilobyte is 1024 bytes.
  • 10. Representing Data in Bytes Here is an important thing to keep in mind: A single byte can represent many different kinds of data. What data it actually represents depends on how the computer uses the byte. Decibel a unit used to measure the intensity of a sound or the power level of an electrical signal by comparing it with a given level on a logarithmic scale.
  • 11. Integers • Integers. Integer numbers are represented by counting in binary. • Integers are commonly stored using a word of memory, which is 4 bytes or 32 bits, so integers from 0 up to 4,294,967,295 (232 - 1) can be stored.
  • 12. Characters • Characters. The computer also uses a single byte to represent a single character. But just what particular set of bits is equivalent to which character? In theory we could each make up our own definitions, declaring certain bit patterns to represent certain characters. • That is, there must be agreement on which groups of bits represent which characters.The code called ASCII (pronounced "AS-key"), which stands for American Standard Code for Information Interchange, uses 7 bits for each character.
  • 13. Characters Figure 4: Character As a Byte Figure 5: Character Byte Stored In Memory
  • 14. Picture and Graphic Data. • You have probably seen photographs that have been enlarged a lot, or shown close up - you can see that photographs are a big grid of colored dots. Computer graphic data like pictures, frames of a movie, drawings, or frames of an animation are represented by a grid of pixels. "Pixel" is short for picture element. In simple graphics (those without many colors), a byte can represent a single pixel. In a graphic representation called greyscale each pixel is a shade of grey from black at one extreme to white at the other.
  • 15. Figure 6: Graphics as a Collection of Pixel Bytes
  • 16. Sound Data As Bytes Sound occurs naturally as an analog wave, as shown in Figure 7. Most current electronic speakers, the means that we use to electronically reproduce sound, also produce analog waves. However, as we have seen, all data in the computer is digital and must be processed in bytes. The process of taking analog data, such as sound, and making it digital is called analog to digital conversion.
  • 17. Figure 7. Sound Data As Bytes
  • 18. Program Data as Bytes • Program Data as Bytes. When you buy a piece of software on a CD or diskette, you are getting a collection of instructions that someone wrote to tell the computer to perform the task that the software is meant to do. Each instruction is a byte, or a small collection of bytes.
  • 19. Conclusion Data is represented in a computer by means of simple on/off switches, and digitally these become 1 and 0. Millions of switches in combination create all the data in a computer system.