Tutorial Sheet Digital

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Tutorial Sheet 1

(a) Convert the following base-10 numbers to base 2


1. 4 3 9 2 7 5 6 8 1
2. 12 54 98 36 58 14 78 52 62
3. 125 895 657 627 151 458 359 987 5 21

(b) Convert the following base-10 numbers to base 8 and base 16


1. 97 36 58 14 78 45 25 14 19
2. 534 895 657 627 666 357 825 457 685
3. 2321 4598 6514 1230 1884 6545 3665 5147 8520

(c) Convert the following base-16 numbers to base 10


1. 4A 45 FF AB 2E 3D F4 99 78 CA
2. 5D7 12D 2E5 EEE A1A 45C C5A 4E4 CE9 CAC
3. 12AC AD45 4554 7898 A459 1B45 1205 1F58 14A0 7AE8

(d) Convert the following base-16 numbers to base 2


1. 2E 3D F4 99 78 CA 12 98 AB 65 A0
2. 5D7 12D 2E5 EEE 45A 65C 4C5 2B8 BA5 E45 F0F
3. 7898 A459 1B45 1205 455C CA12 9AB9 1EEE BAAB A02E 12AD

(e) Convert the following unsigned base-2 numbers to base 10


1. 10011 11100 01011 11000 00111 01010
2. 01010101 10101010 11001100 00111011 10110001 11111111
3. 1001110110 1000111100 0100111100 1110001110 1010111011 0110110111

(f) Convert the following signed base-2 numbers to base 10


1. 10011 11100 01011 11000 00111 01010
2. 01010101 10101010 11001100 00111011 10110001 11111111
3. 1001110110 1000111100 0100111100 1110001110 1010111011 0110110111

(g) Convert the following unsigned base-2 numbers to base 16


1. 10011 11100 01011 11000 00111 01010
2. 01010101 10101010 11001100 00111011 10110001 11111111
3. 1001110110 1000111100 0100111100 1110001110 1010111011 0110110111
(h) Convert the following signed base-2 numbers to base 16
1. 100111 101010 011011 001011 111010 111100
2. 01010101 10101010 10101100 00110011 10110101 11100111
3. 1001110110 1000111100 0100111100 1110001110 1010111011 0110110111
(i) Convert the following signed base-2 numbers to base 10
1. 01010101 10101010 11001100 00111011 10110001 11111111
2. 0110111001 0111001110 111000111 1001111100 100100100 010101010
3. 1001110110 1000111100 0100111100 1110001110 1010111011 0110110111

(j) Express the following base-10 numbers in natural BCD format


1. 78 56 37 45 98 36
2. 845 656 357 459 201 451
3. 7845 4656 3057 4050 1254 6589
(k) Given the base-2 numbers: A =
1001010 B = 1110011 C = 000101 D = 10101101

1. Evaluate the following


1. B + C, D + B, B + B, A + C
2. A – C, C – A, B – A, B – D
3. A * C, B * C, D*C, A * A
4. A / C, D / C, A / B, D / B
2. Evaluate the two's complement of A, B, C, D
(l) Given the BCD numbers: A = 01000100
B = 10010011 C = 10000101 D =
100100110111
1. Evaluate the following and then obtain the gray code and excess-3 equivelent

1. B + C , D + B, B + B, A + C
2. A – C, C – A, B – A , D – B
Use the IEEE 754 standard to encode the following decimals
1. 1.1
2. 10.5
3. 0.99875
4. 12325698.125487
5. 0.00012

Decode the following binary numbers, represented in gray code , to decimals


1. 1010100010011
2. 10011000000101
3. 1001100000101
4. 101010001001

Decode the following binary numbers, represented in IEEE 754 standard, to decimals
1. 10101000100110000001010101000101
2. 10011000000101010100010110101000
3. 00010011000001010101010101000101
4. 10101000100110000001010101000101
5. 01000100100101010101011011010101

You might also like