document.write( "Question 1190037: Convert the following decimal numbers to into binary format\r
\n" );
document.write( "\n" );
document.write( "a. 15\r
\n" );
document.write( "\n" );
document.write( "b. 210\r
\n" );
document.write( "\n" );
document.write( "c. 119\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "Can you please explain me this homework question step-by-step? Thank you! \n" );
document.write( "
Algebra.Com's Answer #821572 by greenestamps(13200)![]() ![]() You can put this solution on YOUR website! \n" ); document.write( "I'll do the second example, showing two different ways. \n" ); document.write( "Place values, base 10: \n" ); document.write( " 1 = 10^0 \n" ); document.write( " 10 = 10^1 \n" ); document.write( " 100 = 10^2 \n" ); document.write( " 1000 = 10^3 \n" ); document.write( " 10000 = 10^4 \n" ); document.write( " etc. \n" ); document.write( "Place values, base 2: \n" ); document.write( " 1(base 2) = 1 = 2^0 \n" ); document.write( " 10(base 2) = 2 = 2^1 \n" ); document.write( " 100(base 2) = 4 = 2^2 \n" ); document.write( " 1000(base 2) = 8 = 2^3 \n" ); document.write( " 10000(base 2) = 16 = 2^4 \n" ); document.write( " 100000(base 2) = 32 = 2^5 \n" ); document.write( " 1000000(base 2) = 64 = 2^6 \n" ); document.write( " 10000000(base 2) = 128 = 2^7 \n" ); document.write( " 100000000(base 2) = 256 = 2^8 \n" ); document.write( " etc. \n" ); document.write( "You should understand how to convert from base 10 to base 2 using place values, because it helps you understand numbers in different bases. But it is a slow and inefficient process. \n" ); document.write( "Here is how to convert 210 (base 10) to base 2 using place values. \n" ); document.write( "The largest power of 2 less than 210 is 128, which is 10000000 (base 2); the number that remains is 210-128=82 \n" ); document.write( "The largest power of 2 less than 82 is 64, which is 1000000 (base 2); the partially converted number is 10000000+1000000 = 11000000; the number that remains is 82-64=18 \n" ); document.write( "The largest power of 2 less than 18 is 16, which is 10000 (base 2); the partially converted number is 11000000 + 10000 = 11010000; the number that remains is 18-16=2 \n" ); document.write( "2 is 10 in base 2 \n" ); document.write( "The conversion is 210 (base 10) = 11010000+10 = 11010010 (base 2). \n" ); document.write( "The process involves repeated subtraction and then repeated referral to a list of powers of 2; that makes the process slow. \n" ); document.write( "Here is a far more efficient way to perform the same conversion. \n" ); document.write( "210/2 = 105 remainder 0 \n" ); document.write( "105 = 52 remainder 1 \n" ); document.write( "52 = 26 remainder 0 \n" ); document.write( "26 = 13 remainder 0 \n" ); document.write( "13 = 6 remainder 1 \n" ); document.write( "6 = 3 remainder 0 \n" ); document.write( "3 = 1 remainder 1 \n" ); document.write( "1 = 0 remainder 1 \n" ); document.write( "The converted number in base 2 is the remainders, written in reverse order: 11010010. \n" ); document.write( "That is a much more efficient process. \r \n" ); document.write( "\n" ); document.write( " \n" ); document.write( " |