Question

In: Computer Science

Represent (in binary and separately) the decimal signed whole numbers 347 and -347 in each of...

Represent (in binary and separately) the decimal signed whole numbers 347 and -347 in each of the following formats:
(a) sign-magnitude.
(b) 1's complement
(c) 2's complement
(d) excess-511
For Parts (a), (b) and (c), use the minimum number of bits necessary; for Part (d), use the same number of bits as in Parts (a), (b) and (c).
CAUTION: You will earn NO CREDITS if you simply show the final result and not clearly show working (i.e., intermediate steps).
(If you use the result from a previous question, indicate the question number and intermediate steps already shown to arrive at that result can be skipped.)

Solutions

Expert Solution

a) 347 in binary is represented as 101011011. In signed magnitude representation, most significant bit represents the sign,0 represents positive sign and 1 represents negative sign. Therefore,

+347 = 0101011011 and -347 = 1101011011

b) In 1's complement Representation, the positive number representation is same as the binary representation and to represent the negative number, take the complement of each bit(change 1 to 0 and 0 to 1)

In 1's complement Representation, using n bits, we can represent -(2n-1 -1) to +(2n-1 -1)numbers, so, to represent 347 , no. of bits required are 10

347 = 0101011011 -347 =1010100100

c) In 2's complement Representation, the positive number representation is same as the binary representation and to represent the negative number, we take 2's complement. For 2's complement,we take 1's complement and add 1 to the result .In 2's complement, using n bits, we can represent -(2n-1 ) to +(2n-1-1) numbers, so , to represent 347 , no. of bits required are 10

347 = 0101011011

to represent -347, take 1's complement of 347 (0101011011 ) = 1010100100

then add 1 + 1

= 1010100101

-347 =  1010100101

d)Excess 511: 347 = 347+511 = 858 = 1101011010

-347 = -347+511 = 164 = 0010100100


Related Solutions

(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)
represent the decimal number 101 and 6 as floating point binary numbers please show your work...
represent the decimal number 101 and 6 as floating point binary numbers please show your work and explained, I have a test.
if hexadecimal number FA16 represent a signed number in signed magnitude, what the decimal representation of...
if hexadecimal number FA16 represent a signed number in signed magnitude, what the decimal representation of that number? include the sign for that number with no spaces between the number and sign. for example -3 or +3
if hexadecimal number FF16 represent a signed number in one's compliments, what the decimal representation of...
if hexadecimal number FF16 represent a signed number in one's compliments, what the decimal representation of that number? include the sign for that number with no spaces between the number and sign. for example -3 or +3
Convert these numbers from Decimal to Binary 111: 66: 252 11 20 Convert these numbers from...
Convert these numbers from Decimal to Binary 111: 66: 252 11 20 Convert these numbers from Binary to Decimal 00110110 11111000 00000111 10101010 What is the Default Subnet mask of Class A IPV4 What is the Default Subnet mask of Class B IPV4 What is the Default Subnet mask of Class C IPV4 What is the CIDR notation or / short handwriting of Subnet masks: Class A: /?. Explain the reason Class B: /? Explain the reason Class C: /?...
Convert the binary numbers to decimal. Show a single sample calculation for the first number (10010010)....
Convert the binary numbers to decimal. Show a single sample calculation for the first number (10010010). 0111 1111 1001 0110 0101 1100 1100 0111
Convert the following unsigned numbers to the requested form: 01100001 binary to: hex, and also decimal...
Convert the following unsigned numbers to the requested form: 01100001 binary to: hex, and also decimal Hex: Decimal: b) 136 decimal to: hex, and also binary Hex: Binary:
Write a program to convert the input numbers to another number system. 1. Decimal to Binary...
Write a program to convert the input numbers to another number system. 1. Decimal to Binary 2. Binary to Decimal 3. Hexadecimal to Decimal 4. Decimal to Hexadecimal 5. Binary to Hexadecimal 6. Hexadecimal to Binary The user will type in the input number as following: Binary number : up to 8 bits Hexadecimal number: up to 2 bytes Decimal number: Less than 256 As a result, print out the output after the conversion with their input numbers. The program...
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.
All decimal numbers must be converted to signed two’s complement form before working. Use the least...
All decimal numbers must be converted to signed two’s complement form before working. Use the least number of digits necessary (only using one sign bit) to represent the largest number in a given problem. The smaller number must be represented with the same number of bits. If overflow occurs, indicate that with a note. Show step by step subtraction. 13 - 8 6 - 19 21 - 14
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT