SlideShare a Scribd company logo
3
Most read
17
Most read
18
Most read
Topics
Computer Switches
Number Systems
Converting form one number
system to another
Binary Arithmetic
Units of data representation
Coding methods
 Computers work in binary language.
 Consists of two numbers: 0 and 1.
 Everything a computer does is broken
down into a series of 0s and 1s.
 Switches: Devices inside the
computer that can be flipped between
these two states: 1 or 0, on or off.
 Number systems are organized ways to
represent numbers.
 Each number in one system has a
corresponding number in another.
• There are different number systems. Some
of them are:-
– Decimal – base(10) 0-9
– Binary- base(2) 0,1
– Octal- base(8) 0-7
– Hexadecimal- base(16) 0-9,A,B,C,D,E,F
 Describes a number as powers of 2.
 Also referred to as base 2 numbering
system.
 Used to represent every piece of data
stored in a computer: all of the numbers,
letters, and instructions are a series of 0s
and 1s.
 Describes a number as powers of 10.
 Also referred to as base 10 numbering
system.
 It uses 10 symbols 0-9 to represent
numbers;
 Computers used binary number system to
represent every piece of data stored in a
computer and Humans understand
decimal number systems easily.
 Conversion from Decimal to Binary
1. (37)(10) = ………(2)
2. (56)(10) = ………(2)
3. (15.75)(10) = ………(2)
4. (27.25)(10) = ………(2)
1. (10011)(2)= ……..(10)
2. (1001001)(2)= ……..(10)
3. (11001.11)(2)= ……..(10)
4. (1100101.01)(2)= ……..(10)
 Computer understands only the language of
binary numbers. Therefore, the machine
performs what is called binary arithmetic
(binary computation).
1. Binary Addition
2. Binary Subtraction
3. Binary Multiplication
4. Binary Division
 The binary addition rules may be written as
follows:
• 0+0=0
• 0+1=1
• 1+0=1
• 1+1=0 plus a carry of 1 into the next position
• 1+1+1=1 plus a carry of 1 into the next position
• Example1. 6+7 =13
110 ----> 6
+ 111 ----> 7
…… ---->13
• Example2. 19+31+10=60
10011------->19
+ 11111------->31
+ 1010------->10
……… ------>60
• Example3. 11001.011 + 111.110 =………..
 It operates by the same rule as decimal subtraction.
The rule is as follows;
 0-0=0
 1-0=1
 1-1=0
 10-1=1
 Example1.
11100 28 101101 45 11001.011
- 11010 -26 - 111 -7 - 111.110
…….… = 2 ……… = 38 ………….
 It is a very simple process that operates by the
following obvious rulers:
(a) Multiplying any number by 1 rules the
multiplicand unchanged
 0x1=0
 1x1=1
(b) Multiplying any number by 0 produces 0
 0x0=0
 1x0=0
 Example1.
101 110.01
x 10 x 10.1
……… .……....
 That is, the process for dividing one binary
number (the dividend) by another (the divisor)
is based on the rules for binary subtraction and
multiplication and Similar to decimal division.
 Example1.
1111 ÷ 101 = …….
 Example2.
1111101 ÷ 11001 = ……
 Bit
 Binary digit
 0 or 1
 Bits are the smallest units
 Byte
 Eight bits
 The basic unit of data representation in a
computer system;
 Word
 A combination of bytes, then form a
“word”.
 Word refers the number of bits that a computer
process at a time or a transmission media
transmits at a time.
 The large the word length a computer has the
more powerful and faster it is.
OFF
0
ON
1
Microchip
Switch
NAME ABBREVIATION NUMBER OF
BYTES
RELATIVE SIZE
Byte B 1 byte Can hold one character of data.
Kilobyte KB 1,024 bytes Can hold 1,024 characters or about half
of a typewritten page double-spaced.
Megabyte MB 1,048,576 bytes A floppy disk holds approximately 1.4
MB of data, or approximately 768 pages
of typed text.
Gigabyte GB 1,073,741,824 bytes Approximately 786,432 pages of text.
Since 500 sheets of paper is
approximately 2 inches, this represents
a stack of paper 262 feet high.
Terabyte TB 1,099,511,627,776
bytes
This represents a stack of typewritten
pages almost 51 miles high.
Petabyte PB 1,125,899,906,842,624
bytes
The stack of pages is now 52,000 miles
high, or about one-fourth the distance
from the Earth to the moon.
 In previous sections we introduced the most common
