Question

In: Computer Science

1-How is -89 represented using 8-bit two's compliment? (The answer should be 8 binary digits). 2-What...

1-How is -89 represented using 8-bit two's compliment? (The answer should be 8 binary digits).

2-What is 10101100 - 00100100 using 2's compliment arithmetic? (The answer should be 8 binary digits)

3-Assume we are using the simple model for floating-point representation as given in the text (the representation uses a 14-bit format, 5 bits for the exponent with a bias of 15, a normalized mantissa of 8 bits, and a single sign bit for the number):Show how the computer would represent the numbers 100.0 using this floating-point format. Express the answer in hexadecimal using 4 hex digits.

4-Show how 12.5 would be stored using IEEE-754 single precision. Express the answer as 8 hexadecimal digits

Solutions

Expert Solution

Q1

First, we represent 89 in binary then take its complement and add 1 to get the representation of -89 in 2's complement

So 89 in binary is 01011001

and we take its 1 complement and add 1 to it

(01011001)' +1 = 10100110+1=10100111

Q2

In 2's complement, we can do subtraction by taking 2's complement of the second number and add it to the first so the 2's complement of 00100100 is 11011100 and we add it to the first 10101100

So adding the two gives us

1010 1100

1101 1100

=10001000

Q3

Converting 100 to binary we get 1100100

converting it to normalized form we have 1.100100 * 2^6

So the exponent becomes 6 + 15 = 21 and the sign bit is 0 as the number is positive and the mantissa is value after decimal so 16 bit representation is

0 10101 10010000

So in hex the representation is

0001 0101 1001 0000 = 0x1590

Q4

12.5 = 0x41480000


Related Solutions

Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and...
Represent the following numbers in binary 8-bit representation using singed magnitude, one's complement, two's complement, and excess-127 representations: a) 48 b) -35
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
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
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
First, Calculate the 1/3 in binary form using 8-digits. Then convert binary form back to decimal....
First, Calculate the 1/3 in binary form using 8-digits. Then convert binary form back to decimal. Why and what is the error in binary representation ?
PROBLEM 2 (a) Do operation 75.38 - 18.62 in binary using two's complement. Use for the...
PROBLEM 2 (a) Do operation 75.38 - 18.62 in binary using two's complement. Use for the 6 bit fractional part (b) Convert the resulting expression to decimal, and say how much is the absolute error obtained in the operation
1. Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 01102...
1. Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 01102 + 01002 2.Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 10102 + 11112 3.Add the following binary numbers in 4-bit, two's complement notation. Identify any overflow errors. 10112 + 01112
7.What is the hexadecimal equivalent of the 16-bit signed integer -32,760 ? *Note: answer in two's...
7.What is the hexadecimal equivalent of the 16-bit signed integer -32,760 ? *Note: answer in two's complement*
Problem: Perform following operations in binary using 8-bit addition/subtraction/multiplication. 1. −80 + 42 2. −99 −...
Problem: Perform following operations in binary using 8-bit addition/subtraction/multiplication. 1. −80 + 42 2. −99 − 20 3. 60 − 70 4. −59 × 3 5. 52×−1
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT