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 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 ______________.
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.
Convert 290.2 to binary
Convert 290.2 to binary
Convert the following numbers as indicated. show steps. Use as few digits in the results as...
Convert the following numbers as indicated. show steps. Use as few digits in the results as necessary or as many as indicated in the problems (note: don't use HEX table lookup). a) (010010111)2 to Base 10 b) (-76)10 to binary 2's complement representation using 9 bits c) (67.4375)10 to unsigned binary d) (-53)10 to hexadecimal 2’s complement representation
Convert 1101.11011101 x 223 to IEEE Standard 754 for single-precision floating-point binary format. Convert the IEEE...
Convert 1101.11011101 x 223 to IEEE Standard 754 for single-precision floating-point binary format. Convert the IEEE Standard 754 number 11001010100011010101000000000000 to its decimal equivalent.
How to convert binary to hex?
How to convert binary to hex?
Convert the binary numbers to decimal. Show a single sample calculation for the first number (10010010)....
Convert the binary numbers to decimal. Show a single sample calculation for the first number (10010010). 0111 1111 1001 0110 0101 1100 1100 0111
Convert the following decimal number into (a) binary and (b) Octal (SHOW ALL STEPS) 205.75
Convert the following decimal number into (a) binary and (b) Octal (SHOW ALL STEPS) 205.75
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT