Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy

Similar presentations


Presentation on theme: "Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy"— Presentation transcript:

1 Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
Logic Design (CE1111) Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy

2 Exercise 1 Convert the following binary numbers to octal and hexadecimal numbers ( ) 2 ( ) 2 ( ) 2 ( ) 2 ( ) 2 ( ) 2

3 Exercise 2 Convert the following octal and hexadecimal numbers to binary numbers (234) 8 (4FA2) 16 (5B23.AD67) 16 ( ) 8

4 Exercise 3 Convert the hexadecimal number 64CD to binary, and then convert it from binary to octal Convert the decimal number 431 to binary in two ways: Convert directly to binary Convert first to hexadecimal and then from hexadecimal to binary Which method is faster?

5 Exercise 4 Find the 9’s and the 10’s complement of the following decimal numbers: 25,478,036 63, 325, 600 25,000,000 00,000,000

6 Exercise 5 Obtain the 1’s and 2’s complements of the following binary numbers: ( ) 2 ( ) 2 ( ) 2 ( ) 2 ( ) 2 ( ) 2

7 Exercise 6 Perform subtraction on the given unsigned binary numbers using the 2’s complement of the subtrahend: 1001 –

8 Exercise 7 Perform the mathematical operations on the given signed numbers using the 2’s complement for negative numbers and subtraction operation (+3) + (+5) +16 – (+13) +8 – (– 4) (– 9) – (+5)

9 Exercise 8 Represent the unsigned decimal numbers 791 and 658 in BCD
Convert decimal 6,514 to both BCD and ASCII codes Represent the decimal number 6,248 in BCD excess‐3 code 2421 code 8,4,-2,-1 Code Gray Code


Download ppt "Exercise 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy"

Similar presentations


Ads by Google