DevoxxFR 2024 Reproducible Builds with Apache Maven
Data representation
1. CONTENTS
Introduction of Data Representation.
Data Representation within the computer.
What is number system?
Define the following:-
a) Binary numbers
b) Octal numbers
c) Hexadecimal numbers
d) Decimal number system
e) Memory drumps
Types of number systems.
2 6:43 AM
2. CONTENTS (cont…)
Relationship among
Decimal,Hexadecimal,Binary,and Octal number
systems.
Binary addition & sub.
Character representation.
Types of conversions to convert numbers from
one base to another.
3 6:43 AM
3. INTRODUCTION OF DATA
REPRESENTATION
Data is represented in the computer using binary
value of 0&1.And also explain such as binary
number system,octal number system and
hexadecimal number system.This unit also
describes how to represent various other
characters such as BCD,EBCDIC & ASCII.
4 6:43 AM
4. DATA REPRESENTATION WITHIN
THE COMPUTER
We need to data represented in the computer by
electrical components such as
transitors,integrated circuits,semiconductors and
wires.All information can therefore be
represented within the computer by the
presence(ON) or absence(OFF) these various
signals.Let us now understsnd some commonly
used terms:-
BITS
NIBBLE
BYTES
5 WORD 6:43 AM
5. What is number system
Ten separate symbols 0,1,2,3,4,5,6,7,8,9are used
to represent ten decimal digits.
Ex-The decimal number 6498 as an example to
explain the weight of each digit of the number.
Solution:-6498=6000+400+90+8
=6*10*10*10+4*10*10+9*10+8*10*0.
6 6:43 AM
6. Define the following:-
BINARY NUMBERS-The base or radix of the
binary number system is 2.It uses only two
digits,0 &1.
Ex-The binary number 1101as an example to
explain the weight of each bit of the number.
Solution:-1101=1*2*2*2+1*2*2+0*2*1+1*2*0
=8+4+0+1=13 (decimal number)
OCTAL NUMBERS-An octal system has eight
digits represented as 0,1,2,3,4,5,6,7.
7 6:43 AM
7. HEXADECIMAL NUMBERS-The hexadecimal
system has sixteen digits, which are represented
as 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
DECIMAL NUMBER SYSTEM-It uses base
10,which means that it uses 10 digits
0,1,2,3,4,5,6,7,8,$9 to perform an operations.
MEMORY DRUMPS-A commonly used way of
doing this is to print/display raw memory contents,
which is called memory drump.
8 6:43 AM
8. TYPES OF NUMBER SYSTEMS:-
NON-POSITIONAL In this system, we have
symbols such as I FOR 1.It is very difficult to
perform airthemetic with such a number system.
POSITIONAL There are only a few symbols
called digits. These symbols represent different
values,depending on the position they occupy in
a number.
9 6:43 AM
9. Relationship among
decimal,hexadecimal,binary,octal number
system
DECIMAL HEXADECIMA BINARY OCTAL
L
0 0 0 0
1 1 1 1
2 2 10 2
3 3 11 3
4 4 100 4
5 5 101 5
6 6 110 6
10 6:43 AM
10. Binary addition and sub.
a) Binary addition:-
e.g.- 1001 (9 decimal no.)
+0101 (5 decimal no.)
1110 (14 decimal no.)
b) Binary substraction:-
e.g.- 1110 (14 decimal no.)
0101 (-5 decimal no.)
1001 (9 decimal no.)
11 6:43 AM
11. Character representation
1. BCD It stands for binary coded decimal it is
one of the early computer codes.In BCD
code,each digit of a decimal no. is represented
by its binary equivalent instead of converting
entire decimal value to binary no.
Decimal digit BCD equivalent
0 0000
1 0001
2 0010
3 0011
12
4 0100 6:43 AM
12. Type of conversions to convert
from one base to another
a) Converting from another base to decimal.
b) Converting from decimal to another base.
c) Converting from a base other than 10 to
another base other than 10.
d) Shortcut method for binary to octal
conversion.
e) Shortcut method for octal to binary
conversion.
f) Shortcut method for binary to
13 hexadecimal conversion. 6:43 AM