You are on page 1of 2

CS101 Assignment solution

Muhammad Azam

BC123456789

Question#1:

Convert the following decimal numbers into equivalent binary numbers and then convert the
binary answer back into equivalent decimal. Show all the steps of conversions.

Convert: 3242 to binary form:

2 3242 Remainder
2 1621 0
2 810 1
2 405 0
2 202 1
2 101 0
2 50 1
2 25 0
2 12 1
2 6 0
2 3 0
2 1 1
0 1

In Binary form is =110010101010

Convert it to Decimal form

110010101010 =0*20+1*21+0*22+1*23+0*24+1*25+0*26+1*27+0*28+0*29+1*210+1*211

=0+2+0+8+0+32+0+128+0+0+1024+2048

Decimal form=3242
Question#2:

Solve the given Boolean Expression by using truth table.


(AB).((A/ + C/)  (A/+B))

A B C AB A/ C/ (A/ + C/) (A/+B) (A/ + C/)  (AB).((A/ +


(A/+B) C/)  (A/+B))

0 0 0 0 1 1 1 1 0 0
0 0 1 0 1 0 1 1 0 0
0 1 0 1 1 1 1 1 0 0
0 1 1 1 1 0 1 1 0 0
1 0 0 1 0 1 0 0 1 1
1 0 1 1 0 0 1 0 1 1
1 1 0 0 0 1 0 1 1 0
1 1 1 0 0 0 1 1 0 0

You might also like