Question

In: Computer Science

What decimal value does the 8-bit binary number 10011110 have if: a) it is interpreted as...

What decimal value does the 8-bit binary number 10011110 have if:

a) it is interpreted as an unsigned number?

b) It is on a computer using signed-magnitude representation?

c) It is on a computer using one’s complement representation?

d) It is on a computer using two’s complement representation?

Solutions

Expert Solution

a)
=> 10011110
=> 1x2^7+0x2^6+0x2^5+1x2^4+1x2^3+1x2^2+1x2^1+0x2^0
=> 1x128+0x64+0x32+1x16+1x8+1x4+1x2+0x1
=> 128+0+0+16+8+4+2+0
=> 158
Answer: 158

b)
10011110
since left most bit is 1, this number is negative number.
convert 0011110 to decimal
=> 0011110
=> 0x2^6+0x2^5+1x2^4+1x2^3+1x2^2+1x2^1+0x2^0
=> 0x64+0x32+1x16+1x8+1x4+1x2+0x1
=> 0+0+16+8+4+2+0
=> 30
Answer: -30

c)
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   10011110 is flipped to 01100001
01100001 in decimal
=> 01100001
=> 0x2^7+1x2^6+1x2^5+0x2^4+0x2^3+0x2^2+0x2^1+1x2^0
=> 0x128+1x64+1x32+0x16+0x8+0x4+0x2+1x1
=> 0+64+32+0+0+0+0+1
=> 97
Answer: -97

d)
II. Add 1 to 1's complement binary
01100001 + 1 = 01100010
III. Now convert this result to decimal value
=> 1100010
=> 1x2^6+1x2^5+0x2^4+0x2^3+0x2^2+1x2^1+0x2^0
=> 1x64+1x32+0x16+0x8+0x4+1x2+0x1
=> 64+32+0+0+0+2+0
=> 98
Answer: -98

Related Solutions

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     ...
What decimal number is represented by the binary 2’s complement 8-bit number 11100111? Show your work
What decimal number is represented by the binary 2’s complement 8-bit number 11100111? Show your work
1) Convert negative fractional decimal number to 8-bit binary number: – 16.625 (use 2's complement binary...
1) Convert negative fractional decimal number to 8-bit binary number: – 16.625 (use 2's complement binary format) Hint: –17 + 0.375 Given the hint above, the fractional number will be divided into two parts, - Whole number, - Fractional part, must be positive (2) Proof to check that your calculation above is correct
(1) Convert negative fractional decimal number to 8-bit binary number: – 6.625 Hint: –7 + 0.375...
(1) Convert negative fractional decimal number to 8-bit binary number: – 6.625 Hint: –7 + 0.375 Given the hint above, the fractional number will be divided into two parts, - Whole number, - Fractional part, must be positive (2) Use 2's complement binary format to convert negative fractional decimal number to 8-bit binary number: – 6.625 (3) Proof to check that your representation calculation for (1) & (2) is correct
1. Add the following binary number in 8-bit. Rewrite each problem in decimal notation to check...
1. Add the following binary number in 8-bit. Rewrite each problem in decimal notation to check you work. 10110101112 + 011001002 2. Find the binary equivalent the following decimal numbers. 0.25 3. Find the decimal equivalent for the following binary numbers. 1110102/100000002 4. Find the decimal equivalent for the following binary numbers. 0.00102 5. Give the multiplying factor associated with each of the following metric prefixes. Deci- 6. Find the binary equivalent the following decimal numbers. 0.6875 7. Exactly how...
1. Please convert the following decimal numbers to 8-bit binary sign magnitude and to 8-bit 2’s...
1. Please convert the following decimal numbers to 8-bit binary sign magnitude and to 8-bit 2’s complement. Please show your work if there are multiple steps. Sign Magnitude 2’s complement a. +67 b. +40 c. -28 d. -40
a. Encoding the decimal number 2.25 into an 8-bit binary. Suppose k=4 exponent bits, n=3 fraction...
a. Encoding the decimal number 2.25 into an 8-bit binary. Suppose k=4 exponent bits, n=3 fraction bits, and the bias is 7. What’s the corresponding binary representation for 2.25? Show your work. b. What’s the value in decimal if this is an 8-bit floating point number? Suppose k=4 exponent bits, n=3 fraction bits, and the bias is 7 of 10111001
ASSEMBLY LANGUAGE PROGRAMMING 1. The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B...
ASSEMBLY LANGUAGE PROGRAMMING 1. The decimal equivalent of the signed 2’s complement 8-bit binary number 11010101B is ______________. 2. The decimal equivalent of the unsigned 8-bit hex number 0B4H is ______________. 3. The value of the expression ‘H’ – ‘B’ is less than / equal to / greater than that of the expression ‘L’ – ‘C’. 4. If the .data segment contains declarations A BYTE 2 DUP (‘a’), ‘+’ B BYTE 3 DUP (‘b’), 0 C BYTE 4 DUP (‘c’),...
1) given the 8-bit binary number of 10111110 (two) a)what is the hex representation of this...
1) given the 8-bit binary number of 10111110 (two) a)what is the hex representation of this number/ b) what is the decimal value if this number which is an 8-bit number as a two complement signed number. all steps included c)what is the decimal value of this number as an 8-bit unsigned number, please write all steps 2) given the decimal number (-0.875) or (-7/8) convert it to single-precision floating-point. please show the easiest way to get to this,.
The number –11.375 (decimal) represented as a 32-bit floating-point binary number according to the IEEE 754...
The number –11.375 (decimal) represented as a 32-bit floating-point binary number according to the IEEE 754 standard is
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT