Digital Logic Design BC220410792

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Digital Logic Design (CS302)

Assignment # 01
NAME : Syeda Maheen Fatima
STD ID : BC220410792

Question No 01:
You are required to perform the following conversion and submit your answer in
Hexadecimal Number System.
1ADE16 + 73218 + 1010110012 - 2910 = ( )16

Solution:
To solve this problem, we need to convert all the numbers to a common base, by
performing arithmetic operations, and then convert the result back to the
hexadecimal (base 16) system.

Given:
Step 1: Convert all numbers to decimal (Base 10)
1. Convert 1ADE16 to decimal:
We know that,
a. A in decimal is equal to 10
b. D in decimal is equal to 13
c. E in decimal is equal to 14

So,
1ADE16 = 1*163 + 10*162 + 13 *161 + 14*160
= 1*4096 + 10*256 + 13*16 + 14* 1
= 4096 + 2560 + 208 +14
= 687810
2. Now, Convert 73218 to Decimal:
73218 = 7*83 + 3*82 + 2*81 + 1*80
= 7*512 + 3*64 + 2*8 + 1*1
= 3584 +192 +16 +1
= 379310
3. Convert 1010110012 to decimal:
1010110012 = 1*28 + 0*27 +1*26 +0*25 +1*24 + 1*23 +0*22 + 0*21 +1*20
= 1*256+0*+128 + 1*64+ 0*32+ 1*16+ 1*8+ 0*4+ 0*2+1*1
= 256 + 0 + 64 + 0 +16 + 8 + 0 + 0 + 1
= 34510
4. Convert 2910 to decimal:
2910 is a already in decimal.

Step 2: Now perform the arithmetic operation in decimal:

1ADE16 + 73218 + 1010110012 - 2910 = 687810 + 379310 - 34510 -2910


= 6878 + 3793 - 345 -29
= 1192310

Step 3: Convert the result back to Hexadecimal:


As we know that the hexadecimal number starts from 0 and ends to
16. That is why we know divide each number with 16.

Step Division Quotient Remainder Hexadecimal Digit

1 11923/16 745 3 3

2 745/16 46 9 9

3 46/16 2 14 E

4 2/16 0 2 2

So, the hexadecimal digits are obtained by reading the remainders from bottom
to top. Hence, The hexadecimal digits are 2E93.

Result:
By performing the operations the conversion of given numbers in
hexadecimal number is :
1192310 = 2E9310

You might also like