Question

Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base...

Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base 2 representation. 1101011001110101

(a) Is this number negative? Why, or why not?

(b) Show the resulting value (“bit pattern”) after apply the 2’s complement negation operation to the given value. Is the resulting 2’s complement value (“bit pattern”) a negative number? Explain your answer.

Homework Answers

Answer #1

(a) The given number 1101011001110101 is a negetive number. The leftmost bit in a binary number denotes the sign bit. If it is 1 the no. is negetive otherwise positive.

(b) To find the 2's complement of the given no. 1101011001110101 , we need to first find it's 1's complement.

  • One's complement of 1101011001110101 = 0010100110001010
  • Two's complement of  0010100110001011 = adding 1 to 1's complement obtained above.

=  0010100110001010 + 1 = 0010100110001011

Therefore 2's compliment =  0010100110001011 is a positive number since it's leftmost bit is 0.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Assume a computer is using signed magnitude base 2 representation to store 8-bit values. Further, assume...
Assume a computer is using signed magnitude base 2 representation to store 8-bit values. Further, assume you have a program which can display the contents of 1-byte memory locations. However, the program displays hex (as a shorthand) instead of binary. What decimal values are represented by the following: (a) C3 (b) 6E Repeat the above, but assume the numbers are stored as 8-bit 2’s complement base 2.
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of...
Assuming nine-bit 2’s complement representation, convert the decimal number -137 to binary, show the effect of the ROL operation on it with initial carry C=1, show the status bits and then convert the result back to decimal. Repeat with the ASR operation. Write the RTL specification of both operations shown here.
What will be the output when the computer performs arithmetic left shift operation on the bit...
What will be the output when the computer performs arithmetic left shift operation on the bit pattern 11010101 which is stored in two’s complement format? Verify that if you multiply the original number in decimal by 2 you get your final answer in decimal. Show your work?
1a) 0xCAFE can be written in decimal (base 10) as: 1b) The decimal number -94 can...
1a) 0xCAFE can be written in decimal (base 10) as: 1b) The decimal number -94 can be expressed (in 8 bits) Using signed magnitude representation as: Using one's complement representation as: Using two's complement representation as: Using excess-M representation (with the appropriate value of M) as: 1c) Using the simple floating point model (1-bit sign, 5-bit biased exponent, and 8-bit significand), the number -0.125 (decimal) can be expressed as: (Do not use spaces or any English text. Provide only the...
2. On the Arduino Uno (and other ATMega based boards) an “int” stores a 16-bit (2-byte)...
2. On the Arduino Uno (and other ATMega based boards) an “int” stores a 16-bit (2-byte) value. “int” store negative numbers with a technique called 2's complement math. The highest bit, sometimes referred to as the "sign" bit, flags the number as a negative number. The rest of the bits are inverted and 1 is added. The Arduino takes care of dealing with negative numbers for you, so that arithmetic operations work transparently in the expected manner. a-What is the...
4)What will be the output when the computer performs arithmetic left shift operation on the bit...
4)What will be the output when the computer performs arithmetic left shift operation on the bit pattern11010101 which is stored in two’s complement format?Verify that if you multiply the original number in decimal by 2 you get your final answer in decimal. Show your work?
15. What will happen to the supply curve is there is an increase in the number...
15. What will happen to the supply curve is there is an increase in the number of sellers in a market (all else being equal)?                    Supply will shift outward           Supply will shift inward           Supply will shift upward           Supply of the good will not change             16. Suppose during the course of a year an economy produces $8 trillion of consumer goods, $3 trillion of investment goods, $4 trillion in government services, and has $2 trillion of exports and...
Consider the data contained in the table below, which lists 30 monthly excess returns to two...
Consider the data contained in the table below, which lists 30 monthly excess returns to two different actively managed stock portfolios (A and B) and three different common risk factors (1, 2, and 3). (Note: You may find it useful to use a computer spreadsheet program such as Microsoft Excel to calculate your answers.) Period Portfolio A Portfolio B Factor 1 Factor 2 Factor 3 1 1.02 % 0.00 % 0.02 % -0.94 % -1.62 % 2 7.52 6.64 6.82...
1. The company uses Goldman Sachs for its investment banker and Peter Fields, a Goldman Sachs...
1. The company uses Goldman Sachs for its investment banker and Peter Fields, a Goldman Sachs managing director, has suggested that McCormick consider on of two choices for financing. There is an innovative hedge fund group that will loan $350 million to Mc Cormick for 10 years in a zero interest bond. At the end, McCormick will owe $550 million. The fee to Goldman will be paid by the hedge fund.   Use the PV function to calculate the present value...
Data For Tasks 1-8, consider the following data: 7.2, 1.2, 1.8, 2.8, 18, -1.9, -0.1, -1.5,...
Data For Tasks 1-8, consider the following data: 7.2, 1.2, 1.8, 2.8, 18, -1.9, -0.1, -1.5, 13.0, 3.2, -1.1, 7.0, 0.5, 3.9, 2.1, 4.1, 6.5 In Tasks 1-8 you are asked to conduct some computations regarding this data. The computation should be carried out manually. All the steps that go into the computation should be presented and explained. (You may use R in order to verify your computation, but not as a substitute for conducting the manual computations.) A Random...