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
Develop a python program to convert two decimal numbers (A and B) to binary numbers. You...
Develop a python program to convert two decimal numbers (A and B) to binary numbers. You should generate B complement signal (flip all the bits of Input B,
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 the following values into binary numbers for each word and place the binary values in...
Convert the following values into binary numbers for each word and place the binary values in the two-dimensional array in their proper order of words. Value Binary Number Equivalent Word 0 462,91210 Word 1 1142008 Word 2 5420h Word 3 20,992d Word 4 1104208 Word 5 6102008 Word 6 9F88h Word 7 20,49610 Word 8 502416 Word 9 1101018 Word 10 71082h
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT