SlideShare a Scribd company logo
1 of 30
Download to read offline
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 1/30Chapter 4: Computer CodesRef. Page
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 2/30Chapter 4: Computer CodesRef. Page
In this chapter you will learn about:
§ Computer data
§ Computer codes: representation of data in binary
§ Most commonly used computer codes
§ Collating sequence
Learning ObjectivesLearning Objectives
36
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 3/30Chapter 4: Computer CodesRef. Page
§ Numeric Data consists of only numbers 0, 1, 2, …, 9
§ Alphabetic Data consists of only the letters A, B, C,
…, Z, in both uppercase and lowercase, and blank
character
§ Alphanumeric Data is a string of symbols where a
symbol may be one of the letters A, B, C, …, Z, in
either uppercase or lowercase, or one of the digits 0,
1, 2, …, 9, or a special character, such as + - * / , . (
) = etc.
Data TypesData Types
36
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 4/30Chapter 4: Computer CodesRef. Page
§ Computer codes are used for internal representation of
data in computers
§ As computers use binary numbers for internal data
representation, computer codes use binary coding
schemes
§ In binary coding, every symbol that appears in the data
is represented by a group of bits
§ The group of bits used to represent a symbol is called a
byte
Computer CodesComputer Codes
(Continued on next slide)
36
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 5/30Chapter 4: Computer CodesRef. Page
§ As most modern coding schemes use 8 bits to represent
a symbol, the term byte is often used to mean a group
of 8 bits
§ Commonly used computer codes are BCD, EBCDIC, and
ASCII
Computer CodesComputer Codes
(Continued from previous slide..)
36
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 6/30Chapter 4: Computer CodesRef. Page
§ BCD stands for Binary Coded Decimal
§ It is one of the early computer codes
§ It uses 6 bits to represent a symbol
§ It can represent 64 (26) different characters
BCDBCD
36
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 7/30Chapter 4: Computer CodesRef. Page
43001110L
44010010M
41000110J
42001010K
71100111I
OctalBCD Code
Char DigitZone
70100011H
67011111G
66011011F
65010111E
64010011D
63001111C
62001011B
61000111A
22001001S
23001101T
24010001U
25010101V
26011001W
27011101X
30100001Y
31100101Z
51100110R
OctalBCD Code
Char DigitZone
50100010Q
47011110P
46011010O
45010110N
Coding of Alphabetic and Numeric
Characters in BCD
Coding of Alphabetic and Numeric
Characters in BCD
(Continued on next slide)
37
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 8/30Chapter 4: Computer CodesRef. Page
Octal
Equivalent
BCD Code
Character DigitZone
121010000
111001009
101000008
070111007
060110006
050101005
040100004
030011003
020010002
010001001
Coding of Alphabetic and Numeric
Characters in BCD
Coding of Alphabetic and Numeric
Characters in BCD
(Continued from previous slide..)
37
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 9/30Chapter 4: Computer CodesRef. Page
Example
Show the binary digits used to record the word BASE in BCD
Solution:
B = 110010 in BCD binary notation
A = 110001 in BCD binary notation
S = 010010 in BCD binary notation
E = 110101 in BCD binary notation
So the binary digits
110010 110001 010010 110101
B A S E
will record the word BASE in BCD
BCD Coding Scheme (Example 1)BCD Coding Scheme (Example 1)
38
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 10/30Chapter 4: Computer CodesRef. Page
Example
Using octal notation, show BCD coding for the word DIGIT
Solution:
D = 64 in BCD octal notation
I = 71 in BCD octal notation
G = 67 in BCD octal notation
I = 71 in BCD octal notation
T = 23 in BCD octal notation
Hence, BCD coding for the word DIGIT in octal notation will be
64 71 67 71 23
D I G I T
BCD Coding Scheme (Example 2)BCD Coding Scheme (Example 2)
38
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 11/30Chapter 4: Computer CodesRef. Page
§ EBCDIC stands for Extended Binary Coded Decimal
Interchange Code
§ It uses 8 bits to represent a symbol
§ It can represent 256 (28) different characters
EBCDICEBCDIC
38
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 12/30Chapter 4: Computer CodesRef. Page
D100011101J
D200101101K
D300111101L
D401001101M
C910011100I
Hex
EBCDIC Code
Char ZoneDigit
C810001100H
C701111100G
C601101100F
C501011100E
C401001100D
C300111100C
C200101100B
C100011100A
E200101110S
E300111110T
E401001110U
E501011110V
E601101110W
E701111110X
E810001110Y
E910011110Z
D910011101R
Hex
EBCDIC Code
Char
ZoneDigit
D810001101Q
D701111101P
D601101101O
D501011101N
Coding of Alphabetic and Numeric
Characters in EBCDIC
Coding of Alphabetic and Numeric
Characters in EBCDIC
(Continued on next slide)
39
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 13/30Chapter 4: Computer CodesRef. Page
Hexadecima
l Equivalent
EBCDIC Code
Character ZoneDigit
F9100111119
F8100011118
F7011111117
F6011011116
F5010111115
F4010011114
F3001111113
F2001011112
F1000111111
F0000011110
Coding of Alphabetic and Numeric
Characters in EBCDIC
Coding of Alphabetic and Numeric
Characters in EBCDIC
(Continued from previous slide..)
39
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 14/30Chapter 4: Computer CodesRef. Page
§ Zoned decimal numbers are used to represent numeric
values (positive, negative, or unsigned) in EBCDIC
§ A sign indicator (C for plus, D for minus, and F for
unsigned) is used in the zone position of the rightmost
digit
§ Zones for all other digits remain as F, the zone value
for numeric characters in EBCDIC
§ In zoned format, there is only one digit per byte
Zoned Decimal NumbersZoned Decimal Numbers
39
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 15/30Chapter 4: Computer CodesRef. Page
D for negativeF3F4D5-345
C for positiveF3F4C5+345
F for unsignedF3F4F5345
Sign IndicatorEBCDICNumeric Value
Examples Zoned Decimal NumbersExamples Zoned Decimal Numbers
40
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 16/30Chapter 4: Computer CodesRef. Page
§ Packed decimal numbers are formed from zoned decimal
numbers in the following manner:
Step 1: The zone half and the digit half of
the rightmost byte are reversed
Step 2: All remaining zones are dropped out
§ Packed decimal format requires fewer number of bytes
than zoned decimal format for representing a number
§ Numbers represented in packed decimal format can be
used for arithmetic operations
Packed Decimal NumbersPacked Decimal Numbers
39
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 17/30Chapter 4: Computer CodesRef. Page
03456FF3F4F5F63456
345DF3F4D5-345
345CF3F4C5+345
345FF3F4F5345
Sign IndicatorEBCDICNumeric Value
Examples of Conversion of Zoned
Decimal Numbers to Packed Decimal Format
Examples of Conversion of Zoned
Decimal Numbers to Packed Decimal Format
40
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 18/30Chapter 4: Computer CodesRef. Page
Example
Using binary notation, write EBCDIC coding for the word BIT. How
many bytes are required for this representation?
Solution:
B = 1100 0010 in EBCDIC binary notation
I = 1100 1001 in EBCDIC binary notation
T = 1110 0011 in EBCDIC binary notation
Hence, EBCDIC coding for the word BIT in binary notation will be
11000010 11001001 11100011
B I T
3 bytes will be required for this representation because each letter
requires 1 byte (or 8 bits)
EBCDIC Coding SchemeEBCDIC Coding Scheme
40
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 19/30Chapter 4: Computer CodesRef. Page
§ ASCII stands for American Standard Code for
Information Interchange.
§ ASCII is of two types – ASCII-7 and ASCII-8
§ ASCII-7 uses 7 bits to represent a symbol and can
represent 128 (27) different characters
§ ASCII-8 uses 8 bits to represent a symbol and can
represent 256 (28) different characters
§ First 128 characters in ASCII-7 and ASCII-8 are same
ASCIIASCII
40
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 20/30Chapter 4: Computer CodesRef. Page
38100000118
Hexadecimal
Equivalent
ASCII-7 / ASCII-8
Character
DigitZone
39100100119
37011100117
36011000116
35010100115
34010000114
33001100113
32001000112
31000100111
30000000110
Coding of Numeric and
Alphabetic Characters in ASCII
Coding of Numeric and
Alphabetic Characters in ASCII
(Continued on next slide)
42
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 21/30Chapter 4: Computer CodesRef. Page
4D11010100M
4C11000100L
4B10110100K
4910010100I
Hexadecimal
Equivalent
ASCII-7 / ASCII-8
Character
DigitZone
4A10100100J
4810000100H
4701110100G
4601100100F
4501010100E
4401000100D
4300110100C
4200100100B
4100010100A
Coding of Numeric and
Alphabetic Characters in ASCII
Coding of Numeric and
Alphabetic Characters in ASCII
(Continued from previous slide..)
(Continued on next slide)
42
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 22/30Chapter 4: Computer CodesRef. Page
4E11100100N
4F11110100O
5A10100101Z
5810000101X
Hexadecimal
Equivalent
ASCII-7 / ASCII-8
Character
DigitZone
5910010101Y
5701110101W
5601100101V
5501010101U
5401000101T
5300110101S
5200100101R
5100010101Q
5000000101P
Coding of Numeric and
Alphabetic Characters in ASCII
Coding of Numeric and
Alphabetic Characters in ASCII
(Continued from previous slide..)
42
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 23/30Chapter 4: Computer CodesRef. Page
Example
Write binary coding for the word BOY in ASCII-7. How many bytes are required
for this representation?
Solution:
B = 1000010 in ASCII-7 binary notation
O = 1001111 in ASCII-7 binary notation
Y = 1011001 in ASCII-7 binary notation
Hence, binary coding for the word BOY in ASCII-7 will be
1000010 1001111 1011001
B O Y
Since each character in ASCII-7 requires one byte for its representation and
there are 3 characters in the word BOY, 3 bytes will be required for this
representation
ASCII-7 Coding SchemeASCII-7 Coding Scheme
43
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 24/30Chapter 4: Computer CodesRef. Page
Example
Write binary coding for the word SKY in ASCII-8. How many bytes are
required for this representation?
Solution:
S = 01010011 in ASCII-8 binary notation
K = 01001011 in ASCII-8 binary notation
Y = 01011001 in ASCII-8 binary notation
Hence, binary coding for the word SKY in ASCII-8 will be
01010011 01001011 01011001
S K Y
Since each character in ASCII-8 requires one byte for its representation
and there are 3 characters in the word SKY, 3 bytes will be required for
this representation
ASCII-8 Coding SchemeASCII-8 Coding Scheme
43
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 25/30Chapter 4: Computer CodesRef. Page
§ Why Unicode:
§ No single encoding system supports all languages
§ Different encoding systems conflict
§ Unicode features:
§ Provides a consistent way of encoding multilingual
plain text
§ Defines codes for characters used in all major
languages of the world
§ Defines codes for special characters, mathematical
symbols, technical symbols, and diacritics
UnicodeUnicode
44
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 26/30Chapter 4: Computer CodesRef. Page
§ Unicode features (continued):
§ Capacity to encode as many as a million characters
§ Assigns each character a unique numeric value and
name
§ Reserves a part of the code space for private use
§ Affords simplicity and consistency of ASCII, even
corresponding characters have same code
§ Specifies an algorithm for the presentation of text
with bi-directional behavior
§ Encoding Forms
§ UTF-8, UTF-16, UTF-32
UnicodeUnicode
44
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 27/30Chapter 4: Computer CodesRef. Page
§ Collating sequence defines the assigned ordering
among the characters used by a computer
§ Collating sequence may vary, depending on the
type of computer code used by a particular
computer
§ In most computers, collating sequences follow the
following rules:
1. Letters are considered in alphabetic order
(A < B < C … < Z)
2. Digits are considered in numeric order
(0 < 1 < 2 … < 9)
Collating SequenceCollating Sequence
46
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 28/30Chapter 4: Computer CodesRef. Page
Example
Suppose a computer uses EBCDIC as its internal
representation of characters. In which order will this
computer sort the strings 23, A1, 1A?
Solution:
In EBCDIC, numeric characters are treated to be greater
than alphabetic characters. Hence, in the said computer,
numeric characters will be placed after alphabetic
characters and the given string will be treated as:
A1 < 1A < 23
Therefore, the sorted sequence will be: A1, 1A, 23.
Sorting in EBCDICSorting in EBCDIC
46
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 29/30Chapter 4: Computer CodesRef. Page
Example
Suppose a computer uses ASCII for its internal representation of
characters. In which order will this computer sort the strings 23, A1,
1A, a2, 2a, aA, and Aa?
Solution:
In ASCII, numeric characters are treated to be less than alphabetic
characters. Hence, in the said computer, numeric characters will be
placed before alphabetic characters and the given string will be
treated as:
1A < 23 < 2a < A1 < Aa < a2 < aA
Therefore, the sorted sequence will be: 1A, 23, 2a, A1, Aa, a2, and
aA
Sorting in ASCIISorting in ASCII
47
Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha
Slide 30/30Chapter 4: Computer CodesRef. Page
§ Alphabetic data
§ Alphanumeric data
§ American Standard Code for Information Interchange (ASCII)
§ Binary Coded Decimal (BCD) code
§ Byte
§ Collating sequence
§ Computer codes
§ Control characters
§ Extended Binary-Coded Decimal Interchange Code (EBCDIC)
§ Hexadecimal equivalent
§ Numeric data
§ Octal equivalent
§ Packed decimal numbers
§ Unicode
§ Zoned decimal numbers
Key Words/PhrasesKey Words/Phrases
47

More Related Content

What's hot

Why computer engineering
Why computer engineeringWhy computer engineering
Why computer engineeringIsmail El Gayar
 
Parity check, redundancy, and errors
Parity check, redundancy, and errorsParity check, redundancy, and errors
Parity check, redundancy, and errorsKARIMU KHATWABI
 
CG - Output Primitives
CG - Output PrimitivesCG - Output Primitives
CG - Output Primitivesvinay arora
 
Cryptography
CryptographyCryptography
Cryptographyprasham95
 
Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...
Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...
Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...Circle Economy
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for universitySheikh Monirul Hasan
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreterKamal Tamang
 
Best Python Online Training with Live Project by Expert
Best Python Online Training with Live Project by Expert Best Python Online Training with Live Project by Expert
Best Python Online Training with Live Project by Expert QA TrainingHub
 
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm Aparna Joshi
 
Nepal Police(Inspector) Computer Engineer/IT MCQ questions
Nepal Police(Inspector) Computer Engineer/IT MCQ questionsNepal Police(Inspector) Computer Engineer/IT MCQ questions
Nepal Police(Inspector) Computer Engineer/IT MCQ questionsRaiz Maharjan
 
PYTHON CURRENT TREND APPLICATIONS- AN OVERVIEW
PYTHON CURRENT TREND APPLICATIONS- AN OVERVIEWPYTHON CURRENT TREND APPLICATIONS- AN OVERVIEW
PYTHON CURRENT TREND APPLICATIONS- AN OVERVIEWEditorIJAERD
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programmingRutvik Pensionwar
 
Computer Graphics Introduction
Computer Graphics IntroductionComputer Graphics Introduction
Computer Graphics IntroductionGhaffar Khan
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clSaumya Sahu
 

What's hot (20)

Why computer engineering
Why computer engineeringWhy computer engineering
Why computer engineering
 
Parity check, redundancy, and errors
Parity check, redundancy, and errorsParity check, redundancy, and errors
Parity check, redundancy, and errors
 
CG - Output Primitives
CG - Output PrimitivesCG - Output Primitives
CG - Output Primitives
 
Cryptography
CryptographyCryptography
Cryptography
 
Binary number systems
Binary number systemsBinary number systems
Binary number systems
 
Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...
Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...
Light as a Service as enabler for Remanufacturing by Anton Brummelhuis from P...
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for university
 
Python
PythonPython
Python
 
Compiler vs interpreter
Compiler vs interpreterCompiler vs interpreter
Compiler vs interpreter
 
Best Python Online Training with Live Project by Expert
Best Python Online Training with Live Project by Expert Best Python Online Training with Live Project by Expert
Best Python Online Training with Live Project by Expert
 
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm
 
Frame buffer
Frame bufferFrame buffer
Frame buffer
 
Nepal Police(Inspector) Computer Engineer/IT MCQ questions
Nepal Police(Inspector) Computer Engineer/IT MCQ questionsNepal Police(Inspector) Computer Engineer/IT MCQ questions
Nepal Police(Inspector) Computer Engineer/IT MCQ questions
 
Encryption algorithms
Encryption algorithmsEncryption algorithms
Encryption algorithms
 
PYTHON CURRENT TREND APPLICATIONS- AN OVERVIEW
PYTHON CURRENT TREND APPLICATIONS- AN OVERVIEWPYTHON CURRENT TREND APPLICATIONS- AN OVERVIEW
PYTHON CURRENT TREND APPLICATIONS- AN OVERVIEW
 
Programming Design Tools
Programming Design ToolsProgramming Design Tools
Programming Design Tools
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Computer Graphics Introduction
Computer Graphics IntroductionComputer Graphics Introduction
Computer Graphics Introduction
 
Chapter 17 dccn
Chapter 17 dccnChapter 17 dccn
Chapter 17 dccn
 
Computer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 clComputer Fundamentals Chapter 12 cl
Computer Fundamentals Chapter 12 cl
 

Viewers also liked

Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer FundamentalsSaumya Sahu
 
Computer Fundamentals Chapter 07 pam
Computer Fundamentals Chapter  07 pamComputer Fundamentals Chapter  07 pam
Computer Fundamentals Chapter 07 pamSaumya Sahu
 
Computer Fundamentals Chapter 14 os
Computer Fundamentals Chapter 14 osComputer Fundamentals Chapter 14 os
Computer Fundamentals Chapter 14 osSaumya Sahu
 
Chapter 05 computer arithmetic
Chapter 05 computer arithmeticChapter 05 computer arithmetic
Chapter 05 computer arithmeticHareem Aslam
 
Computer Fundamentals Chapter 09 io devices
Computer Fundamentals Chapter 09 io devicesComputer Fundamentals Chapter 09 io devices
Computer Fundamentals Chapter 09 io devicesSaumya Sahu
 
Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Project Student
 
Computer Fundamentals_Chapter 02 bco
Computer Fundamentals_Chapter 02 bcoComputer Fundamentals_Chapter 02 bco
Computer Fundamentals_Chapter 02 bcoSaumya Sahu
 
Chapter19 multimedia-091006115642-phpapp02 (1)
Chapter19 multimedia-091006115642-phpapp02 (1)Chapter19 multimedia-091006115642-phpapp02 (1)
Chapter19 multimedia-091006115642-phpapp02 (1)Jay Patel
 
Chapter 21 c language
Chapter 21 c languageChapter 21 c language
Chapter 21 c languageHareem Aslam
 
08 Numeral systems
08 Numeral systems08 Numeral systems
08 Numeral systemsmaznabili
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebraHareem Aslam
 
How Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCIIHow Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCIISimon Courtois
 
Computer
ComputerComputer
Computer17somya
 
Chapter01 introduction to computer
Chapter01   introduction to computerChapter01   introduction to computer
Chapter01 introduction to computerAinuddin Yousufzai
 
Chapter04 ip addressing networking
Chapter04 ip addressing networkingChapter04 ip addressing networking
Chapter04 ip addressing networkingAinuddin Yousufzai
 

Viewers also liked (20)

Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
 
Computer Fundamentals Chapter 07 pam
Computer Fundamentals Chapter  07 pamComputer Fundamentals Chapter  07 pam
Computer Fundamentals Chapter 07 pam
 
Computer Fundamentals Chapter 14 os
Computer Fundamentals Chapter 14 osComputer Fundamentals Chapter 14 os
Computer Fundamentals Chapter 14 os
 
Chapter 05 computer arithmetic
Chapter 05 computer arithmeticChapter 05 computer arithmetic
Chapter 05 computer arithmetic
 
Computer Fundamentals Chapter 09 io devices
Computer Fundamentals Chapter 09 io devicesComputer Fundamentals Chapter 09 io devices
Computer Fundamentals Chapter 09 io devices
 
Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)
 
Computer Fundamentals_Chapter 02 bco
Computer Fundamentals_Chapter 02 bcoComputer Fundamentals_Chapter 02 bco
Computer Fundamentals_Chapter 02 bco
 
Chapter19 multimedia-091006115642-phpapp02 (1)
Chapter19 multimedia-091006115642-phpapp02 (1)Chapter19 multimedia-091006115642-phpapp02 (1)
Chapter19 multimedia-091006115642-phpapp02 (1)
 
Chapter 10 cs
Chapter 10 csChapter 10 cs
Chapter 10 cs
 
Chapter 21 c language
Chapter 21 c languageChapter 21 c language
Chapter 21 c language
 
08 Numeral systems
08 Numeral systems08 Numeral systems
08 Numeral systems
 
Chapter 16 bdp
Chapter 16 bdpChapter 16 bdp
Chapter 16 bdp
 
Chapter 15 asp
Chapter 15 aspChapter 15 asp
Chapter 15 asp
 
Chapter 06 boolean algebra
Chapter 06 boolean algebraChapter 06 boolean algebra
Chapter 06 boolean algebra
 
How Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCIIHow Unidecoder Transliterates UTF-8 to ASCII
How Unidecoder Transliterates UTF-8 to ASCII
 
Computer
ComputerComputer
Computer
 
Chapter03 number system
Chapter03   number systemChapter03   number system
Chapter03 number system
 
Chapter01 introduction to computer
Chapter01   introduction to computerChapter01   introduction to computer
Chapter01 introduction to computer
 
Chapter04 ip addressing networking
Chapter04 ip addressing networkingChapter04 ip addressing networking
Chapter04 ip addressing networking
 
Chapter05 secondary storage
Chapter05   secondary storageChapter05   secondary storage
Chapter05 secondary storage
 

Similar to Chapter 04 computer codes

Chapter 03 number system
Chapter 03 number systemChapter 03 number system
Chapter 03 number systemIIUI
 
Chapter 03 number system 3o-p
Chapter 03 number system 3o-pChapter 03 number system 3o-p
Chapter 03 number system 3o-pIIUI
 
Chapter 03 number system 2o-p
Chapter 03 number system 2o-pChapter 03 number system 2o-p
Chapter 03 number system 2o-pIIUI
 
Chapter 05 computer arithmetic
Chapter 05 computer arithmeticChapter 05 computer arithmetic
Chapter 05 computer arithmeticIIUI
 
Chapter 05 computer arithmetic 2o-p
Chapter 05 computer arithmetic 2o-pChapter 05 computer arithmetic 2o-p
Chapter 05 computer arithmetic 2o-pIIUI
 
Chapter 09 io devices
Chapter 09 io devicesChapter 09 io devices
Chapter 09 io devicesIIUI
 
Chapter 09 io devices
Chapter 09 io devicesChapter 09 io devices
Chapter 09 io devicesHareem Aslam
 
input output devices
input output devicesinput output devices
input output devicesuafridi
 
Chapter 09 io devices 3o-p
Chapter 09 io devices 3o-pChapter 09 io devices 3o-p
Chapter 09 io devices 3o-pIIUI
 
computercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODEcomputercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODEdbmscse61
 
Chapter 09 io devices 2o-p
Chapter 09 io devices 2o-pChapter 09 io devices 2o-p
Chapter 09 io devices 2o-pIIUI
 
Computer Arithmetic computer fundamentals.pdf
Computer Arithmetic  computer fundamentals.pdfComputer Arithmetic  computer fundamentals.pdf
Computer Arithmetic computer fundamentals.pdfGafryMahmoud
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & DecoderPritam Shil
 

Similar to Chapter 04 computer codes (20)

Chapter 03 number system
Chapter 03 number systemChapter 03 number system
Chapter 03 number system
 
Chapter 03 number system 3o-p
Chapter 03 number system 3o-pChapter 03 number system 3o-p
Chapter 03 number system 3o-p
 
Chapter 03 number system 2o-p
Chapter 03 number system 2o-pChapter 03 number system 2o-p
Chapter 03 number system 2o-p
 
C programming part2
C programming part2C programming part2
C programming part2
 
C programming part2
C programming part2C programming part2
C programming part2
 
C programming part2
C programming part2C programming part2
C programming part2
 
. computer codes
. computer codes. computer codes
. computer codes
 
Chapter 05 computer arithmetic
Chapter 05 computer arithmeticChapter 05 computer arithmetic
Chapter 05 computer arithmetic
 
Chapter 05 computer arithmetic 2o-p
Chapter 05 computer arithmetic 2o-pChapter 05 computer arithmetic 2o-p
Chapter 05 computer arithmetic 2o-p
 
Intro
IntroIntro
Intro
 
Chapter 09 io devices
Chapter 09 io devicesChapter 09 io devices
Chapter 09 io devices
 
Chapter07 io devices
Chapter07   io devicesChapter07   io devices
Chapter07 io devices
 
Chapter 09 io devices
Chapter 09 io devicesChapter 09 io devices
Chapter 09 io devices
 
input output devices
input output devicesinput output devices
input output devices
 
Chapter 09 io devices 3o-p
Chapter 09 io devices 3o-pChapter 09 io devices 3o-p
Chapter 09 io devices 3o-p
 
computercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODEcomputercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODE
 
Chapter 09 io devices 2o-p
Chapter 09 io devices 2o-pChapter 09 io devices 2o-p
Chapter 09 io devices 2o-p
 
DEL LAB MANUAL
DEL LAB MANUALDEL LAB MANUAL
DEL LAB MANUAL
 
Computer Arithmetic computer fundamentals.pdf
Computer Arithmetic  computer fundamentals.pdfComputer Arithmetic  computer fundamentals.pdf
Computer Arithmetic computer fundamentals.pdf
 
Digital electronics- BCD & Decoder
Digital electronics- BCD & DecoderDigital electronics- BCD & Decoder
Digital electronics- BCD & Decoder
 

More from Hareem Aslam

Chapter 1 Basic Concepts
Chapter 1 Basic ConceptsChapter 1 Basic Concepts
Chapter 1 Basic ConceptsHareem Aslam
 
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Hareem Aslam
 
Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...
Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...
Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...Hareem Aslam
 
Solution Manual : Chapter - 05 Integration
Solution Manual : Chapter - 05 IntegrationSolution Manual : Chapter - 05 Integration
Solution Manual : Chapter - 05 IntegrationHareem Aslam
 
Solution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and ContinuitySolution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and ContinuityHareem Aslam
 
Solution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 FunctionsSolution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 FunctionsHareem Aslam
 
Personality Development
Personality DevelopmentPersonality Development
Personality DevelopmentHareem Aslam
 
Chapter 19 multimedia
Chapter 19 multimediaChapter 19 multimedia
Chapter 19 multimediaHareem Aslam
 
Chapter 18 internet
Chapter 18 internetChapter 18 internet
Chapter 18 internetHareem Aslam
 
Chapter 08 secondary storage
Chapter 08 secondary storageChapter 08 secondary storage
Chapter 08 secondary storageHareem Aslam
 
Chapter 01 introduction to Computer
Chapter 01 introduction to ComputerChapter 01 introduction to Computer
Chapter 01 introduction to ComputerHareem Aslam
 
How to be smart enough when stepping into a professional life
How to be smart enough when stepping into a professional lifeHow to be smart enough when stepping into a professional life
How to be smart enough when stepping into a professional lifeHareem Aslam
 
Digital logic and computer design
Digital logic and computer design Digital logic and computer design
Digital logic and computer design Hareem Aslam
 

More from Hareem Aslam (20)

Chapter 1 Basic Concepts
Chapter 1 Basic ConceptsChapter 1 Basic Concepts
Chapter 1 Basic Concepts
 
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
Solution Manual : Chapter - 07 Exponential, Logarithmic and Inverse Trigonome...
 
Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...
Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...
Solution Manual : Chapter - 06 Application of the Definite Integral in Geomet...
 
Solution Manual : Chapter - 05 Integration
Solution Manual : Chapter - 05 IntegrationSolution Manual : Chapter - 05 Integration
Solution Manual : Chapter - 05 Integration
 
Solution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and ContinuitySolution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and Continuity
 
Solution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 FunctionsSolution Manual : Chapter - 01 Functions
Solution Manual : Chapter - 01 Functions
 
Personality Development
Personality DevelopmentPersonality Development
Personality Development
 
Chapter 20 coc
Chapter 20 cocChapter 20 coc
Chapter 20 coc
 
Chapter 19 multimedia
Chapter 19 multimediaChapter 19 multimedia
Chapter 19 multimedia
 
Chapter 18 internet
Chapter 18 internetChapter 18 internet
Chapter 18 internet
 
Chapter 14 os
Chapter 14 osChapter 14 os
Chapter 14 os
 
Chapter 13 sio
Chapter 13 sioChapter 13 sio
Chapter 13 sio
 
Chapter 12 cl
Chapter 12 clChapter 12 cl
Chapter 12 cl
 
Chapter 11 pcp
Chapter 11 pcpChapter 11 pcp
Chapter 11 pcp
 
Chapter 10 cs
Chapter 10 csChapter 10 cs
Chapter 10 cs
 
Chapter 08 secondary storage
Chapter 08 secondary storageChapter 08 secondary storage
Chapter 08 secondary storage
 
Chapter 07 pam
Chapter 07 pamChapter 07 pam
Chapter 07 pam
 
Chapter 01 introduction to Computer
Chapter 01 introduction to ComputerChapter 01 introduction to Computer
Chapter 01 introduction to Computer
 
How to be smart enough when stepping into a professional life
How to be smart enough when stepping into a professional lifeHow to be smart enough when stepping into a professional life
How to be smart enough when stepping into a professional life
 
Digital logic and computer design
Digital logic and computer design Digital logic and computer design
Digital logic and computer design
 

Recently uploaded

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Chapter 04 computer codes

  • 1. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 1/30Chapter 4: Computer CodesRef. Page
  • 2. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 2/30Chapter 4: Computer CodesRef. Page In this chapter you will learn about: § Computer data § Computer codes: representation of data in binary § Most commonly used computer codes § Collating sequence Learning ObjectivesLearning Objectives 36
  • 3. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 3/30Chapter 4: Computer CodesRef. Page § Numeric Data consists of only numbers 0, 1, 2, …, 9 § Alphabetic Data consists of only the letters A, B, C, …, Z, in both uppercase and lowercase, and blank character § Alphanumeric Data is a string of symbols where a symbol may be one of the letters A, B, C, …, Z, in either uppercase or lowercase, or one of the digits 0, 1, 2, …, 9, or a special character, such as + - * / , . ( ) = etc. Data TypesData Types 36
  • 4. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 4/30Chapter 4: Computer CodesRef. Page § Computer codes are used for internal representation of data in computers § As computers use binary numbers for internal data representation, computer codes use binary coding schemes § In binary coding, every symbol that appears in the data is represented by a group of bits § The group of bits used to represent a symbol is called a byte Computer CodesComputer Codes (Continued on next slide) 36
  • 5. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 5/30Chapter 4: Computer CodesRef. Page § As most modern coding schemes use 8 bits to represent a symbol, the term byte is often used to mean a group of 8 bits § Commonly used computer codes are BCD, EBCDIC, and ASCII Computer CodesComputer Codes (Continued from previous slide..) 36
  • 6. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 6/30Chapter 4: Computer CodesRef. Page § BCD stands for Binary Coded Decimal § It is one of the early computer codes § It uses 6 bits to represent a symbol § It can represent 64 (26) different characters BCDBCD 36
  • 7. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 7/30Chapter 4: Computer CodesRef. Page 43001110L 44010010M 41000110J 42001010K 71100111I OctalBCD Code Char DigitZone 70100011H 67011111G 66011011F 65010111E 64010011D 63001111C 62001011B 61000111A 22001001S 23001101T 24010001U 25010101V 26011001W 27011101X 30100001Y 31100101Z 51100110R OctalBCD Code Char DigitZone 50100010Q 47011110P 46011010O 45010110N Coding of Alphabetic and Numeric Characters in BCD Coding of Alphabetic and Numeric Characters in BCD (Continued on next slide) 37
  • 8. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 8/30Chapter 4: Computer CodesRef. Page Octal Equivalent BCD Code Character DigitZone 121010000 111001009 101000008 070111007 060110006 050101005 040100004 030011003 020010002 010001001 Coding of Alphabetic and Numeric Characters in BCD Coding of Alphabetic and Numeric Characters in BCD (Continued from previous slide..) 37
  • 9. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 9/30Chapter 4: Computer CodesRef. Page Example Show the binary digits used to record the word BASE in BCD Solution: B = 110010 in BCD binary notation A = 110001 in BCD binary notation S = 010010 in BCD binary notation E = 110101 in BCD binary notation So the binary digits 110010 110001 010010 110101 B A S E will record the word BASE in BCD BCD Coding Scheme (Example 1)BCD Coding Scheme (Example 1) 38
  • 10. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 10/30Chapter 4: Computer CodesRef. Page Example Using octal notation, show BCD coding for the word DIGIT Solution: D = 64 in BCD octal notation I = 71 in BCD octal notation G = 67 in BCD octal notation I = 71 in BCD octal notation T = 23 in BCD octal notation Hence, BCD coding for the word DIGIT in octal notation will be 64 71 67 71 23 D I G I T BCD Coding Scheme (Example 2)BCD Coding Scheme (Example 2) 38
  • 11. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 11/30Chapter 4: Computer CodesRef. Page § EBCDIC stands for Extended Binary Coded Decimal Interchange Code § It uses 8 bits to represent a symbol § It can represent 256 (28) different characters EBCDICEBCDIC 38
  • 12. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 12/30Chapter 4: Computer CodesRef. Page D100011101J D200101101K D300111101L D401001101M C910011100I Hex EBCDIC Code Char ZoneDigit C810001100H C701111100G C601101100F C501011100E C401001100D C300111100C C200101100B C100011100A E200101110S E300111110T E401001110U E501011110V E601101110W E701111110X E810001110Y E910011110Z D910011101R Hex EBCDIC Code Char ZoneDigit D810001101Q D701111101P D601101101O D501011101N Coding of Alphabetic and Numeric Characters in EBCDIC Coding of Alphabetic and Numeric Characters in EBCDIC (Continued on next slide) 39
  • 13. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 13/30Chapter 4: Computer CodesRef. Page Hexadecima l Equivalent EBCDIC Code Character ZoneDigit F9100111119 F8100011118 F7011111117 F6011011116 F5010111115 F4010011114 F3001111113 F2001011112 F1000111111 F0000011110 Coding of Alphabetic and Numeric Characters in EBCDIC Coding of Alphabetic and Numeric Characters in EBCDIC (Continued from previous slide..) 39
  • 14. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 14/30Chapter 4: Computer CodesRef. Page § Zoned decimal numbers are used to represent numeric values (positive, negative, or unsigned) in EBCDIC § A sign indicator (C for plus, D for minus, and F for unsigned) is used in the zone position of the rightmost digit § Zones for all other digits remain as F, the zone value for numeric characters in EBCDIC § In zoned format, there is only one digit per byte Zoned Decimal NumbersZoned Decimal Numbers 39
  • 15. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 15/30Chapter 4: Computer CodesRef. Page D for negativeF3F4D5-345 C for positiveF3F4C5+345 F for unsignedF3F4F5345 Sign IndicatorEBCDICNumeric Value Examples Zoned Decimal NumbersExamples Zoned Decimal Numbers 40
  • 16. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 16/30Chapter 4: Computer CodesRef. Page § Packed decimal numbers are formed from zoned decimal numbers in the following manner: Step 1: The zone half and the digit half of the rightmost byte are reversed Step 2: All remaining zones are dropped out § Packed decimal format requires fewer number of bytes than zoned decimal format for representing a number § Numbers represented in packed decimal format can be used for arithmetic operations Packed Decimal NumbersPacked Decimal Numbers 39
  • 17. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 17/30Chapter 4: Computer CodesRef. Page 03456FF3F4F5F63456 345DF3F4D5-345 345CF3F4C5+345 345FF3F4F5345 Sign IndicatorEBCDICNumeric Value Examples of Conversion of Zoned Decimal Numbers to Packed Decimal Format Examples of Conversion of Zoned Decimal Numbers to Packed Decimal Format 40
  • 18. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 18/30Chapter 4: Computer CodesRef. Page Example Using binary notation, write EBCDIC coding for the word BIT. How many bytes are required for this representation? Solution: B = 1100 0010 in EBCDIC binary notation I = 1100 1001 in EBCDIC binary notation T = 1110 0011 in EBCDIC binary notation Hence, EBCDIC coding for the word BIT in binary notation will be 11000010 11001001 11100011 B I T 3 bytes will be required for this representation because each letter requires 1 byte (or 8 bits) EBCDIC Coding SchemeEBCDIC Coding Scheme 40
  • 19. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 19/30Chapter 4: Computer CodesRef. Page § ASCII stands for American Standard Code for Information Interchange. § ASCII is of two types – ASCII-7 and ASCII-8 § ASCII-7 uses 7 bits to represent a symbol and can represent 128 (27) different characters § ASCII-8 uses 8 bits to represent a symbol and can represent 256 (28) different characters § First 128 characters in ASCII-7 and ASCII-8 are same ASCIIASCII 40
  • 20. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 20/30Chapter 4: Computer CodesRef. Page 38100000118 Hexadecimal Equivalent ASCII-7 / ASCII-8 Character DigitZone 39100100119 37011100117 36011000116 35010100115 34010000114 33001100113 32001000112 31000100111 30000000110 Coding of Numeric and Alphabetic Characters in ASCII Coding of Numeric and Alphabetic Characters in ASCII (Continued on next slide) 42
  • 21. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 21/30Chapter 4: Computer CodesRef. Page 4D11010100M 4C11000100L 4B10110100K 4910010100I Hexadecimal Equivalent ASCII-7 / ASCII-8 Character DigitZone 4A10100100J 4810000100H 4701110100G 4601100100F 4501010100E 4401000100D 4300110100C 4200100100B 4100010100A Coding of Numeric and Alphabetic Characters in ASCII Coding of Numeric and Alphabetic Characters in ASCII (Continued from previous slide..) (Continued on next slide) 42
  • 22. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 22/30Chapter 4: Computer CodesRef. Page 4E11100100N 4F11110100O 5A10100101Z 5810000101X Hexadecimal Equivalent ASCII-7 / ASCII-8 Character DigitZone 5910010101Y 5701110101W 5601100101V 5501010101U 5401000101T 5300110101S 5200100101R 5100010101Q 5000000101P Coding of Numeric and Alphabetic Characters in ASCII Coding of Numeric and Alphabetic Characters in ASCII (Continued from previous slide..) 42
  • 23. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 23/30Chapter 4: Computer CodesRef. Page Example Write binary coding for the word BOY in ASCII-7. How many bytes are required for this representation? Solution: B = 1000010 in ASCII-7 binary notation O = 1001111 in ASCII-7 binary notation Y = 1011001 in ASCII-7 binary notation Hence, binary coding for the word BOY in ASCII-7 will be 1000010 1001111 1011001 B O Y Since each character in ASCII-7 requires one byte for its representation and there are 3 characters in the word BOY, 3 bytes will be required for this representation ASCII-7 Coding SchemeASCII-7 Coding Scheme 43
  • 24. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 24/30Chapter 4: Computer CodesRef. Page Example Write binary coding for the word SKY in ASCII-8. How many bytes are required for this representation? Solution: S = 01010011 in ASCII-8 binary notation K = 01001011 in ASCII-8 binary notation Y = 01011001 in ASCII-8 binary notation Hence, binary coding for the word SKY in ASCII-8 will be 01010011 01001011 01011001 S K Y Since each character in ASCII-8 requires one byte for its representation and there are 3 characters in the word SKY, 3 bytes will be required for this representation ASCII-8 Coding SchemeASCII-8 Coding Scheme 43
  • 25. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 25/30Chapter 4: Computer CodesRef. Page § Why Unicode: § No single encoding system supports all languages § Different encoding systems conflict § Unicode features: § Provides a consistent way of encoding multilingual plain text § Defines codes for characters used in all major languages of the world § Defines codes for special characters, mathematical symbols, technical symbols, and diacritics UnicodeUnicode 44
  • 26. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 26/30Chapter 4: Computer CodesRef. Page § Unicode features (continued): § Capacity to encode as many as a million characters § Assigns each character a unique numeric value and name § Reserves a part of the code space for private use § Affords simplicity and consistency of ASCII, even corresponding characters have same code § Specifies an algorithm for the presentation of text with bi-directional behavior § Encoding Forms § UTF-8, UTF-16, UTF-32 UnicodeUnicode 44
  • 27. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 27/30Chapter 4: Computer CodesRef. Page § Collating sequence defines the assigned ordering among the characters used by a computer § Collating sequence may vary, depending on the type of computer code used by a particular computer § In most computers, collating sequences follow the following rules: 1. Letters are considered in alphabetic order (A < B < C … < Z) 2. Digits are considered in numeric order (0 < 1 < 2 … < 9) Collating SequenceCollating Sequence 46
  • 28. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 28/30Chapter 4: Computer CodesRef. Page Example Suppose a computer uses EBCDIC as its internal representation of characters. In which order will this computer sort the strings 23, A1, 1A? Solution: In EBCDIC, numeric characters are treated to be greater than alphabetic characters. Hence, in the said computer, numeric characters will be placed after alphabetic characters and the given string will be treated as: A1 < 1A < 23 Therefore, the sorted sequence will be: A1, 1A, 23. Sorting in EBCDICSorting in EBCDIC 46
  • 29. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 29/30Chapter 4: Computer CodesRef. Page Example Suppose a computer uses ASCII for its internal representation of characters. In which order will this computer sort the strings 23, A1, 1A, a2, 2a, aA, and Aa? Solution: In ASCII, numeric characters are treated to be less than alphabetic characters. Hence, in the said computer, numeric characters will be placed before alphabetic characters and the given string will be treated as: 1A < 23 < 2a < A1 < Aa < a2 < aA Therefore, the sorted sequence will be: 1A, 23, 2a, A1, Aa, a2, and aA Sorting in ASCIISorting in ASCII 47
  • 30. Computer Fundamentals: Pradeep K. Sinha & Priti SinhaComputer Fundamentals: Pradeep K. Sinha & Priti Sinha Slide 30/30Chapter 4: Computer CodesRef. Page § Alphabetic data § Alphanumeric data § American Standard Code for Information Interchange (ASCII) § Binary Coded Decimal (BCD) code § Byte § Collating sequence § Computer codes § Control characters § Extended Binary-Coded Decimal Interchange Code (EBCDIC) § Hexadecimal equivalent § Numeric data § Octal equivalent § Packed decimal numbers § Unicode § Zoned decimal numbers Key Words/PhrasesKey Words/Phrases 47