Lab Tutorial 3
Lab Tutorial 3
LAB TUTORIAL 3
DATA REPRESENTATION
Octal number
1. Octal also known as Base 8 system or octal system number because it has 8 digits from 0-7.
2. It is one of system number to represent binary system that functional as machine language.
1. Computer system and electronic components use binary number to store the data.
2. Common method that can be used to convert decimal to octal:
i. Decimal divide by 8, each time is remainder is obtained from the previous digit.
ii. The first remainder obtained is the least significant digit (LSD) and the last remainder is the
most significant digit (MSD).
iii. Once the quotient is less than 8, we obtain the octal number by writing the remainder in
reverse order.
1. This conversion can be done by using it base number. Its reverse method from decimal to octal.
Conversion of octal number to binary.
1. Since there are only 8 digits (0-7 digits) in octal representation system and its base (i.e., 8) is equivalent
to 23 = 8.
2. So, you can represent each digit of octal in group of 3 bits in binary number.
(XXX2 = X8)
1. Split the digits of a given binary number into group from right to left side, each containing of 4 bits
2. Find the equivalent octal number for each group
3. Write the all-group’s octal numbers together maintaining the group order provides the equivalent octal
number for the given binary.
EXERCISE
1. Complete questions below with calculation steps to convert the following decimal to base 8 system
using method divide by 8 and use the remainder.
a) 656610 =
6566 / 8 = remainder
remainder
remainder
remainder
remainder
b) 5107710 =
51077 / 8 = remainder
remainder
remainder
remainder
remainder
a) 33778 =
83 82 81 80
b) 124528 =
83 82 81 80
3. Complete questions below with calculation step to convert base 8 to binary number.
Split each digit in base 8 to three digit in base 2, using the three-digit base 2 equivalent.
a) 758 =
75
b) 5368 =
536
c) 22708 =
2270
d) 643148 =
64314
a) 11112 =
b) 100001102 =
c) 110111011002 =
d) 1110100011012 =
5. Show step to convert text “BAIT” from the decimal ASCII code to base 8 using method divide by
8 and use the remainder.