Question

In: Computer Science

Add 111 0011 to 100 1100 and show the V and C bits (seven bits)

Add 111 0011 to 100 1100 and show the V and C bits (seven bits)

Solutions

Expert Solution

V = 1
C = 1
because overflow (V) was there and carry (C) was there

Explanation:
-------------
Adding 1110011 and 1001100 in binary
    1110011
    1001100
------------
 (1)0111111
------------
Sum produces a carry of 1. We can ignore that carry.
So, sum of these numbers in binary is 0111111

Verification
---------------
first = 1110011
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   1110011 is flipped to 0001100
II. Add 1 to above result
0001100 + 1 = 0001101
III. Now convert this result to decimal value
Converting 1101 to decimal
1101
=> 1x2^3+1x2^2+0x2^1+1x2^0
=> 1x8+1x4+0x2+1x1
=> 8+4+0+1
=> 13
Answer: -13

second = 1001100
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   1001100 is flipped to 0110011
II. Add 1 to above result
0110011 + 1 = 0110100
III. Now convert this result to decimal value
Converting 110100 to decimal
110100
=> 1x2^5+1x2^4+0x2^3+1x2^2+0x2^1+0x2^0
=> 1x32+1x16+0x8+1x4+0x2+0x1
=> 32+16+0+4+0+0
=> 52
Answer: -52

sum = 0111111
since left most bit is 0, this number is positive
so, we can directly convert this into a decimal value
Converting 111111 to decimal
111111
=> 1x2^5+1x2^4+1x2^3+1x2^2+1x2^1+1x2^0
=> 1x32+1x16+1x8+1x4+1x2+1x1
=> 32+16+8+4+2+1
=> 63
Answer: 63
-13+-52 must be -65
This is not correct since we can verify that -13+-52 not equals 63
So, there was an overflow.

Related Solutions

Add 011 0011 to 010 1100 and show the V and C bits (seven bits and...
Add 011 0011 to 010 1100 and show the V and C bits (seven bits and show work)
Add binary numbers 0 1010 1100+ 0 0011 1010 a. 0 1110 0110,NZVC= 0000 b. 1...
Add binary numbers 0 1010 1100+ 0 0011 1010 a. 0 1110 0110,NZVC= 0000 b. 1 0101 1011,NZVC= 1001 c. 0 0110 1111,NZVC= 0011 d. 1 0000 0110,NZVC= 1010 e. None of the above
10. Convert 101 1010 (seven bits) into a signed decimal (show work) 15. Give the value...
10. Convert 101 1010 (seven bits) into a signed decimal (show work) 15. Give the value of 011 1101 and C=0 with ROL (seven bits, show work) 16. Give the signed decimal value of 93A (12 bits, show work) 18. Give the binary equivalent of the decimal number of 13.57 (assume fixed point, no more than 6 bits left and right of the decimal point)
In a thermally isolated environment, you add ice at 0°C and steam at 100°C. (a) Determine...
In a thermally isolated environment, you add ice at 0°C and steam at 100°C. (a) Determine the amount of steam condensed (in g) AND the final temperature (in °C) when the mass of ice and steam added are respectively 84.0 g and 10.8 g. (b) Repeat this calculation, when the mass of ice and steam added are interchanged. (Enter the amount of steam condensed in g and the final temperature in °C.)
Calculate V and Z for methyl chloride at 100 ° C and 55bar for the ideal...
Calculate V and Z for methyl chloride at 100 ° C and 55bar for the ideal gas equation, by the equation of virial. Data: R = 83.14 cm 3 bar/molK; viral coefficient B equals -242.5 cm3/mol.
You add 7.25 g of ice at 0.00 C to 100 g of water at 80.0...
You add 7.25 g of ice at 0.00 C to 100 g of water at 80.0 C. What is the final temperature of the mixture at thermal equilibrium assuming no heat loss to the surroundings? The specific heat capacity of liquid water is 4.184 J/gC and the enthalpy of fusion for water is 6.02 kJ/mol at 0.00C.
A container of water has 400 mL of water at 90 degrees C. You add 100...
A container of water has 400 mL of water at 90 degrees C. You add 100 grams of ice at -20 degrees C. What is the final temperature of the mixture? please show work
A light foam cup contains Y*100 g of water at 75.0°C. I add ice with an...
A light foam cup contains Y*100 g of water at 75.0°C. I add ice with an initial temperature of 0.00°C to the water until the temperature is 40.0°C. 16.How much ice did I add? 17.What happened to the entropy of the system of ice and water when I mixed them? Y=24
We have a RLC series circuit. On this circuit V=100+j0 volts R=10ohm, L=85mH and C=1uF regarding...
We have a RLC series circuit. On this circuit V=100+j0 volts R=10ohm, L=85mH and C=1uF regarding to this values; * What should F0 has to be for making this circuit work at resonance position? * What is XL value with using F0 frequency? * What is XC value with using F0 frequency? * What is I value when the circuit is at resonance position? * What are voltages on VR, VXL, and VXC components when the circuit is on resonance...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT