Cc1 Module 3 Data Representation and Number System
Cc1 Module 3 Data Representation and Number System
Pre-Requisite None
Department: College of Computer Studies Week 4
Data Representation and Number System Module 3
LEARNING OUTCOMES
INTRODUCTION
Data Representation
Computer is one among the breakthroughs of development in the world. People can use
computers in many ways like accessing information and communicating it with others.
Data represented inside the computer takes the form of an electronic signal. To process,
computers convert data to a series of 1’s and 0’s called binary codes. 1 represents on state and
0 represents off state.
COURSE CONTENT
Number System
Example:
Decimal to Binary To check your answer, apply the place value
3001
0 2
Place value
15 3 1 25 12 6 3 1
2 300 0 75 7 8 9 4 2 1 6 6 4 2 6 8 4 2 1 Multipl
15 3 1 y
300 0 74 6 8 8 4 2 1 0 0 1 0 1 1 0 0
25 3
0 0 1 1 0 1 0 0 6 0 0 2 0 8 4 0 0 300
Add Sum
45010 8 7 0 28 - 10
45 5
8 0 6 7 64 8 1
44 5
8 6 7 0 2
2 0 1x2 = 2
8x0 = 0
44
Final answer: 702 8 64 x 7 = 8
45
0
To check your answer, apply the
Decimal to Hexadecimal place value
256 16 1
16 750 46 2 2 E E
736 32 14 x 1 =
14 14 14 x 16 =
2 x 256 =
Final answer: 2E E16
Binary to Octal
1 0 0 1 0 1 1 0 02 to 8
Apply to positional value 4 2 1, group the given by 3 starting from the extreme
right.
1 0 0 1 0 1 1 0 0
4 2 1 4 2 1 4 2 1
4 5 4
Octal to Binary
4 5 4
4 5 4
4 2 1 4 2 1 4 2 1
4 5 4
4 2 1 4 2 1 4 2 1
1 0 0 1 0 1 1 0 0
Final answer: 1 0 0 1 0 1 1 0 02
Binary to Hexadecimal
1 0 0 1 0 1 1 0 02 to 16
Apply to positional value 8 4 2 1, group the given by 4 starting from the extreme
right.
0 0 0 1 0 0 1 0 1 1 0 0
8 4 2 1 8 4 2 1 8 4 2 1
1 2 12 = C
Hexadecimal to Binary
_______
12 C 16 to _ 2
Write the given octal number with space in between, and apply the positional value 8 4
21
1 2 C
8 4 2 1 8 4 2 1 8 4 2 1
1 2 C
8 4 2 1 8 4 2 1 8 4 2 1
0 0 0 1 0 0 1 0 1 1 0 0
Final answer: 1 0 0 1 0 1 1 0 0
Octal to Hexadecimal
to
ex. 454 8 ______ 16
4 5 4
4 5 4
4 2 1 4 2 1 4 2 1
1 0 0 1 0 1 1 0 0
1 0 0 1 0 1 1 0 0
1 0 0 1 0 1 1 0 0
1 8 4 2 1 8 4 2 1
1 0 0 1 0 1 1 0 0
1 8 4 2 1 8 4 2 1
8 + 4 = 12 = C
Final answer: 1 2 C
Hexadecimal to Binary
_______
12 C 16 to _ 2
Write the given octal number with space in between, and apply the positional value 8 4
21
1 2 C
8 4 2 1 8 4 2 1 8 4 2 1
1 2 C
8 4 2 1 8 4 2 1 8 4 2 1
0 0 0 1 0 0 1 0 1 1 0 0
Final answer: 1 0 0 1 0 1 1 0 0
Octal to Hexadecimal
1. Apply Octal to Binary
2. Apply Binary to Hexadecimal
to
ex. 454 8 ______ 16
4 5 4
4 5 4
4 2 1 4 2 1 4 2 1
4 5 4
4 2 1 4 2 1 4 2 1
1 0 0 1 0 1 1 0 0
1 0 0 1 0 1 1 0 0
1 0 0 1 0 1 1 0 0
1 8 4 2 1 8 4 2 1
1 0 0 1 0 1 1 0 0
1 8 4 2 1 8 4 2 1
8 + 4 = 12 = C
Final answer: 1 2 C
Hexadecimal to Octal
LEARNING ACTIVITIES
ASSIGNMENT
Assignments No. 4
Search on the following:
1. Number conversion
ASSESSMENT/EVALUATION
RELATED READINGS/REFERENCES