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

Cs (302)

Assignment n o : 01

ID : bc200413677

Question No : 01

You are required to perform stated operations. You must consider the stated bases or number system
for your final answer. You can use indirect conversion or repeated division methods only. Your solution
must list down all the steps of calculations and conversions involved. In the case of direct results, major
marks will be deducted.

( 2 F 1 AD )16 + ( 103589 )10 + ( 767657 )8− (110010101010101011111 )2=()8=()16=()10

Solution :

Indirect conversion of (2F1AD)16 in octal number system:

=[ (2×164) ] + (F×163) + (1×162) + (A×161) + (D×160) ]

=[(2×65536) + (15×4096) + (1×256) + (10×16) + (13×1)]

=131072+61440+256+160+13

=(192941)10

192941/ 24117-5
8
24117/8 3041-5
3014/8 376-6
376/8 47-0
47/8 5-7

So,

(2F1AD)16 = (570655)8

Now Indirect coversion of (103589)10 To octal number system;

103589/ 12948-5
8
12948/8 1618-4
1618/8 202-2
202/8 25-2
25/8 301
So,

(103589)10 = (312245)8

Now,

Indirect conversion of (110010101010101011111)2 in octal number system:

=(110010101010101011111)2

=(110 010 101 010 101 011 111)2

=[(1×22) + (1×21) + (0×20) ][(0×22) + (1×21) + (0×20)][(1×22) + (0×21) + (1×20)][(0×22) + (1×21)


+ (0×20) ][(1×22) + (0×21) + (1×20) ][(1×22) + (1×21) + (1×20) ]

= (4+2+0)(0+2+0)(4+0+1)(0+2+0)(4+0+1)(0+2+1)(4+2+1)

= (6252537)8

Now,

(2F1AD)16 + (103589) 10+ (110010101010101011111)2

Becomes,

(570655)8 + (312245)8 + (6252537)8

Firstly we add the values of (2F1AD)16 + (103589)10

570655

+312245

1103122

Then add this value in (76757)8

1103122

+ 767657

2 073001
Now by substraction

6252537

- 2073001

- 4157536

So, the anwer is : (-4157536)8

Converting this octal number to decimal :

-[(4×86) + (1×85) + (5×84) + ( 7×83) + (5×82) + (3×81) + (6×80) ]

= -[(4262144) + (132768) + (54096) + (7512) + (564) + (38) + (61)]

= -[(1048576) + (32768) + (20480) + (3584) + (320) + 24) + (6)]

= (-1105758)10

Convert this value to hexadecimal :

1105758/16 69109-4
69109/16 4319-5
4319/16 269-15
269/16 16-13
16/16 1-0

=(-10DF5E)16

So, finally the answer is :

(2F1AD)16 + (103589) 10+ (767657)8 – (110010101010101011111)2 = (-4157536)8 = (-10DF5E)16 =

(-1105758)10

Question No : 01

Simplify the stated Boolean Expression using Boolean Algebra Laws. You must state the properties of
each simplification step.

( A B+C )∗D+ ( AC + A D )∗E+ ( B C + D )∗E+ AB D+ BC E+ D

Solution ;

=( A B+C )∗D+ ( AC + A D )∗E+ ( B C + D )∗E+ AB D+ BC E+ D


= A B D + C D + ACE + A D E + C B E + DE + AB D + BC E + D

=A D ( B+ B +E) + D(1+ E) + B(C E + C E ) + ACE + C D

=A D (1 + E) + D +B (C E + C E ) + ACE + C D

= A D + D + B (C E + C E ) + C(AE + D )

= A + B (C E + C E ) + C(AE + D ) + D

“THANK YOU”

You might also like