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.
(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.
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:
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal:...
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal: 2. 37 - binary: - decimal: 3. 0A -binary: - decimal: 4. 11 - binary: - decimal:
convert fraction decimal number 14/13 to acorrectly rounded binary number with 8 digits.
convert fraction decimal number 14/13 to acorrectly rounded binary number with 8 digits.
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
(C++)Radix Sort: Write C++ codes for radix sort: use counting sort for decimal digits from the...
(C++)Radix Sort: Write C++ codes for radix sort: use counting sort for decimal digits from the low order to high order. The input array is A = {329, 457, 657, 839, 436, 720, 353}
Convert 290.2 to binary
Convert 290.2 to binary
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT