CS302 spring 2012
Assignment No. 1
Due Date:
Your assignment must be uploaded/submitted before or on 13th April 2012.
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.
> The submitted assignment file is corrupted.
> The assignment is copied.
> 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.
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 |
SOLUTION:
Solution of Q 1#
(11000110)2 = 10100101
(10101111) (Gray code) = (11001010)2
Question No. 2 Solution
|
A |
B |
C |
D |
AND |
OR |
NAND |
NOR |
|
0 |
0 |
0 |
0 |
0 |
0 |
1 |
1 |
|
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
|
0 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
|
0 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
|
0 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
|
0 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
|
0 |
1 |
1 |
0 |
0 |
1 |
1 |
0 |
|
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
|
1 |
0 |
0 |
0 |
0 |
1 |
1 |
0 |
|
1 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
|
1 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
|
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
|
1 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
|
1 |
1 |
0 |
1 |
0 |
1 |
1 |
0 |
|
1 |
1 |
1 |
0 |
0 |
1 |
1 |
0 |
|
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
Another solution available on the following link:
ATTENTION PLS: to download you are required a user name and password to login DocStoc. if u dont have, then you may use our following logins:
If you want to download these GURUs files for preparation of your exams THEN you must have to registered yourself on “DocStoc.com“, IF you don’t want to registered yourself on DocStoc then you may use our ready login/username. The user name and password for “DocStoc.com” is as follows:-
1. user name: vusolutions1
password: mba123
2. user name: vusolutions2
password: mba123