types of binary-coded data found in digital computers.
 Other binary codes for decimal numbers and
alphanumeric characters are sometimes used.
 Digital Computers also employ other binary codes for
special applications.
BCD (Binary Coded Decimal)
EBCDIC (Extended Binary Coded Decimal
Interchange Code )
ASCII (American Standard Code for
Information Interchange)
 There are two types of BCD coding techniques
used before.
a) 4 bits BCD and
b) 6 bits BCD
BCD (4 -bits)
 The 4 bit BCD, which represent any digit of
decimal number by four bits of binary
numbers.
 If you want to represent 219 using 4 bit BCD
you have to say 0010 0001 1001
 Ex. 546= ……….
 It uses 6-bits to code a Character (2 for zone bit and 4 for
digit bit)
 It can represent 26 = 64 characters (10 digits, 26 capital
characters and some other special characters).
 Some Coding Examples
Character zone zone (2 Bit) Digit (4 Bit)
0-9 0 0-9
A-I 3 1-9
J-R 2 1-9
S-Z 1 2-9
Example 1. Represent Character A using 6-bits BCD
A 11 0001
A = 110001
J = ……… 2 =……….. D =………………..
 It is an 8-bit coding scheme: (00000000 – 11111111)
 It accommodates to code 28 or 256 different characters
 It is a standard coding scheme for the large computers.
 Coding Example:
Character zone (4 Bit) Digit (4 Bit)
0-9 15 0-9
a-i 8 1-9
j-r 9 1-9
s-z 10 2-9
A-I 12 1-9
J-R 13 1-9
S-Z 14 2-9
Example 1. Represent Character A using EBCIDIC
A 1100 0001
A= 11000001
a=………… Z=………………
2 = ……….. d =……………….
 Used widely before the introduction of ASCII-8 (the Extended
ASCII)
 Uses 7 bits to represent a character;
 With the seven bits, 27(or 128) different characters can be coded
(0000000-1111111)
 Coding examples:
Character zone (3 bit) digit (4 bit)
0-9 3 0-9
A-O 4 1-15
P-Z 5 0-10
a- o 6 1-15
p- z 7 0-10
Example 1. Represent Character A using ASCII-7
A 100 0001
A= 1000001
a = ……….. E =………………….
2 = ……….. r =…………………
Any Question?

More Related Content

PPTX
Data members and member functions
PPTX
Operating system 11 system calls
PDF
chapter 4-Functional Dependency and Normilization.pdf
PPT
Services provided by os
PPTX
Decomposition in DBMS- check the lossless and lossy concept
PPTX
Type casting
PPTX
Distributed Operating Systems
Data members and member functions
Operating system 11 system calls
chapter 4-Functional Dependency and Normilization.pdf
Services provided by os
Decomposition in DBMS- check the lossless and lossy concept
Type casting
Distributed Operating Systems

What's hot (20)

PPTX
Input output statement
PPT
The process states
PPTX
Phases of compiler
PPTX
serializability in dbms
PPTX
File Management in Operating System
PPTX
Deadlock ppt
PDF
Data types in c++
PPTX
PPT
Data structures using c
DOC
Dma transfer
PPTX
data types in C programming
PPT
Shell programming
PPTX
Object Oriented Programming Using C++
PPTX
chapter 1 introduction to operating system
PPTX
Data types in c++
PPTX
Strings and pointers
PPT
6 multiprogramming & time sharing
PPT
Deadlock
PPTX
Introduction to Object Oriented Programming
PPTX
Interface in java
Input output statement
The process states
Phases of compiler
serializability in dbms
File Management in Operating System
Deadlock ppt
Data types in c++
Data structures using c
Dma transfer
data types in C programming
Shell programming
Object Oriented Programming Using C++
chapter 1 introduction to operating system
Data types in c++
Strings and pointers
6 multiprogramming & time sharing
Deadlock
Introduction to Object Oriented Programming
Interface in java
Ad

Similar to Chapter 3-Data Representation in Computers.ppt (20)

