Number System Conversions Assignment
1. Convert Octal to Binary and Vice Versa (2 examples each)
a) Octal to Binary
Example 1: Octal number 345
Step 1: Write each octal digit as a 3-bit binary number.
3 = 011, 4 = 100, 5 = 101
Step 2: Combine all binary groups together.
Binary = 011100101
Example 2: Octal number 670
Step 1: Write each octal digit as a 3-bit binary number.
6 = 110, 7 = 111, 0 = 000
Step 2: Combine all binary groups together.
Binary = 110111000
b) Binary to Octal
Example 1: Binary number 101101
Step 1: Group binary digits into sets of 3 from the right side.
Groups: 101 101
Step 2: Convert each group into octal digits.
101 = 5, 101 = 5
Step 3: Combine digits to get Octal = 55
Example 2: Binary number 11100100
Step 1: Group into sets of 3 bits from the right: 011 100 100
Step 2: Convert each group: 011 = 3, 100 = 4, 100 = 4
Step 3: Combine digits to get Octal = 344
2. Convert Hexadecimal to Binary (2 examples)
Example 1: Hexadecimal number 4B3
Step 1: Write each hex digit as a 4-bit binary number.
4 = 0100, B = 1011, 3 = 0011
Step 2: Combine all binary groups together.
Binary = 010010110011
Example 2: Hexadecimal number F2
Step 1: Write each hex digit as a 4-bit binary number.
F = 1111, 2 = 0010
Step 2: Combine: Binary = 11110010
3. Use two examples of each on how to subtract Binary numbers
Example 1:
Binary numbers: 10110 and 01101
Step 1: Line up the numbers:
10110
- 01101
--------
01001
Step 2: Subtract each bit from right to left (borrow when needed).
Final Answer: 01001