# VU Assignment No. 1, Semester ,Spring2013,Digital Logic And Design – CS302

Assignment No. 1

SemesterSpring2013
Digital Logic and Design – CS302

Bc120202130

IMRAN IQBAL

Question 1                                                                                                                                          Convert the decimal numbers “129” and “478” into their equivalents in the followings:

1. a.      Binary

(129)10 =(10000001)2

(478)10=(111011110)2

1. b.      BCD

(129)10

1=0001

2=0010

9=1001

478=

4 = 0100

7=0111

8=1000

Question 2

1. a.      Perform binary addition of “129”  and “478”

010000001

111011110

1001011111

1. b.      Perform BCD addition of “129”  and “478”

129= 0001 0010  1001

478= 0100 0111  1000

607= 0101 1001 10001

0101 1001   10001

0000  0000    0110

0101 1001  1  0111

0101   1001 0111

0000   0001 0000

0101   1010 0111

0000   0110 0000

0101 10000 0111

0101 0000 0111

0001 0000 0000

0110 0000 0111

Question 3

Fill the empty columns in the table by performing each operation against each row.

 A B C X = NOT(A XOR B) Y = B XOR C X AND Y 0 0 0 1 0 0 0 0 1 1 1 1 0 1 0 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 0 0

# VU Assignment No. 01 Semester: Spring 2013 Computer Networks- CS610, Solution By VU Tutors

Assignment No. 01
Semester: Spring 2013
Computer Networks- CS610
Total Marks: 20
Due Date: 29/04/2013
Please view the Assignment Submission Process document provided to you by the Virtual University for
• Your assignment must be in .doc or .docx format. (Any other formats like scan images, PDF, Zip, rar,
bmp etc will not be accepted)
• No assignment will be accepted through email.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The submitted assignment does not open or file is corrupted.
• Your assignment is copied from internet, handouts or from any other student
(Strict disciplinary action will be taken in this case).
Assignment
Question No. 1 [10 Marks]
Given are the 5 data units of 7 bits each, you have to find the value of parity bit (Both odd and even) for
each data unit:
Data Unit Even Parity bit Odd Parity bit
1001011
1010111
1100100
1011100
1111011
Solution:-
Data Unit Even Parity bit Odd Parity bit
1001011 0 1
1010111 1 0
1100100 1 0
1011100 0 1
1111011 0 1
Question No. 2 [10 Marks]
Let us consider a point to point network having 9 computers. Answer the following questions with
complete calculations.
a) How many connections/links will be needed in order to connect these computers with each other in
this point to point network?
b) How many new connections/links will be needed in order to add a new machine in this network?
Solution:-
a) We will use the following formula for ‘n’ computers, connections = (n^2 – n)/2.
(92-9)/2=36, so 36 connections will be needed.
b) n-1 new connections will be needed to add a new machine in this network.
After adding 1 new machine in this network, n becomes 10.
10-1=9, so 9 new connections will be required in this case.