PPTX
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
PPT
Computers numbering systems
PPTX
Lecture 7 Data Representation (1).pptx for computer organization and architec...
PPT
Number Systems.ppt
PDF
form-3-computer studies summarized NOTES.pdf
PDF
Digital Electronics – Unit I.pdf
PPT
Module 4
PPTX
Coding Schemes related dld lecture it is dld
PPTX
Binary computing
PPT
Computer archi&mp
PPTX
Unit 1 PDF.pptx
PPT
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PPT
Topic 1 Data Representation
PPT
Topic 1 Data Representation
PDF
Number System
PDF
Unit 1 Class Notes Printed digital Electronics.pdf
PPTX
Introduction to digital computers and Number systems.pptx
PPT
Lecture_Computer_Codes.ppt
PPTX
Basics of digital electronics
PPT
Chapter 1 Digital Systems and Binary Numbers.ppt
ARCsxfhcjkvmnfxcgbfgcxhvbxdfzxcgbfxgcvbnx3.pptx
Computers numbering systems
Lecture 7 Data Representation (1).pptx for computer organization and architec...
Number Systems.ppt
form-3-computer studies summarized NOTES.pdf
Digital Electronics – Unit I.pdf
Module 4
Coding Schemes related dld lecture it is dld
Binary computing
Computer archi&mp
Unit 1 PDF.pptx
ENG241-Week1-NumberSystemsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Topic 1 Data Representation
Topic 1 Data Representation
Number System
Unit 1 Class Notes Printed digital Electronics.pdf
Introduction to digital computers and Number systems.pptx
Lecture_Computer_Codes.ppt
Basics of digital electronics
Chapter 1 Digital Systems and Binary Numbers.ppt
Ad

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Empathic Computing: Creating Shared Understanding
PDF
KodekX | Application Modernization Development
PDF
Spectral efficient network and resource selection model in 5G networks
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Review of recent advances in non-invasive hemoglobin estimation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Electronic commerce courselecture one. Pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Empathic Computing: Creating Shared Understanding
KodekX | Application Modernization Development
Spectral efficient network and resource selection model in 5G networks

