Professional Documents
Culture Documents
Adamas University: Name: Debarun Roy Class: Bca 1 Year ROLL NO: UG/02/BCA/2018/002
Adamas University: Name: Debarun Roy Class: Bca 1 Year ROLL NO: UG/02/BCA/2018/002
INTRODUCTION TO COMPUTING
ASSIGNMENT
For 2’s complement, we first find one’s complement. We traverse the one’s
complement starting from LSB (least significant bit), and look for 0. We flip all
1’s (change to 0) until we find a 0. Finally, we flip the found 0. For example,
2’s complement of “01000” is “11000” (Note that we first find one’s
complement of 01000 as 10111). If there are all 1’s (in one’s complement), we
add an extra 1 in the string. For example, 2’s complement of “000” is “1000”
(1’s complement of “000” is “111”)
Finally the partial products are added to get the complete product. The
placement of the binary point in the product of two binary numbers having
fractional representation is determined in the same way as in the product of
decimal numbers with fractional representation. The total number of places after
the binary point in the multiplicand and the multiplier is counted.
The binary point in the product is then placed before this total number of places
counted from right. It should be noted that a multiplication by zero makes all
the bits of the partial product zero and may thus be ignored in intermediate
steps.
Multiply:
Solution:
10111
1 1 0 1
1 0 1 1 1
1 0 1 1 1
1 0 0 1 0 1 0 1 1 ← Final sum.
- 1 0
1 1 Meaning less
0 0 Meaning less
For Example:-
1) 11001 ÷ 101
Solution:
2) 11101.01 ÷ 1100
Solution: