CS302
spring 2012 Assignment
No. 1
Due Date:
Your assignment must be
uploaded/submitted before or on 13th April 2012.
Rules for Marking:
· Font style: “Times New Roman”
· Font color: “Black”
· Font size: “12”
· Bold for heading only.
· Font in Italic is not allowed at all.
· No formatting or bullets are allowed to use.
Total Marks: 20
Rules for Marking:
It should be clear that your assignment will not get any
credit if:
The
assignment is submitted after due date.
o
The
submitted assignment file is corrupted.
o
The
assignment is copied.
o
The
assignment material is directly copied from internet.
Note:
Your answer must follow the below given specifications. You will be assigned no marks if you do not follow these
instructions.
· Font style: “Times New Roman”
· Font color: “Black”
· Font size: “12”
· Bold for heading only.
· Font in Italic is not allowed at all.
· No formatting or bullets are allowed to use.
Objective:
The objective of this assignment is
to prepare students to familiar with conversion between binary and gray codes
as gray code has unique property of being one bit difference. Furthermore it
will enhance one’s ability to differentiate the operations of different logic
gates.
Q1 Marks 5+5=10
(a) Convert the binary number 11000110 to Gray code
(b) Convert The Gray code 10101111 to binary
Q2 Fill the empty columns in the table by performing
each operation against each row.
Marks 10
A
|
B
|
C
|
D
|
AND
|
OR
|
NAND
|
NOR
|
0
|
0
|
0
|
0
|
|
|
|
|
0
|
0
|
0
|
1
|
|
|
|
|
0
|
0
|
1
|
0
|
|
|
|
|
0
|
0
|
1
|
1
|
|
|
|
|
0
|
1
|
0
|
0
|
|
|
|
|
0
|
1
|
0
|
1
|
|
|
|
|
0
|
1
|
1
|
0
|
|
|
|
|
0
|
1
|
1
|
1
|
|
|
|
|
1
|
0
|
0
|
0
|
|
|
|
|
1
|
0
|
0
|
1
|
|
|
|
|
1
|
0
|
1
|
0
|
|
|
|
|
1
|
0
|
1
|
1
|
|
|
|
|
1
|
1
|
0
|
0
|
|
|
|
|
1
|
1
|
0
|
1
|
|
|
|
|
1
|
1
|
1
|
0
|
|
|
|
|
1
|
1
|
1
|
1
|
|
|
|
|
No comments:
Post a Comment
“You can't change the past, but you can ruin the present by worrying about the future”