Question

In: Computer Science

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.  

Solutions

Expert Solution

1)
flip all the bits. Flip all 0's to 1 and all 1's to 0.
   00001001 is flipped to 11110110
Add 1 to above result
11110110 + 1 = 11110111
Answer: 11110111

2)
Converting 0.3828125 to binary
Convert decimal part first, then the fractional part
> First convert 0 to binary
Divide 0 successively by 2 until the quotient is 0
Read remainders from the bottom to top as
So, 0 of decimal is  in binary
> Now, Convert 0.38281250 to binary
   > Multiply 0.38281250 with 2. Since 0.76562500 is < 1. then add 0 to result
   > Multiply 0.76562500 with 2. Since 1.53125000 is >= 1. then add 1 to result
   > Multiply 0.53125000 with 2. Since 1.06250000 is >= 1. then add 1 to result
   > Multiply 0.06250000 with 2. Since 0.12500000 is < 1. then add 0 to result
   > Multiply 0.12500000 with 2. Since 0.25000000 is < 1. then add 0 to result
   > Multiply 0.25000000 with 2. Since 0.50000000 is < 1. then add 0 to result
   > Multiply 0.50000000 with 2. Since 1.00000000 is >= 1. then add 1 to result
   > This is equal to 1, so, stop calculating
0.3828125 of decimal is 0.0110001 in binary
so, 0.3828125 in binary is 0.0110001
if you need only 4 bits, answer is 0.0110
Answer: 0.0110

3)
flip all the bits. Flip all 0's to 1 and all 1's to 0.
   00110100 is flipped to 11001011
Answer: 11001011

Related Solutions

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.
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit...
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit signed arithmetic (convert to 8-bit binary sequences) and use two’s complement for the negative number, give the result as both an 8-bit binary sequence and in base 10: 127 – 74. 3. What does shifting a binary sequence to left by 3 places correspond to (from the arithmetic standpoint)
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert...
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert 69 (base 10) to 8-bit binary using one’s complement. Show your work 1c. Convert 70 (base 10) to 8-bit binary using two’s complement. Show your work. 1d. Convert - 67 (base 10) to 8-bit binary using signed magnitude. 1e. Convert - 67 (base 10) to 8-bit binary using ones compliment. Show your work. 1f. Convert - 67 (base 10) to 8-bit binary using 2s...
Convert the base-10 number to Two’s Complement. Show your work. (a) −12 (b) −32 (c) −57...
Convert the base-10 number to Two’s Complement. Show your work. (a) −12 (b) −32 (c) −57 (d) −112 (e) −24 (f) −85
Find the decimal equivalents for the following 8-bit two’s complement numbers. a. 0010 0100 Decimal Equivalent...
Find the decimal equivalents for the following 8-bit two’s complement numbers. a. 0010 0100 Decimal Equivalent ___________ b. 1010 1001 Decimal Equivalent ___________ c. 1100 0011 Decimal Equivalent ___________ d. 0101 0101 Decimal Equivalent ___________
11.  Convert this hexadecimal notation to binary notation: E4B Answer format: put a space between each four-bit...
11.  Convert this hexadecimal notation to binary notation: E4B Answer format: put a space between each four-bit pattern. (e.g., 1000 0000 0111) 12. Convert this decimal notation to an excess notation system using bit patterns of length three: -1 13. Convert this two's complement notation to its equivalent base ten representation: 10011 Note: Since the tables in the book on page only show 7 through -8 in a pattern of length four,          you will need to create a pattern of length...
Convert the following numbers to 8-bit binary and 8-bit hexadecimal: a) 20 b) 78 c) -25...
Convert the following numbers to 8-bit binary and 8-bit hexadecimal: a) 20 b) 78 c) -25 d) -96 Convert the following hexadecimal numbers to binary and decimal assuming two's compliment format: a) 0x56 b) 0x14 c) 0xF8 d) 0xCC MUST DO ALL PROBLEMS AND SHOW ALL WORK!!!!
Solve each of the following problems by translating the values into two’s complement notation (using patterns...
Solve each of the following problems by translating the values into two’s complement notation (using patterns of 5 bits), converting any subtraction problem to an equivalent addition problem, and performing that addition. Check your work by converting your answer to base 10 notation. (Watch out for overflow.) a. 5 + 1 b. 12 – 5 c. 5 – 11 d. 12 + 5 e. 5 – 1
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?
Digital arithmetic: a) Convert +35 to 2-complement b) Convert -35 to 2-complement c) Convert 2-complement from...
Digital arithmetic: a) Convert +35 to 2-complement b) Convert -35 to 2-complement c) Convert 2-complement from 1101 1101 to decimal d) Add 35 - 35 in binary
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT