Question

In: Computer Science

Use the place value method, the division method, or the equivalency chart to convert the following....

Use the place value method, the division method, or the equivalency chart to convert the following. You must show all steps.

Convert the following decimal numbers to the binary number system. a. 10 b. 43 c. 96 d. 156 e. 255

Solutions

Expert Solution

a) 10
Divide 10 successively by 2 until the quotient is 0
   > 10/2 = 5, remainder is 0
   > 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 1010
So, 10 of decimal is 1010 in binary
Answer: 00001010

b) 43
Divide 43 successively by 2 until the quotient is 0
   > 43/2 = 21, remainder is 1
   > 21/2 = 10, remainder is 1
   > 10/2 = 5, remainder is 0
   > 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 101011
So, 43 of decimal is 101011 in binary
Answer: 00101011

c) 96
Divide 96 successively by 2 until the quotient is 0
   > 96/2 = 48, remainder is 0
   > 48/2 = 24, remainder is 0
   > 24/2 = 12, remainder is 0
   > 12/2 = 6, remainder is 0
   > 6/2 = 3, remainder is 0
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1100000
So, 96 of decimal is 1100000 in binary
Answer: 01100000

d) 156
Divide 156 successively by 2 until the quotient is 0
   > 156/2 = 78, remainder is 0
   > 78/2 = 39, remainder is 0
   > 39/2 = 19, remainder is 1
   > 19/2 = 9, remainder is 1
   > 9/2 = 4, remainder is 1
   > 4/2 = 2, remainder is 0
   > 2/2 = 1, remainder is 0
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 10011100
So, 156 of decimal is 10011100 in binary
Answer: 10011100

e) 255
Divide 255 successively by 2 until the quotient is 0
   > 255/2 = 127, remainder is 1
   > 127/2 = 63, remainder is 1
   > 63/2 = 31, remainder is 1
   > 31/2 = 15, remainder is 1
   > 15/2 = 7, remainder is 1
   > 7/2 = 3, remainder is 1
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 11111111
So, 255 of decimal is 11111111 in binary
Answer: 11111111



Related Solutions

Use the place value method, the division method, or the equivalency chart to convert the following....
Use the place value method, the division method, or the equivalency chart to convert the following. You must show all steps. Convert the following decimal numbers to the hexadecimal number system. a. 7 b. 32 c. 55 d. 254 e. 512
Use the place value method, the division method, or the equivalency chart to convert the following....
Use the place value method, the division method, or the equivalency chart to convert the following. You must show all steps. Convert the following binary numbers to the hexadecimal number system. a. 0000 0001 b. 0111 0010 c. 1010 0111 d. 1100 0100 e. 1111 1111
Use the place value method, the division method, or the equivalency chart to convert the following....
Use the place value method, the division method, or the equivalency chart to convert the following. You must show all steps. Convert the following hexadecimal numbers to the binary number system. a. C b. 33 c. 10 d. BA e. 9DF
Use the matrix inverse and the matrix division method to solve the following set for x and y in terms of c:
Use the matrix inverse and the matrix division method to solve the following set for x and y in terms of c:
This is for C++ Assuming the value of a is already defined elsewhere, convert the following...
This is for C++ Assuming the value of a is already defined elsewhere, convert the following code snippet from using a WHILE loop to using a DO-WHILE loop. Please paste in the modified code in the text area below. int k = 1; while( k <= 8 ) { a = a * k; k++; }
use the method of order two to approximate the solution to the following initial value problem...
use the method of order two to approximate the solution to the following initial value problem y'=e^(t-y),0<=t<=1, y(0)=1, with h=0.5
Exercise (a) Use Euler's method with each of the following step sizes to estimate the value...
Exercise (a) Use Euler's method with each of the following step sizes to estimate the value of y(1.6), where y is the solution of the initial-value problem y' = y, y(0) = 6. (i)    h = 1.6 (ii)    h = 0.8 (iii)    h = 0.4 Exercise (b) We know that the exact solution of the initial-value problem in part (a) is y = 6ex. Draw, as accurately as you can, the graph of y = 6ex, 0 ≤ x ≤ 1.6, together with...
Use the Free Cash Flow method of valuation and the following information, to calculate the value...
Use the Free Cash Flow method of valuation and the following information, to calculate the value for a venture with the following information. Expected sales at year zero (or beginning of year 1): $2.50 M; growth rate in sales for the first 8 years: 35%; and for years 9-on: 10%; Annual profit margin (or EBIAT/Sales) for all years=22%; Annual asset intensity ratio (or (FA+WC)/Sales) for all years = 32%; discount rate in years 1-8: 30%, and in years 9-on: 16%....
Use the discounted payback method, the net present value method, and the profitability index method to...
Use the discounted payback method, the net present value method, and the profitability index method to evaluate the following project: Year 0 Initial Investment 900,000 Year 1 Income 175,000 Year 2 Income 450,000 Year 3 Additional investment 100,000 Year 4 Income 630,000 Discount rate 7% DPB __________ years NPV ______________ PI ______________ Would you recommend that the board accept or reject this project? ________________ Accept or reject
Convert the following recursive method to be tail-recursive Explain what is the advantage of a recursive...
Convert the following recursive method to be tail-recursive Explain what is the advantage of a recursive method to be tail-recursive. public int f8( int[] arr, int index ) { if ( index == -1 ) return 0; if (arr[index] == 2) return 1 + f8( arr, index - 1 ); return f8( arr, index - 1); }
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT