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)
Convert signed integer 0xACE9 to binary and decimal. Convert unsigned integer0xACE9 to binary and decimal.
Convert signed integer 0xACE9 to binary and decimal. Convert unsigned integer0xACE9 to binary and decimal.
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.
Represent the decimal number -6 in binary using 4-bits: 3a) signed magnitude ____________________________ 3b) 1’s complement...
Represent the decimal number -6 in binary using 4-bits: 3a) signed magnitude ____________________________ 3b) 1’s complement _____________________________ 3c) 2’s complement _____________________________
What is the signed decimal equivalent of the following signed-magnitude binary value? 11101010.1001 What is the...
What is the signed decimal equivalent of the following signed-magnitude binary value? 11101010.1001 What is the binary equivalent (in two's complement binary representation) of the following signed decimal value? Represent the integer part of the binary value in 8 bits. -58.1875
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
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal...
a)The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. b)The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. c)The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. d)If the .data segment contains declarations                         A    BYTE      2 DUP (‘a’), ‘+’ B    BYTE      3 DUP (‘b’), 0 C    BYTE      4 DUP (‘c’), ‘–’ D    BYTE     ...
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,
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT