Respuesta :
Two's-complement notation can represent all integers from - 2^(N-1) to 2^(N-1) - 1, where N is the word length of the computer. So, in your example, the computer could store all integers from -128 to 127 inclusive.
One's-complement notation can represent all integers from - 2^(N-1) - 1 to 2^(N-1) - 1, where N is the word length of the computer. So, in your example, the computer could store all integers from -127 to 127 inclusive
One's-complement notation can represent all integers from - 2^(N-1) - 1 to 2^(N-1) - 1, where N is the word length of the computer. So, in your example, the computer could store all integers from -127 to 127 inclusive
The word length of a computer is simply the number of bits, the computer can process
The word length is given as:
[tex]n = 8[/tex]
(a) 2's complements
The smallest integer in the 2's complement is::
[tex]N= -(2^{n-1})[/tex]
While the largest integer is:
[tex]N= 2^{n-1} -1[/tex]
So, we have:
[tex]Smallest = -(2^{8-1})[/tex]
[tex]Smallest = -(2^7})[/tex]
[tex]Smallest = -128[/tex]
And the largest is:
[tex]Largest= 2^{8-1}-1[/tex]
[tex]Largest= 2^{7}-1[/tex]
[tex]Largest= 128-1[/tex]
[tex]Largest= 127[/tex]
Hence, the computer can store all integers from within an inclusive range of -128 to 127, using the 2's complement
(b) 1's complements
The smallest integer in the 1's complement is::
[tex]N= -(2^{n-1}) + 1[/tex]
While the largest integer is:
[tex]N= 2^{n-1} -1[/tex]
So, we have:
[tex]Smallest = -(2^{8-1})+1[/tex]
[tex]Smallest = -(2^7})+1[/tex]
[tex]Smallest = -128+1[/tex]
[tex]Smallest = -127[/tex]
And the largest is:
[tex]Largest= 2^{8-1}-1[/tex]
[tex]Largest= 2^{7}-1[/tex]
[tex]Largest= 128-1[/tex]
[tex]Largest= 127[/tex]
Hence, the computer can store all integers from within an inclusive range of -127 to 127, using the 1's complement
Read more about word lengths at:
https://brainly.com/question/5046303