{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Practice6_3211

# Practice6_3211 - have the same value in decimal Please show...

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

German University in Cairo Faculty of Media Engineering and Technology Prof. Dr. Slim Abdennadher Introduction to Computer Science , Winter Term 2009-2010 Practice Assignment 6 Discussion: 21.11.2009 - 26.11.2009 Exercise 6-1 Convert the following decimal numbers to binary. Please show your workout. a) 22 b) 197 c) 1000 d) 673 Exercise 6-2 Convert the following numbers to decimal. Please show your workout. a) (1001001) 2 b) (12121) 3 c) (1032) 4 d) (50) 7 e) (198) 12 f) ( ABC ) 16 Exercise 6-3 Perform the following number system conversions. Please show your workout. a) 1101011 2 = ... 16 b) 10110111 2 = ... 16 c) F 3 A 5 16 = ... 2 d) 15 C 16 = ... 2 e) 101111 2 = ... 8 f) 11101 2 = ... 8 1

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

View Full Document
Exercise 6-4 Determine whether the following statements are true or false. Please show your workout. a) 1001 2 < 5 10 b) 0111 2 = 111 10 c) 1001 2 > 1101 2 d) 1011 2 = 11 10 e) 0000 2 < 0 10 f) 10111 2 < 25 10 Exercise 6-5 Each of the following ve numbers has a di erent base. Which of the six numbers
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: have the same value in decimal? Please show your workout. a) (12011) 3 b) (3312) 4 c) (2022) 5 d) (2 A 7) 11 e) (19 A ) 12 f) ( AB 9) 16 Exercise 6-6 Convert the following numbers from binary to decimal: a) (1001001 . 011) 2 b) (101111 . 0111) 2 c) (0 . 1110100) 2 Exercise 6-7 Converting a decimal integer to its binary equivalent can be performed by repeatedly dividing the decimal number by 2. Division by 2 will either give a remainder of 1 (dividing an odd number) or no remainder (dividing an even number). Collecting the remainders (starting by the last one) from the repeated divisions gives the binary answer. Express this algorithm using a pseudo-code. 2...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

Practice6_3211 - have the same value in decimal Please show...

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

View Full Document
Ask a homework question - tutors are online