Question

In: Computer Science

a) Using Binary Signed Magnitude arithmetic, find the ‘sum’ of 5810 + (-2310). Show your work....

a) Using Binary Signed Magnitude arithmetic, find the ‘sum’ of 5810 + (-2310). Show your work. (use 8 bits)

b) Using two’s complement binary arithmetic, find the sum of 45 and -16. Show your work. (use 8 bits)

Solutions

Expert Solution

a)Addition using 1's complement:-

Addition of the positive number with a negative number when the positive number has a greater magnitude.

Initially, calculate the 1's complement of the given negative number. Sum up with the given positive number. If we get the end-around carry 1, it gets added to the LSB.

(58)10 --------->(00111010)2

(-23)10----------->(-00010111)2

  1. First, find the 1's complement of the negative number 00010111. So, for finding 1's complement, change all 0 to 1 and all 1 to 0. The 1's complement of the number 00010111 is 11101000.
  2. Now, add both the numbers, i.e., 00111010 and 11101000;
    00111010+11101000 = 1 00100010
  3. By adding both numbers, we get the end-around carry 1. We add this end around carry to the LSB of 00100010.
    00100010+1=00100011------->(35)10

b)Addition using 2's complement:-

Case 1: Addition of the positive number with a negative number when the positive number has a greater magnitude.

Initially find the 2's complement of the given negative number. Sum up with the given positive number. If we get the end-around carry 1 then the number will be a positive number and the carry bit will be discarded and remaining bits are the final result.

(45)10---------------->(00101101)2

(-16)10----------------->(-00010000)2

  1. First, find the 2's complement of the negative number 00010000. So, for finding 2's complement, change all 0 to 1 and all 1 to 0 or find the 1's complement of the number 00010000. The 1's complement of the number 00010000 is 11101111, and add 1 to the LSB of the result11101111. So the 2's complement of number 11101111 is 11101111+1=11110000
  2. Add both the numbers, i.e., 00101101 and 11110000;
    00101101+11110000=1 00011101
  3. By adding both numbers, we get the end-around carry 1. We discard the end-around carry. So, the addition of both numbers is 00011101------------>(29)10

Related Solutions

1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert...
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert 69 (base 10) to 8-bit binary using one’s complement. Show your work 1c. Convert 70 (base 10) to 8-bit binary using two’s complement. Show your work. 1d. Convert - 67 (base 10) to 8-bit binary using signed magnitude. 1e. Convert - 67 (base 10) to 8-bit binary using ones compliment. Show your work. 1f. Convert - 67 (base 10) to 8-bit binary using 2s...
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers...
Represent -60 in binary using 8-bit signed magnitude. Add the following unsigned 8 bit binary numbers as shown. 01110101 + 00111011 Add the following unsigned 8 bit binary numbers as shown. 01000100 + 10111011
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Determine the magnitude and direction of the resultant force. Show your work. A. R = 80.3...
Determine the magnitude and direction of the resultant force. Show your work. A. R = 80.3 lb, = 106.2° B. R = 80.3 lb, = 73.8° C. R = 72.1 lb, = 63.6° D. R = 72.1 lb, = 116.4°
Use the formula for the sum of the first n terms of an arithmetic series to find the sum of the first eleven terms of the arithmetic series 2.5, 4, 5.5, … .
Use the formula for the sum of the first n terms of an arithmetic series to find the sum of the first eleven terms of the arithmetic series 2.5, 4, 5.5, … .
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed...
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed Magnitude One’s Complement Two’s Complement 30 -47 0
5. Find the sum of terms in given arithmetic sequence 1 + 3 + 5 +...
5. Find the sum of terms in given arithmetic sequence 1 + 3 + 5 + ... + 59 6. Find the sum of terms in given arithmetic sequence 2 + 5 + 8 + ... + 41 7.Given a geometric sequence 6 + 2 + 2/3 + ... is this sequence converging or diverging, if it is converging find it's sum
Using the zero-order model in the output, calculate the sum of squares error, please show work.
X1 X2 Y 11 4 9 6 8 4 8 4 6 8 5 5 10 7 9 Using the zero-order model in the output, calculate the sum of squares error, please show work.
1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b....
1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b. 85 - binary: - hexadecimal: c. 128 - binary: - hexadecimal: d. 4563 - binary: - hexadecimal:
Find the magnitude of the vector sum r of the vector displacements c and d whose...
Find the magnitude of the vector sum r of the vector displacements c and d whose components in meters along three perpendicular directions are cx= 7.8, cy= -3.8, cz= -6.4; dx= 4.7, dy= -2.1, dz= 3.7;
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT