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 -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
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
Convert the following binary values to hexadecimal and decimal (1 pt each) Write Hex Numbers as...
Convert the following binary values to hexadecimal and decimal (1 pt each) Write Hex Numbers as 0x##(ex 0x0A, 0xFF) Binary Hexadecimal Decimal 0001-1011 0x 0000-1000 0000-0100 0000-1001 0001-1111 1001-1001 0111-1010 1100-0010 1110-0101 1000-1010 0011-0100 0001-1001 0100-0011 1111-1111 1110-0111 0001-0010 0100-1000 0100-1110 1001-0001 0110-1100 Name: Convert the following hexadecimal values to binary and decimal Write binary numbers as 0000-0000 Hexadecimal Binary Decimal 0xf1 0xac 0x56 0x6c 0x32 0x30 0x05 0x28 0xf0 0x07 0x42 0xb9 0x6d 0x2f 0x71 0x0e 0x2d 0xfb 0xba...
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,
Convert a list of decimal numbers into their binary and hexadecimal equivalents Add the elements of...
Convert a list of decimal numbers into their binary and hexadecimal equivalents Add the elements of each of these lists to generate a total sum Print the lists, and the total sum of each value C++ contains some built-in functions (such as itoa and std::hex) which make this assignment trivial. You may NOT use these in your programs. You code must perform the conversion through your own algorithm. The input values are: 5 9 24 2 39 83 60 8...
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: /?...
write a python code to Determine the binary and decimal representations of the following hexadecimal numbers....
write a python code to Determine the binary and decimal representations of the following hexadecimal numbers. Store answers in the appropriate variables in the .py file. (a) 0xfca1 (b) 0xc4d8
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT