www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# cs101 assignmnt solution

CS101

ASSIGNMENT NO 1

Q no 1 solution:

Convert the decimal no into binary and then again into binary:

i)4789

Conversion into binary:

 Deviser Dividend Reminder 2 4789 1 2 2394 0 2 1197 1 2 598 0 2 299 1 2 149 1 2 74 0 2 37 1 2 18 0 2 9 1 2 4 0 2 2 0 2 0 1

4789=(1001010110101)2

Binary to decimal no:

(1001010110101)2=1.212+0.211+0.210+1.29+0.28+1.27+0.26+1.25+1.24+0.23+1.22+0.21+1.20

(1001010110101)2=4096+0+0+512+128+0+32+16+0+4+0+1

(1001010110101)2=4789

ii)8735

 Deviser Dividend Reminder 2 8735 1 2 4367 1 2 2183 1 2 1091 1 2 545 1 2 272 0 2 136 0 2 68 0 2 34 0 2 17 1 2 8 0 2 4 0 2 2 0 2 0 1

_8735=(10001000011111)2

Binary to decimal:

(10001000011111)2=1.214+0.213+0.212+0.211+1.210+0.29+0.28+0.27+0.26+1.25+1.24+1.23+1.22+1.21+1.20

(10001000011111)2=_(8192+0+0+0+512+0+0+0+0+16+8+4+2+1)

(10001000011111)2=_8735

Q NO2 SOLUTION:

Solve Boolean expression:

[(A⊕D).(A+B)].[( B ̅+C ̅) ⊕(B+C+D)]

 A B C D 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 1 0 0 0 1 1 1 0 1 1 1 1 0 0 1 0 1 1 1 0 0 0 1 0 1 0 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 1 0 1 1 0 0

Views: 565

1

## Latest Activity

Heidi Dayne Hanson updated their profile
1 hour ago
Khawir Abbas and Sana Shafaq joined Virtual University of Pakistan
5 hours ago
Abdul Rehman updated their profile
21 hours ago
21 hours ago
Abdul Rehman posted a discussion

### paper

21 hours ago
Maryam joined + M.Tariq Malik's group

### MCM301 Communication skills

yesterday
Maryam joined + M.Tariq Malik's group

### MCM101 Introduction to Mass Communication

yesterday
Maryam joined + M.Tariq Malik's group

yesterday