Chapter 3-Data Representation in Computers.ppt

  • 1. Topics Computer Switches Number Systems Converting form one number system to another Binary Arithmetic Units of data representation Coding methods
  • 2.  Computers work in binary language.  Consists of two numbers: 0 and 1.  Everything a computer does is broken down into a series of 0s and 1s.  Switches: Devices inside the computer that can be flipped between these two states: 1 or 0, on or off.
  • 3.  Number systems are organized ways to represent numbers.  Each number in one system has a corresponding number in another. • There are different number systems. Some of them are:- – Decimal – base(10) 0-9 – Binary- base(2) 0,1 – Octal- base(8) 0-7 – Hexadecimal- base(16) 0-9,A,B,C,D,E,F
  • 4.  Describes a number as powers of 2.  Also referred to as base 2 numbering system.  Used to represent every piece of data stored in a computer: all of the numbers, letters, and instructions are a series of 0s and 1s.
  • 5.  Describes a number as powers of 10.  Also referred to as base 10 numbering system.  It uses 10 symbols 0-9 to represent numbers;  Computers used binary number system to represent every piece of data stored in a computer and Humans understand decimal number systems easily.
  • 6.  Conversion from Decimal to Binary 1. (37)(10) = ………(2) 2. (56)(10) = ………(2) 3. (15.75)(10) = ………(2) 4. (27.25)(10) = ………(2)
  • 7. 1. (10011)(2)= ……..(10) 2. (1001001)(2)= ……..(10) 3. (11001.11)(2)= ……..(10) 4. (1100101.01)(2)= ……..(10)
  • 8.  Computer understands only the language of binary numbers. Therefore, the machine performs what is called binary arithmetic (binary computation). 1. Binary Addition 2. Binary Subtraction 3. Binary Multiplication 4. Binary Division
  • 9.  The binary addition rules may be written as follows: • 0+0=0 • 0+1=1 • 1+0=1 • 1+1=0 plus a carry of 1 into the next position • 1+1+1=1 plus a carry of 1 into the next position
  • 10. • Example1. 6+7 =13 110 ----> 6 + 111 ----> 7 …… ---->13 • Example2. 19+31+10=60 10011------->19 + 11111------->31 + 1010------->10 ……… ------>60 • Example3. 11001.011 + 111.110 =………..
  • 11.  It operates by the same rule as decimal subtraction. The rule is as follows;  0-0=0  1-0=1  1-1=0  10-1=1  Example1. 11100 28 101101 45 11001.011 - 11010 -26 - 111 -7 - 111.110 …….… = 2 ……… = 38 ………….
  • 12.  It is a very simple process that operates by the following obvious rulers: (a) Multiplying any number by 1 rules the multiplicand unchanged  0x1=0  1x1=1 (b) Multiplying any number by 0 produces 0  0x0=0  1x0=0  Example1. 101 110.01 x 10 x 10.1 ……… .……....
  • 13.  That is, the process for dividing one binary number (the dividend) by another (the divisor) is based on the rules for binary subtraction and multiplication and Similar to decimal division.  Example1. 1111 ÷ 101 = …….  Example2. 1111101 ÷ 11001 = ……
  • 14.  Bit  Binary digit  0 or 1  Bits are the smallest units  Byte  Eight bits  The basic unit of data representation in a computer system;  Word  A combination of bytes, then form a “word”.  Word refers the number of bits that a computer process at a time or a transmission media transmits at a time.  The large the word length a computer has the more powerful and faster it is. OFF 0 ON 1 Microchip Switch
  • 15. NAME ABBREVIATION NUMBER OF BYTES RELATIVE SIZE Byte B 1 byte Can hold one character of data. Kilobyte KB 1,024 bytes Can hold 1,024 characters or about half of a typewritten page double-spaced. Megabyte MB 1,048,576 bytes A floppy disk holds approximately 1.4 MB of data, or approximately 768 pages of typed text. Gigabyte GB 1,073,741,824 bytes Approximately 786,432 pages of text. Since 500 sheets of paper is approximately 2 inches, this represents a stack of paper 262 feet high. Terabyte TB 1,099,511,627,776 bytes This represents a stack of typewritten pages almost 51 miles high. Petabyte PB 1,125,899,906,842,624 bytes The stack of pages is now 52,000 miles high, or about one-fourth the distance from the Earth to the moon.
  • 16.  In previous sections we introduced the most common types of binary-coded data found in digital computers.  Other binary codes for decimal numbers and alphanumeric characters are sometimes used.  Digital Computers also employ other binary codes for special applications. BCD (Binary Coded Decimal) EBCDIC (Extended Binary Coded Decimal Interchange Code ) ASCII (American Standard Code for Information Interchange)
  • 17.  There are two types of BCD coding techniques used before. a) 4 bits BCD and b) 6 bits BCD BCD (4 -bits)  The 4 bit BCD, which represent any digit of decimal number by four bits of binary numbers.  If you want to represent 219 using 4 bit BCD you have to say 0010 0001 1001  Ex. 546= ……….
  • 18.  It uses 6-bits to code a Character (2 for zone bit and 4 for digit bit)  It can represent 26 = 64 characters (10 digits, 26 capital characters and some other special characters).  Some Coding Examples Character zone zone (2 Bit) Digit (4 Bit) 0-9 0 0-9 A-I 3 1-9 J-R 2 1-9 S-Z 1 2-9 Example 1. Represent Character A using 6-bits BCD A 11 0001 A = 110001 J = ……… 2 =……….. D =………………..
  • 19.  It is an 8-bit coding scheme: (00000000 – 11111111)  It accommodates to code 28 or 256 different characters  It is a standard coding scheme for the large computers.  Coding Example: Character zone (4 Bit) Digit (4 Bit) 0-9 15 0-9 a-i 8 1-9 j-r 9 1-9 s-z 10 2-9 A-I 12 1-9 J-R 13 1-9 S-Z 14 2-9 Example 1. Represent Character A using EBCIDIC A 1100 0001 A= 11000001 a=………… Z=……………… 2 = ……….. d =……………….
  • 20.  Used widely before the introduction of ASCII-8 (the Extended ASCII)  Uses 7 bits to represent a character;  With the seven bits, 27(or 128) different characters can be coded (0000000-1111111)  Coding examples: Character zone (3 bit) digit (4 bit) 0-9 3 0-9 A-O 4 1-15 P-Z 5 0-10 a- o 6 1-15 p- z 7 0-10 Example 1. Represent Character A using ASCII-7 A 100 0001 A= 1000001 a = ……….. E =…………………. 2 = ……….. r =…………………

Editor's Notes