📄 content.html
字号:
</td> </tr> <tr> <td bgcolor="#000000"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td class="riohdr"><img height="1" width="2" border="0" src="../../../../../images/ccna/common/transdot.gif"></td><td valign="top" class="riohdr">1.3.5</td><td width="100%" class="riohdr"> <table width="90%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="riohdr">Converting decimal numbers to binary numbers</td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table width="90%" cellspacing="0" cellpadding="0" border="0"> <tr> <td class="smtext"> <p> </p><table cellpadding="0" cellspacing="0" width="100%" border="0" xmlns:java="http://xml.apache.org/xslt/java"> <tr> <td width="100%"><img height="10" width="1" border="0" src="../../../../../images/ccna/common/transdot.gif"></td> </tr> <tr> <td width="100%"> <table bgcolor="#000000" bordercolor="#000000" cellspacing="0" bordercolorlight="#000000" width="100%" border="0"> <tr> <td width="100%"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="2" width="100%" border="0"> <tr> <td valign="middle"><img height="22" width="22" border="0" src="../../../../../images/ccna/common/inotes.gif"></td><td valign="middle"><span class="cstitle">Instructor Note</span></td> </tr> <tr> <td valign="top"> </td><td valign="top"><span class="cstext"> <p>The purpose of this target indicator is that the student be able to convert decimal numbers to binary without the use of a calculator. It is important to learn the logic and basic algorithms of Base 2 number systems, and while calculator use can be permitted and encouraged after the basics are mastered, students must be agile with binary numbers. Also, calculators are not permitted on the certification exam.</p> <p>Two algorithms are presented for converting decimal to binary. Present whatever method you feel best works for your students. The algorithm in the graphic uses a flowchart to convey the steps to be followed; the algorithm described in the text is successive division. Actually they are the same algorithm, presented two different ways.</p> <p>An entertaining class activity is to have 8 students come to the front of the class. Give one of them a ONE sign, the next a TWO sign, the next a FOUR sign, the next an EIGHT sign, the next a SIXTEEN sign, the next a THIRTY-TWO sign, the next a SIXTY-FOUR sign, and the last student a ONE TWENTY-EIGHT sign. Arrange them in order, facing the class, Least significant bit to most significant bit. Have a student from the class call out a DECIMAL number between 0 and 255 (the largest decimal equivalent of an eight-bit binary number). The job of the students in front is to stand up if their bit is a ONE in the representation of the called-out decimal number; they should stay seated if their bit is a ZERO. This requires every student up front to do the conversion; require the students in the rest of the class do the conversion as well.</p> <p>This TI relates to CCNA Certification Exam Objective #30.</p> </span></td> </tr> </table> </td> </tr> </table> </td> </tr> </table><p>There are two basic ways to convert decimal numbers to binary numbers. The flowchart in the main graphic describes one process with an example. Another approach is called the remainder method. This method uses repeated divisions using the base number of the system. In this case it is Base 2. <img border="0" src="../../../../../CHAPID=knet-v214aCH47501/RLOID=knet-v214aRLO47520/RIOID=knet-v214aRIO120864/knet/v214adataimage1/1.gif" width="12" height="12"></p><p>Conversion exercise. <img border="0" src="../../../../../CHAPID=knet-v214aCH47501/RLOID=knet-v214aRLO47520/RIOID=knet-v214aRIO120864/knet/v214adataimage2/2.gif" width="12" height="12"></p><p> <b>Example:</b> </p><p>Convert the decimal number 192 to a binary number.</p><table border="0" cellpadding="3" cellspacing="0"><tr><td colspan="1" rowspan="1"><span class="smtext">192/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">96</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>0</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">96/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext"> 48</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>0</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">48/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">24</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>0</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">24/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">12</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>0</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">12/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">6</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>0</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">6/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">3</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>0</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">3/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">1</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>1</b></span></td></tr><tr><td colspan="1" rowspan="1"><span class="smtext">1/2</span></td><td colspan="1" rowspan="1"><span class="smtext"> =</span></td><td colspan="1" rowspan="1"><span class="smtext">0</span></td><td colspan="1" rowspan="1"><span class="smtext"> with a remainder of</span></td><td colspan="1" rowspan="1"><span class="smtext"><b>1</b></span></td></tr></table><p>Write down all the remainders, backwards, and you have the binary number <b>11000000</b>.</p><table cellpadding="0" cellspacing="4" width="63%" border="0" xmlns:java="http://xml.apache.org/xslt/java"> <tr> <td valign="middle" width="8%"><img height="23" width="23" src="../../../../../images/ccna/common/icon2.gif"></td><td valign="middle" width="92%"><span class="cstitle">Web Links</span></td> </tr> <tr> <td valign="middle" width="8%"> </td><td valign="middle" width="92%"><span class="smtext"><a target="_blank" href="http://www.howstuffworks.com/bytes.htm">How Bits and Bytes Work</a></span></td> </tr> </table></td> </tr> </table> </td> </tr></table> <p> </p> <table width="100%" cellspacing="0" cellpadding="2" border="0" valign="bottom"> <tr> <td></td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -