Assignment 1
Assignment 1
Nagar
VALLABH VIDYANAGAR – 388 120
Department of Electronics & Communication Engineering
7 Represent the following pair of decimal numbers into signed 2’s complement
representation and add them.
(i) 33 and 15
(ii) 56 and –27
(iii) –46 and 25
(iv) –110 and –84
8 Write the equivalent binary codes for decimal digits 0 to 9 for the following and
G H PATEL COLLEGE OF ENGINEERING & TECHNOLOGY, V. V. Nagar
VALLABH VIDYANAGAR – 388 120
Department of Electronics & Communication Engineering
also state that in which category that the code falls in? (Non-weighted, Weighted,
Sequential, Self-complementary)
(i) BCD (iv) 4-bit Gray
(ii) Excess-3 (v) 2421
(iii) 84-2-1 (vi) 5211
10 State the algorithm to add two BCD numbers. Convert each pair of the following
decimal numbers to BCD and add them.
(i) 53 to 12
(ii) 49 to 14
(iii) 28 to 29
11 State the algorithm to add two Excess-3 numbers. Convert each pair of the
following decimal numbers to Excess-3 and add them.
(iv) 53 to 12
(v) 49 to 14
(vi) 28 to 29