Question

In: Computer Science

Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7...

  1. Complete the matrix below (use 4 bits)

Signed Integer

Signed Magnitude

1’s Complement

2’s Complement

Excess-7

5

-3

Solutions

Expert Solution

5   -   0101    -   0101    -   0101    -   1100
-3  -   1011    -   1100    -   1101    -   0100
1)
5
----
Since this is a positive number. we can directly convert this into binary
Divide 5 successively by 2 until the quotient is 0
   > 5/2 = 2, remainder is 1
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 101
So, 5 of decimal is 101 in binary
So, 5 in normal binary format is 0101
=================================
||    1's complement: 0101    ||
||    2's complement: 0101    ||
||    sign-magnitude: 0101    ||
=================================

Converting 5 to excess-7
add excess to number
5 + 7 = 12
convert 12 to binary
Divide 12 successively by 2 until the quotient is 0
   > 12/2 = 6, remainder is 0
   > 6/2 = 3, remainder is 0
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1100
So, 12 of decimal is 1100 in binary
Excess-7:   1100

2)
-3
-----
This is negative. so, follow these steps to convert this to various binary formats.
Divide 3 successively by 2 until the quotient is 0
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 11
So, 3 of decimal is 11 in binary
So, 3 in normal binary format is 0011
sign-magnitude:
-----------------
set 1 as left most bit, since this number is negative.
so, 0011 becomes 1011
=================================
||    sign-magnitude: 1011    ||
=================================

1's complement:
-----------------
flip all the bits. Flip all 0's to 1 and all 1's to 0.
   0011 is flipped to 1100
=================================
||    1's complement: 1100    ||
=================================

2's complement:
-----------------
Add 1 to above result
1100 + 1 = 1101
=================================
||    2's complement: 1101    ||
=================================

Converting -3 to excess-7
add excess to number
-3 + 7 = 4
convert 4 to binary
Divide 4 successively by 2 until the quotient is 0
   > 4/2 = 2, remainder is 0
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 100
So, 4 of decimal is 0100 in binary
Excess-7:   0100

Related Solutions

Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7...
Complete the matrix below (use 4 bits) Signed Integer Signed Magnitude 1’s Complement 2’s Complement Excess-7 5 -3
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)...
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)      a. -18      b. -41
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers,...
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers, • perform the operation shown, • show all work in binary operating on 4-bit numbers, and • identify overflow if necessary. a) 4 + 2 b) 4 – 2 c) 2 – 4 d) 4 + 4
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.
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system....
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system. Make sure there are enough digits in the results to be able to perform arithmetic operations with these two numbers. (b) Perform in the signed 2’s complement system, (+70) + (-26) (c) Perform in the signed 2’s complement system, (-70) - (-26) (d) Perform in the signed 2’s complement system, (+70) + (+26)
Add or subtract the following 2’s complement form signed numbers, then convert the entire problem to...
Add or subtract the following 2’s complement form signed numbers, then convert the entire problem to decimal and confirm: 110110 + 111000 001100 – 011100
Convert each of the following 5-digit 6’s complement base 7 numbers to 9-digit 4’s complement base...
Convert each of the following 5-digit 6’s complement base 7 numbers to 9-digit 4’s complement base 4. Be careful, show all your reasoning/arithmetic, and make no unwarranted assumptions! (a) 50135 (b) 11402
Part 1: Solve the operation 75.38-18.62 in binary using two's complement. Use 6 bits for the...
Part 1: Solve the operation 75.38-18.62 in binary using two's complement. Use 6 bits for the fractionary part. Part 2:Convert the result to a decimal, and explain how much is the absolute error obtained in the operation. (Provide Step by Step process of problem solving in each part.)
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate...
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers. Then perform the binary equivalent of (+31)+(-47), (-31)+(+47), and (-31)+(-47). Convert the answers back to decimal and verify that they are correct.
Write instruction(s) in C to get bits 4 and 7 of Port-C, then compute the “XOR...
Write instruction(s) in C to get bits 4 and 7 of Port-C, then compute the “XOR (exclusive OR)” of these two bits and write the result of the “XOR operation” to bit 4 of Port-D.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT