week10 - WELCOME EF 105 Spring 2006 Week 10 TOPICS...

This preview shows pages 1–11. Sign up to view the full content.

WELCOME WELCOME EF 105                Spring 2006 Week 10

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
TOPICS Homework#3 and Numbering Systems Given in Previous Lecture: Binary to Decimal (slides 23-25) Decimal to Binary (slides 27-30) Decimal to Hexadecimal (slides 34-40) Given in This Lecture: Binary to Hexadecimal Hexadecimal to Binary Hexadecimal to Decimal Use of WORD for Engineering
Homework#3: Due by 11:59pm on day following   class during week of 03/13 Create in a WORD file an algorithm to  1. Convert a decimal number to binary and to  hexadecimal. 2. Convert a binary number to decimal and to  hexadecimal 3. Convert a hexadecimal number to decimal and  to binary 4. Test your algorithm using the decimal equivalent  of the sum of the positions of the alphabets in  your first name (e.g., Denise = 4+5+14+9+5 =  37)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Binary to hexadecimal conversion   Steps 1. If the number of digits in a binary number is not  a multiple of 4, add enough leading zeros to  make it so.  2. Split the binary number into groups of 4.  3. Convert each group into one hexadecimal  number.  4. Combine the results from step 3 and add the  subscript 16.
Binary to hexadecimal conversion   Steps 1 0 0 0 1 1 0 1 1 2 0001 1011 3 B 4 1B 16 Now, let's convert 11011 2 to hexadecimal.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Binary to hexadecimal conversion   Now, let's try the conversion from binary to hexadecimal. Binary Grouped Binary Hexadecimal 10100 1011 10110111 110111 101001
Hexadecimal-to-binary conversion   Steps 1.Write the hexadecimal number digit by digit.  1.Convert each hexadecimal digit to binary. (Note again that each converted binary number should have 4 digits.) 1.Combine the results from step 2 and add the subscript to indicate that the result is a binary number.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Hexadecimal-to-binary conversion   Steps 1 A 4 C 2 1010 0100 1100 3 101001001100 2 Let's work on one example, A4C 16 .
Hexadecimal-to-binary conversion Now, let's try the conversion from hexadecimal to binary. Hexadecimal Digit1 Digit2 Digit3 Binary Number 123 AC E12 28F

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document