In: Computer Science
Please convert this files and includes full process of each converting
Binary to decimal: Please include STEP by STEP:
Decimal to binary
33
254
300
512
513
1) Divide 33 successively by 2 until the quotient is 0 > 33/2 = 16, remainder is 1 > 16/2 = 8, remainder is 0 > 8/2 = 4, remainder is 0 > 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 100001 So, 33 of decimal is 100001 in binary Answer: 100001 2) Divide 254 successively by 2 until the quotient is 0 > 254/2 = 127, remainder is 0 > 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 11111110 So, 254 of decimal is 11111110 in binary Answer: 11111110 3) Divide 300 successively by 2 until the quotient is 0 > 300/2 = 150, remainder is 0 > 150/2 = 75, remainder is 0 > 75/2 = 37, remainder is 1 > 37/2 = 18, remainder is 1 > 18/2 = 9, remainder is 0 > 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 100101100 So, 300 of decimal is 100101100 in binary Answer: 100101100 4) Divide 512 successively by 2 until the quotient is 0 > 512/2 = 256, remainder is 0 > 256/2 = 128, remainder is 0 > 128/2 = 64, remainder is 0 > 64/2 = 32, remainder is 0 > 32/2 = 16, remainder is 0 > 16/2 = 8, remainder is 0 > 8/2 = 4, remainder is 0 > 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 1000000000 So, 512 of decimal is 1000000000 in binary Answer: 1000000000 5) Divide 513 successively by 2 until the quotient is 0 > 513/2 = 256, remainder is 1 > 256/2 = 128, remainder is 0 > 128/2 = 64, remainder is 0 > 64/2 = 32, remainder is 0 > 32/2 = 16, remainder is 0 > 16/2 = 8, remainder is 0 > 8/2 = 4, remainder is 0 > 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 1000000001 So, 513 of decimal is 1000000001 in binary Answer: 1000000001