Bahria University, Islamabad Campus: Department of Computer Science
Bahria University, Islamabad Campus: Department of Computer Science
Note: This is an individual assignment. No late assignments will be accepted. Upload on LMS
before the due date. Cheated Assignments will be marked zero.
Question No. 1
Perform subtraction on the given unsigned numbers using the 10’s complement of the
subtrahend.
Answer:
Question No. 2
Convert decimal +39 and +19 to binary, using the signed‐2’s‐complement representation and enough
digits to accommodate the numbers. Then perform the binary equivalent of
a) (+39) + (-19),
b) (-39) + (+19)
Answer:
Question No. 3
Represent the unsigned decimal numbers 791 and 658 in BCD, and then show the steps necessary to
form their sum.
Answer:
Question No. 4
Represent the decimal number 6248 in (a) BCD, (b) excess‐3 code, (c) 2421 code
Answer:
Question No. 5
The following is a string of ASCII characters whose bit patterns have been converted into hexadecimal
for compactness: 73 F4 E5 76 E5 4A EF 62 73. Of the eight bits in each pair of digits, the leftmost is a
parity bit. The remaining bits are the ASCII code.
(a) Convert the string to bit form and decode the ASCII.
Answer: