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 -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
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
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
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Write -127 as 8 bit signed binary number both using 2'complement and sign/magnitude notation.
Assuming integers are represented as 32-bit words and negative numbers are represented using the 2's complimentary...
Assuming integers are represented as 32-bit words and negative numbers are represented using the 2's complimentary method convert the following decimal numbers to hexadecimal numbers (show your work). a. -1314, b. 2020
Assuming integers are represented as 16-bit words and negative numbers are represented using the 2's complementary...
Assuming integers are represented as 16-bit words and negative numbers are represented using the 2's complementary method, convert the following hexadecimal numbers to decimal numbers a. 0xCAFE, b. 0x4DAD, c. 0xFACE
Part 1: Solve the operation 75.38-18.62 in binary using two's complement. Use 6 bits for the...
Part 1: Solve the operation 75.38-18.62 in binary using two's complement. Use 6 bits for the fractionary part. Part 2:Convert the result to a decimal, and explain how much is the absolute error obtained in the operation. (Provide Step by Step process of problem solving in each part.)
What digits are used in binary number system? How much is 305.511 in binary form?
What digits are used in binary number system? How much is 305.511 in binary form?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT