Assignment No. 1: Digital Logic Design (CS-151)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Assignment No.

1
Submitted By:
M ZAHID MUGHAL

Submitted To:
Sir Toseef

Roll No. : | 12101556-038

Digital Logic Design (CS-151)

BS Information Technology

2nd Semester

Assignment No. 1
Q.1: 11101, 10001011,100110101, 111011, 1011101, 1110101.11
Convert into B=>D, B=>O and B=>H
Binary
11101

Octal
11 101 = 3 5 = 35

10001011

10001011 = 2 1 3 = 213

100110101

100 110 101 = 4 6 5 =


465

111011

111011 = 7 3 = 73

1110101.11

1110101.11 = 1 5 5. 3 =
155.3

Decimal
20+22+23+24 =
1+4+8+16= 29
20+21+23+27
= 1+2+8+128 = 139
20+22+24+25+28 =
1+4+16+32+256 = 309

Hexadecimal
11101 = 1 D = 1D

20+21+23+24+25 =
1+2+8+16+32 = 59
20+22+24+25+26+2-1+2-2 =
1+4+16+32+64+0.5+0.25
=117.75

11011 = 3 B = 3B

10001011 = 8 B = 8B
100110101 = 1 3 5 =
135

1110101.11 = 7 5. 3 =
75.3

Q.2: Convert Hexadecimal to Decimal, Binary and Octal


F00D, FEED, CAF, EF69, 98AB5, EF.EE, DAC.1BA, F3A7C2, ID.6C

Hexadecimal

Binary

Octal

Decimal

F00D

1111 0000
0000 1101

1 111 000 000 001 101 =


1 7 0 0 1 5 = 170015

1111000000001101 = 20+22+23+212+213+214+215
=1+4+8+4096+8192+16384+32768 = 61453

FEED

1111 1110
1110 1101

1 111 111 011 101 101 =


1 7 3 5 5 = 17355

CAF

1100 1010
1111 1110

1 100 101 011 111 110


=1 4 5 3 7 6 = 145376

EF.EE

1110 1111.
1110 1110

11 101 111.111 011 10 =


3 5 7. 7 3 2 =357.732

1111111011101101 =
20+22+23+25+26+27+29+210+211+212+213+214+215
=1+4+8+32+64+128+512+1024+2048+4096+81
92+16384+32768 = 65263
1100101011111110 =
21+22+23+24+25+26+27+29+211+214+215
=2+4+8+16+32+64+128+512+2048+16384+327
68 =50942
11101111.11101110 = 20+21+22+23 +25+26+27+21
+2-2+2-3+2-5+2-6+2-7

DAC.1BA

1101 1010
1100. 0001
1011 1010

110 110 101 100. 000


110 111 010 = 6 6 5 4. 0
6 7 2 = 6654.0672

1D.6C

0001 1101.
0110 1100

00 011 101.011 011 00 =


0 3 5. 3 3 0 = 35.33

110110101100.000110111010 = 22+23+25
+27+28+210 +211+2-4+2-5+2-7+2-8+2-9+2-11
=4+8+32+128+256+512+1024+2048+0.125+0.0
625+0.015+0.0078 = 4012.2103
00011101.01101100 = 20+22+23 +24+2-2+2-3+25+2-6 = 1+4+8+16+0.5+0.25+0.0625 = 29.8125

You might also like