Question

In: Computer Science

How to convert 12345 from base 10 to base 2?

How to convert 12345 from base 10 to base 2?

Solutions

Expert Solution

Please find the answer below::

To convert a number from decimal to binary, divide the number by 2 until the quotient is not the zero. Write a reminder to the side at each step.

12345 divide by 2 quotient is 6172 and reminder is 1

6172 divide by 2 quotient is 3086 and reminder is 0

3086 divide by 2 quotient is 1543 and reminder is 0

1543 divide by 2 quotient is 771 and reminder is 1

771 divide by 2 quotient is 385 and reminder is 1

385 divide by 2 quotient is 192 and reminder is 1

192 divide by 2 quotient is 96 and reminder is 0

96 divide by 2 quotient is 48 and reminder is 0

48 divide by 2 quotient is 24 and reminder is 0

24 divide by 2 quotient is 12 and reminder is 0

12 divide by 2 quotient is 6 and reminder is 0

6 divide by 2 quotient is 3 and reminder is 0

3 divide by 2 quotient is 1 and reminder is 1

1  divide by 2 quotient is 0 and reminder is 1

Now write reminder from bottom to up it will be . 11000000111001

Hence 12345 in decimal will be 11000000111001 in binary


Related Solutions

Convert 101 from base-2 number system to base-10 number system Convert 101 from base-2 number system...
Convert 101 from base-2 number system to base-10 number system Convert 101 from base-2 number system to base-16 number system Convert 100 from base-10 number system to base-2 number system Convert 100 from base-10 number system to base-16 number system Convert ef from base-16 number system to base-2 number system Convert ef from base-16 number system to base-10 number system
1. Explain how to convert positive integers from base 3 to base 10 and vice versa....
1. Explain how to convert positive integers from base 3 to base 10 and vice versa. Include examples. 2. Explain how to convert fractions from base 3 to base 10 and vice versa. Include examples.
convert the binary number(base 2) To Octal (base 8) to decimal (base 10) a. 101 b....
convert the binary number(base 2) To Octal (base 8) to decimal (base 10) a. 101 b. 1001 c. 101010 d.1101101 convert the number to the other base a. 253 base 10 to base 8 b. 98 base 10 to base 3 C. 1340 base 10 to base 16 D. AB Base 16 to base 8 E. 111010 base 2 to base 16 F. 1010101 base 2 to base 6 g. 69 base 10 to base 2 h . 1023 base...
Write a Java program named BinaryConversion that will convert base 2 numbers to base 10 numbers....
Write a Java program named BinaryConversion that will convert base 2 numbers to base 10 numbers. The data for this program will be entered from the keyboard using JOptionPane one 16-bit binary number at a time. Note that each base 2 number is actually read in as a String. The program should continue until a 16-bit base 2 number consisting of all 0’s is entered. Once the 16-bit number has been entered your program should make sure that the input...
How to convert 27354 in base 8 to base 16?
How to convert 27354 in base 8 to base 16?
Use a change of base formula to convert log4.5 9000 to base 10.
Use a change of base formula to convert log4.5 9000 to base 10.
3.5 (base 10) == 01000000011000000000000000000000 (base 2) -2.0625 (base 10) == 11000000000001000000000000000000 (base 2) -7.21875 (base...
3.5 (base 10) == 01000000011000000000000000000000 (base 2) -2.0625 (base 10) == 11000000000001000000000000000000 (base 2) -7.21875 (base 10) == 11000000111001110000000000000000 (base 2) Calculate 3.5 * -2.0625 (= -7.21875) using the algorithm for floating point multiplication. You must show work for credit!
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
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...
Digital arithmetic: a) Convert +35 to 2-complement b) Convert -35 to 2-complement c) Convert 2-complement from...
Digital arithmetic: a) Convert +35 to 2-complement b) Convert -35 to 2-complement c) Convert 2-complement from 1101 1101 to decimal d) Add 35 - 35 in binary
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT