Question

In: Computer Science

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

Solutions

Expert Solution

Solution:

since there are 4 bits therefore 2's complement can be within the range of (-24-1) to (+24 - 1-1) ie - 8 to +7

so by adding 2 numbers of 2's complement if they go outside that range then they are overflowing .

Hence :-

soln 1.>

Add 0110 + 0100

0110 in 2s complement = +6

0100 in 2s complement = +4

6+4 =+10 which goes outside they range since at max we can go to +7 using 4bits 2s complement notation therefore its an OVERFLOW

soln 2.>

Add 1010 + 1111

1010 in 2s complement = -6

1111 in 2s complement = -1

(-6)+(-1) =-7  which does not goes outside the range since at max we can go to -8 using 4bits 2s complement notation therefore its NO OVERFLOW

soln 3.>

Add 1011 + 0111

1011 in 2s complement = - 5

0111 in 2s complement = +7

-5 +7 =+2  which does not goes outside the range since at max we can go to +7 using 4bits 2s complement notation therefore its NO OVERFLOW

SHORTCUT(for signed notation or 2s complement notation):-


Related Solutions

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
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers,...
7 – For the following operations: • write the operands as 4-bit 2's complement binary numbers, • perform the operation shown, • show all work in binary operating on 4-bit numbers, and • identify overflow if necessary. a) 4 + 2 b) 4 – 2 c) 2 – 4 d) 4 + 4
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.convert the following numbers from decimal to binary assuming seven-bit twe's complement binary representation: a)49 b)...
1.convert the following numbers from decimal to binary assuming seven-bit twe's complement binary representation: a)49 b) -27 c)0 d) -64 e) -1 f) -2 g) what is the range for this computer as written in binary and in decimal? 2.convert the following numbers from decimal to binary assuming nine-bit twe's complement binary representation: a)51 b) -29 c) -2 d)0 e) -256 f) -1 g ) what is the range for this computer as written in binary and in decimal?
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
The standard method of representing negative numbers in the binary system is with 2's complement notation....
The standard method of representing negative numbers in the binary system is with 2's complement notation. What are the advantages and disadvantages of using this method to represent negative numbers?
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.
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030...
Convert the following decimal numbers to 16-bit 2’s complement binary. Display your result in hexadecimal. a.3030 b.404 c.5050 d.-5050 e.-20000 Show work with steps
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.)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT