DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY...

11
10 Revision Exercise DECIMAL BINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001 2 d) 208 10 11010000 2 e) 171 10 10101011 2 f) 75 10 01001011 2

Transcript of DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY...

Page 1: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

DECIMAL BINARY

a) 20310

b) 010011102

c)

d) 110100002

e)

f) 7510

Revision ExerciseDECIMAL BINARY

a) 20310 110010112

b) 7810 010011102

c) 24910 111110012

d) 20810 110100002

e) 17110 101010112

f) 7510 010010112

Page 2: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Hexadecimal Number System

Page 3: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

–16 different values possible:

• 0 1 2 3 4 5 6 7 8 9 A B C D E F

(0 – 9) (10 11 12 13 14 15)

• A to F represent numbers 10 to 15

–Base 16

– E.g. C416

Hexadecimal System

Page 4: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Binary to Hexadecimal Conversion

Q: Convert 011011102 to hexadecimal.

A:2 1482 148

1 0110110

4 + 2 8 + 4 + 2

6 14 = E 6E16

Page 5: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Hexadecimal to Binary Conversion

Q: Convert C416 to binary.

A:2 1482 148

0 0100011

8 + 4

C = 12 4 C416

2

Page 6: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Decimal to Hexadecimal Example 1

Ans: 4110 = 2916

Q: Convert 4110 to hex

A: 4116

2 Remainder 916

0 Remainder 2

Page 7: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Decimal to Hexadecimal Example 2

Ans: 10910 = 6 1316

Q: Convert 10910 to hex

A: 10916

6 Remainder 1316

0 Remainder 6

= 6 D16

Page 8: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Hexadecimal to Decimal Example 1

Q: Convert 3C16 to decimal

A:

160161

Step 1: Place Values

Step 2: Multiply by place value

Step 3: Hex value for letters

48 + 12

3 C

(3 x 16) + (C x 1)

(3 x 16) + (12 x 1)

Step 4: Add values

6010

Page 9: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Hexadecimal to Decimal Example 2

Q: Convert 1F16 to decimal

A:

160161

Step 1: Place Values

Step 2: Multiply by place value

Step 3: Hex value for letters

16 + 15

1 F

(1 x 16) + (C x 1)

(1 x 16) + (15 x 1)

Step 4: Add values

3110

Page 10: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Q: Convert 13910 to hexadecimal.

A:1) convert 13910 to binary

– 13910 100010112

2) convert from 100010112 to hexadecimal.– 100010112 8B16

Decimal to Hexadecimal Short Method

Page 11: DECIMALBINARY a) 203 10 b) 01001110 2 c) d) 11010000 2 e) f) 75 10 Revision Exercise DECIMALBINARY a) 203 10 11001011 2 b) 78 10 01001110 2 c) 249 10 11111001.

Hexadecimal to Decimal Short Method

Q: Convert 1F16 to decimal.

A:1) convert 1F16 to binary

– 1F16 000111112

2) convert from 000111112 to decimal.– 000111112 3110