Question

In: Computer Science

2) Show 4 digits to the right of the radix point. a) Convert 94.8710 to binary....

2) Show 4 digits to the right of the radix point.

a) Convert 94.8710 to binary. Show your work.

b) Convert 101101.111 to decimal. Show your work.

Solutions

Expert Solution

a)
Converting 94.87 to binary
Convert decimal part first, then the fractional part
> First convert 94 to binary
Divide 94 successively by 2 until the quotient is 0
   > 94/2 = 47, remainder is 0
   > 47/2 = 23, remainder is 1
   > 23/2 = 11, remainder is 1
   > 11/2 = 5, remainder is 1
   > 5/2 = 2, remainder is 1
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1011110
So, 94 of decimal is 1011110 in binary
> Now, Convert 0.87000000 to binary
   > Multiply 0.87000000 with 2. Since 1.74000000 is >= 1. then add 1 to result
   > Multiply 0.74000000 with 2. Since 1.48000000 is >= 1. then add 1 to result
   > Multiply 0.48000000 with 2. Since 0.96000000 is < 1. then add 0 to result
   > Multiply 0.96000000 with 2. Since 1.92000000 is >= 1. then add 1 to result
0.87 of decimal is .1101 in binary
so, 94.87 in binary is 01011110.1101
Answer: 1011110.1101

b)
101101.111
=> 1x2^5+0x2^4+1x2^3+1x2^2+0x2^1+1x2^0+1x2^-1+1x2^-2+1x2^-3
=> 1x32+0x16+1x8+1x4+0x2+1x1+1x0.5+1x0.25+1x0.125
=> 32+0+8+4+0+1+0.5+0.25+0.125
=> 45.875
Answer: 45.875



Related Solutions

i need to convert decimal to twos complement binary and then add the binary digits but...
i need to convert decimal to twos complement binary and then add the binary digits but I am unable to do it. I am only allowed to use string, can anyone help me out please. i need the code urgently. #include #include #include #include using namespace std; string reverse(string s) { string x = ""; for (long i = s.length() - 1; i >= 0; i--) { x += s[i]; } return x; } string twosComplementStringsAddition(string A, string B) {...
Convert the following decimal numbers to binary (You may use as many binary digits as necessary)...
Convert the following decimal numbers to binary (You may use as many binary digits as necessary) 25610 246710 102310 2310 710 Convert the following binary numbers to hexadecimal 1101 0010 1101 1111 1100 0101 0010 1001 1000 0000 0000 0001 0001 1000 0000 0000 Given  bits, how many unsigned binary numbers can be represented? Given  bits, how many signed binary numbers can be represented using the two’s compliment method? In the two’s complement method, why is there one more negative number than...
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal....
Convert 110.7510 to binary ______ and hexadecimal ______. Show the answer in both binary and hexadecimal. There are ____________ kilobytes in a megabyte. Convert -13210 to a 16-bit 2’s complement in binary ____________ and hexadecimal ______________.
Binary and Floating point: Convert −98765.4321 to IEEE 745 both single and double (show your work)
Binary and Floating point: Convert −98765.4321 to IEEE 745 both single and double (show your work)
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate...
Convert decimal +47 and +31 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers. Then perform the binary equivalent of (+31)+(-47), (-31)+(+47), and (-31)+(-47). Convert the answers back to decimal and verify that they are correct.
(16%) Convert decimal +47 and +38 to binary, using the signed-2’s-complement representation and enough digits to...
(16%) Convert decimal +47 and +38 to binary, using the signed-2’s-complement representation and enough digits to accommodate the numbers, Then, perform the binary equivalent of (+47)+(-38) and (-47)+(-38) using addition. Convert the answers back to decimal and verify that they are correct.
First, Calculate the 1/3 in binary form using 8-digits. Then convert binary form back to decimal....
First, Calculate the 1/3 in binary form using 8-digits. Then convert binary form back to decimal. Why and what is the error in binary representation ?
convert +38 and +17 to binary using the signed 2s complement representation and enough digits to...
convert +38 and +17 to binary using the signed 2s complement representation and enough digits to accomaodate the numbers. Then perform the binary equivalent of (-38) and +17
1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b....
1. Convert to binary and hexadecimal (PLEASE SHOW WORK) a. 35 - binary: - hexadecimal: b. 85 - binary: - hexadecimal: c. 128 - binary: - hexadecimal: d. 4563 - binary: - hexadecimal:
6. Convert numbers as requested. SHOW YOUR WORK Convert 2B7 (base 16) to binary. Convert 0B2C...
6. Convert numbers as requested. SHOW YOUR WORK Convert 2B7 (base 16) to binary. Convert 0B2C (base 16) to binary. Convert -47 (base 10) to binary 8-bit signed-magnitude. Convert -52 (base 10) to binary 8-bit signed-magnitude. Convert -47 (base 10) to binary 8-bit one's complement. Convert -52 (base 10) to binary 8-bit one's complement. Convert -39 (base 10) to 8-bit binary using excess 127 notation. Convert -61 (base 10) to 8-bit binary using excess 127 notation.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT