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

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.
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!
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
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...
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.  
a-How much heat is required to convert 5.0 kg of ice from a temperature of -10...
a-How much heat is required to convert 5.0 kg of ice from a temperature of -10 C to water vapor at a temperature of 220F? b-You have 200 g of coffee at 55 C, Coffee has the same specific heat as water. How much ice at -5 C do you need to add in order to reduce the coffee’s temperature to 27C.
Convert the base-10 number to Two’s Complement. Show your work. (a) −12 (b) −32 (c) −57...
Convert the base-10 number to Two’s Complement. Show your work. (a) −12 (b) −32 (c) −57 (d) −112 (e) −24 (f) −85
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT