Question

In: Computer Science

Suppose you are converting 273332 (base 10) to base 2 using the subtraction method. What is...

Suppose you are converting 273332 (base 10) to base 2 using the subtraction method. What is the decimal number you have left for conversion after 3 steps?

Solutions

Expert Solution

I have to convert 273332 (base10) to base 2 using the subtraction method.

Find the largest power of 2 that is less than 273332.
So let’s go through the powers of 2:

1, 2, 4, 8, 16, 32, 64........... 262144(2^18), 524288(2^19).

Step 1- Okay, 524288 is larger than 273332 so we take one step back and get 262144. 262144 is the largest power of 2 that is still smaller than 273332. How many “whole” (not partial or fractional) times can 262144 go into 273332?

It can go in only once because of 2 x 262144 = 524288 which is larger than 273332. So, we write down a 1.

1

Now, we subtract 262144 from 273332: 273332 – (1)(262144) = 11188.

Step 2- And we move to the next lower power of 2. In this case, that would be 131072. How many full times can 131072 go into 11188? Once. So we write down another 0 and repeat the process.

10

Now, we subtract 11188-(0)(131072) =11188.

Step 3- And we move to the next lower power of 2. In this case, that would be 65536. How many full times can 65536 go into 11188? Once. So we write down another 0 and repeat the process.

100

Now, we subtract 11188-(0)(65536) =11188.

Step 4- And we move to the next lower power of 2. In this case, that would be 32768. How many full times can 32768 go into 11188? Once. So we write down another 0 and repeat the process.

1000

Now, we subtract 11188-(0)(32768) =11188.

Step 5- .....

Step 6- ........

.

.

.

.

The decimal number you have left for conversion after 3 steps is 11188.


Related Solutions

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!
What base 10 number (using powers of 10 if using scientific notation) is represented by the...
What base 10 number (using powers of 10 if using scientific notation) is represented by the following IEEE 754 hexadecimal representation? a. 40 70 00 00 b. FF E4 00 00 c. 80 20 00 00
How to convert 12345 from base 10 to base 2?
How to convert 12345 from base 10 to base 2?
Problem 5: Perform the subtraction on the following pairs of signed numbers using the 2’s complement...
Problem 5: Perform the subtraction on the following pairs of signed numbers using the 2’s complement system. Express the results as signed binary numbers and as decimal values. Please show all work to fully understand. A. 01001 - 11010 B. 10010 - 10011
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
13) Which of the following provides an efficient method of converting 3-bromo-2-methyl-1-butene into 2-methyl-2-butene? A) 1)...
13) Which of the following provides an efficient method of converting 3-bromo-2-methyl-1-butene into 2-methyl-2-butene? A) 1) NaOH; 2) H2, Pd/C B)   1) H2, Pd/C; 2) NaOEt C) 1) H2, Pd/C; 2) Br2 E) 1) H2, Pd/C; 2) KOtBu And I have already known that the correct answer is B, but why? I cannot understand...Please help!! Really thanks
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...
A certain weak base has a Kb of 7.50 × 10-7. What concentration of this base...
A certain weak base has a Kb of 7.50 × 10-7. What concentration of this base will produce a pH of 10.02?
A certain weak base has a Kb of 7.70 × 10-7. What concentration of this base...
A certain weak base has a Kb of 7.70 × 10-7. What concentration of this base will produce a pH of 10.03?
A certain weak base has a Kb of 7.40 × 10-7. What concentration of this base...
A certain weak base has a Kb of 7.40 × 10-7. What concentration of this base will produce a pH of 10.17? __?__ M
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT