# ex1ans - The Chinese University of Hong Kong Department of...

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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The Chinese University of Hong Kong Department of Computer Science and Engineering ERG2020A (Fall 2007): Revision Exercise # 1 Suggested Solution 1. Convert the following decimal numbers to binary: 1776, 1812, 1969, and 2000. Please show your steps. Ans: 1776 10 = 11011110000 2 1776 ÷ 2 = 888 ... 888 ÷ 2 = 444 ... 444 ÷ 2 = 222 ... 222 ÷ 2 = 111 ... 111 ÷ 2 = 55 ... 1 55 ÷ 2 = 27 ... 1 27 ÷ 2 = 13 ... 1 13 ÷ 2 = 6 ... 1 6 ÷ 2 = 3 ... 3 ÷ 2 = 1 ... 1 Ans: 1812 10 = 11100010100 2 1812 ÷ 2 = 906 ... 906 ÷ 2 = 453 ... 453 ÷ 2 = 226 ... 1 226 ÷ 2 = 113 ... 113 ÷ 2 = 56 ... 1 56 ÷ 2 = 28 ... 28 ÷ 2 = 14 ... 14 ÷ 2 = 7 ... 7 ÷ 2 = 3 ... 1 3 ÷ 2 = 1 ... 1 Ans: 1969 10 = 11110110001 2 1969 ÷ 2 = 984 ... 1 984 ÷ 2 = 492 ... 492 ÷ 2 = 246 ... 246 ÷ 2 = 123 ... 123 ÷ 2 = 61 ... 1 61 ÷ 2 = 30 ... 1 30 ÷ 2 = 15 ... 15 ÷ 2 = 7 ... 1 7 ÷ 2 = 3 ... 1 3 ÷ 2 = 1 ... 1 Ans: 2000 10 = 11111010000 2 2000 ÷ 2 = 1000 ... 1000 ÷ 2 = 500 ... 500 ÷ 2 = 250 ... 250 ÷ 2 = 125 ... 125 ÷ 2 = 62 ... 1 62 ÷ 2 = 31 ... 31 ÷ 2 = 15 ... 1 15 ÷ 2 = 7 ... 1 7 ÷ 2 = 3 ... 1 3 ÷ 2 = 1 ... 1 1 2. Convert the following numbers from the given base to the other three bases listed in the table: (correct to 3 decimal places) Decimal Binary Octal Hexadecimal 289.42 100100001.0110 441.3270 121.6B85 69.625 1000101.101 105.5 45.A 157.75 10011101.110 235.6 9D.C 58792.6875 1110010110101000.1011 162650.54 E5A8.B 3. Convert the following decimal numbers to the indicated bases using the methods of Example 1-3 on page 15 and 1-6 on page 17 on the textbook (Lecture Note 1 page 18). (correct to 3 decimal places) (a) 6789.6 to octal Integer part: 6789 ÷ 8 = 848 ... 5 848 ÷ 8 = 106 ......
View Full Document

## This note was uploaded on 05/18/2010 for the course ENGINEERIN ERG2020A taught by Professor Leekinhong during the Spring '07 term at CUHK.

### Page1 / 8

ex1ans - The Chinese University of Hong Kong Department of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online