0% found this document useful (0 votes)
9 views8 pages

Classnote 1

The document provides a series of exercises related to number base conversions, arithmetic operations, and complements in various numeral systems including octal, hexadecimal, binary, and decimal. It includes specific examples of converting decimal numbers to different bases, performing addition and multiplication without converting to decimal, and calculating 1's and 2's complements. Additionally, it covers the 9's and 10's complements for decimal numbers and the 5's complement for base-6 numbers.

Uploaded by

gekana126
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views8 pages

Classnote 1

The document provides a series of exercises related to number base conversions, arithmetic operations, and complements in various numeral systems including octal, hexadecimal, binary, and decimal. It includes specific examples of converting decimal numbers to different bases, performing addition and multiplication without converting to decimal, and calculating 1's and 2's complements. Additionally, it covers the 9's and 10's complements for decimal numbers and the 5's complement for base-6 numbers.

Uploaded by

gekana126
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Nama : Ni Made Ayu Pranasanthi Dewi

NIM : 2208561130
Kelas : E
Matkul: Sistem Digital
1-6. Convert the following decimal number to the indicated bases
a). 7562.45 to octal
7562 . 45
7562 : 8 = 945 sisa 2 0.45 * 8 = 3.6 ->3
945 : 8 = 118 sisa 1 0.6 * 8 = 4.8 -> 4
118 : 8 = 14 sisa 6 0.8 * 8 = 6.4 -> 6
14 : 8 = 1 sisa 6 0.4 * 8 = 3.2 ->3
1 : 8 = 0 sisa 1 0.2 * 8 = 1.6 ->1
------------------------------ …
(16612)8 -----------------------
(0.34631…)8
(7562.45)10 = (16612.34631…)8

b). 1938.257 to hexadecimal


1938 . 257
1938 : 16 = 121 sisa 2 0.257 x 16 = 4.112
121 : 16 = 7 sisa 9 0.112 x 16 = 1.792
7 : 16 = 0 sisa 7 0.792 x 16 = 12.672; 12 = C
------------------------------ 0.672 x 16 = 10.752; 10 = A
(792)16 0.752 x 16 = 12.032; 12 = C
0.32 x 16 = 5.12
0.12 x 16 = 1.56
0.56 x 16 = 8.96
0.96 x 16 = 15.36; 15 = F
0.35 x 16 = 5.76
0.76 x 16 = 12.16; 12 = C
0.16 x 16 = 2.56
0.56 x 16 = 8.96

-----------------------
(0.41CAC518F5C28…)16
(792.257)10 = (792.41CAC518F5C28…))16

c). 175.175 to binary


175 . 0.175
175 : 2 = 87 sisa 1 0.175 x 2 = 0.350
87 : 2 = 43 sisa 1 0.350 x 2 = 0.700
43 : 2 = 21 sisa 1 0.700 x 2 = 1.400
21 : 2 = 10 sisa 1 0.400 x 2 = 0.800
10 : 2 = 5 sisa 0 0.800 x 2 = 1.600
5 : 2 = 2 sisa 1 0.600 x 2 = 1.200
2 : 2 = 1 sisa 0 0.200 x 2 = 0.400
1 : 2 = 0 sisa 1 0.400 x 2 = 0.800
------------------------------ ....
(101011111)2 -----------------------
(0.00101100…)2
(175.175)10 = (101011111.00101100…)2

1-9. Add and multiply the following number without converting to decimal
a) (367)8 and (715)8
(367)8 x (715)8 = (336313)8 (15F)16 and (A7)16
b) (110110)2 and (110101)2
(110110)2 + (110101)2 = (1101011)2
1-10. Perform the following division in binary 11111111 / 101

1-11. Determine the value of base x if (211)x = (152)8


2x2+x+1=1(8)2+5(8)+2
2x2+x−105=0
x=7
1-13. 9’s complement of the following 8 digit decimal number
a). 12349876 = 87650123
b). 00980100 = 99019899
c). 90009951 = 09990048
d). 00000000 = 99999999
1-14. 10’s complement of the following 6-digit decimal number
a). 123900 = 876100
b). 090657 = 909343
c). 100000 = 900000
d). 000000 = 1000000
1-15. Find the 1’s and 2’s complement of the following 8-digit binary number
a). 10101110
I.1’s C
Disminished Radix Complement = ( rn - 1) - N
1’s C = ( 28 - 1) - 10101110
1’s C = ( 256 - 1) - 10101110
1’s C = ( 255 )₁₀ - 10101110
1’s C = (11111111)₂ - 10101110
1’s C = 01010001
II. 2’s C
Radix C= [( rn - 1) - N] + 1
2’s C = [( 28 - 1) - 10101110] + 1
2’s C = [( 256 - 1 ) - 10101110] + 1
2’s C = [( 255 )₁₀ - 10101110] + 1
2’s C = [(11111111)₂ - 10101110] + 1
2’s C = [01010001] + 1
2’s C = 01010010
b). 10000001
I. 1’s C
Disminished Radix Complement = ( rn - 1) - N
1’s C = ( 28 - 1) - 10000001
1’s C= ( 256 - 1) - 10000001
1’s C= ( 255 )₁₀ - 10000001
1’s C = (11111111)₂ - 10000001
1’s C = 01111110
II. 2’s C
Radix C = [( rn - 1) - N] + 1
2’s C = [( 28 - 1) - 10000001] + 1
2’s C = [( 256 - 1) - 10000001] + 1
2’s C = [( 255 )₁₀ - 10000001] + 1
2’s C = [ (11111111)₂ - 10000001] + 1
2’s C = [ (01111110)₂ ] + 1
2’s C = 01111111
1-16. Perform subtraction with the following unsigned decimal number by taking the 10’s
complement of the subtrahend
a). 5250-1321 =
Radix Complement = [( rn - 1) - N] + 1
10’s C dari N = [( 104 - 1) - 1321] + 1
10’s C dari N = [( 10000 - 1 ) - 1321] + 1
10’s Com C dari N = [( 9999) - 1321] + 1
10’s C dari N = [8678] + 1
10’s C dari N = 8679
5250 + 8679= 13929
10000- 13929 = 3929
b). 1753-8640 =
Radix Complement = [( rn - 1) - N] + 1
10’s C dari N = [( 104 - 1) - 8640] + 1
10’s C dari N = [( 10000 - 1 ) - 8640] + 1
10’s C dari N = [( 9999) - 8640] + 1
10’s C dari N = [1359] + 1
10’s C dari N = 1360
1753 + 1360 = 3113
10’s C dari 3133 = 6886
6886 + 1 =6887
Maka jawaban = -6887
1-17. Perform the subtraction with the following unsigned binary number by taking the 2’s
complement of the subtrahend
a). 11010 - 10000
b). 11010 - 1101
c). 100 - 110000
d). 1010100 - 1010100
Jawaban:
a). 11010 - 10000
X = 11010
Y = 10000
Radix Complement = [( rn - 1) - N] + 1
2’s C dari Y = [( 25 - 1) -10000] + 1
2’s C dari Y = [( 32 - 1) - 10000] + 1
2’s C dari Y = [( 31 )₁₀ - 10000] + 1
2’s C dari Y = [ (11111)₂ - 10000] + 1
2’s C dari Y = [ (01111)₂ ] + 1
2’s C dari Y = (10000)2
11010 + 10000 = 101010
100000 – 101010 =001010
(b) 11010 - 1101
X = 11010
Y = 01101
Radix Complement = [( rn - 1) - N] + 1
2’s C dari Y = [( 25 - 1) - 01101] + 1
2’s C dari Y = [(32 - 1) - 01101] + 1
2’s C dari Y = [(31)₁₀ - 01101] + 1
2’s C dari Y = [ (11111)₂ - 01101] + 1
2’s C dari Y = [ (10010)₂ ] + 1
2’s C dari Y = 10011
10011 + 11010 =101101
100000 – 101101 = 001101
(c) 100 - 110000
X = 000100
Y = 110000
Radix Complement = [( rn - 1) - N] + 1
2’s Complement of Y = [( 27 - 1) -110000] + 1
2’s Complement of Y = [( 128 - 1) - 110000] + 1
2’s Complement of Y = [( 127 )₁₀ - 110000] + 1
2’s Complement of Y = [ (111111)₂ - 110000] + 1
2’s Complement of Y = [ (001111)₂ ] + 1
2’s Complement of Y = 010000
000100 + 010000 = 010100
- (2’s Complement of 010100) = - 101100
(d) 1010100 - 1010100
X = 1010100
Y = 1010100
Radix Complement = [( rn - 1) - N] + 1
2’s Complement of Y = [( 27 - 1) -1010100 ] + 1
2’s Complement of Y = [( 128 - 1) - 1010100 ] + 1
2’s Complement of Y = [( 127 )₁₀ - 1010100 ] + 1
2’s Complement of Y = [ (1111111)₂ - 1010100 ] + 1
2’s Complement of Y = [ (0101011)₂ ] + 1
2’s Complement of Y = 0101100
1010100 + 0101100 = 10000000
10000000 – 10000000 = 00000000
1-18. Perform the arithmetic operation (+42) + (-13) and (-42) - (-13) in binary using signed
2’s complement representation for negative numbers

(+42)10 + (-13)10 = (101010)2 + (-1101)2

= (101010)2 + (110011)2

= (1011101)2

= (11101)2

= (29)10

(-42)10 - (-13)10 = -42 + (-(-13))

= -42 + 13

= (-101010)2 + (1101)2

= (-101010)2 + (1101)2

= (010110)2 + (001101)2

= (100011)2

=(-11101)2

= (-29)10.
1-20. Represent the following decimal number in BCD 13597; 93286; and 99880
a). 13579 ->1 = 0001
3 = 0011
5 = 0101
7 = 0111
9 = 1001
->(13579)10 = 0001 0011 0101 0111 1001(BCD)
b). 93286 -> 9 = 1001
3 = 0011
2 = 0010
8 = 1000
6 = 0110
-> (93286)10 = 1001 0011 0010 1000 0110 (BCD)
c). 99880 -> 9 = 1001
8 = 1000
0 = 0000
-> (99880)10 = 1001 1000 0000(BCD)
1-22. 2 The (r-1)’s complement of base-6 numbers is called the 5’s complement
5’s Complement (123455)6 :
5’s C = ( rn - 1) - N6
5’s C = (66-1) - (123455)6
5’s C = (46656-1) - (123455)6
5’s C = (46655) - (123455)6
( rn - 1) = 46655
(46655) = 46655 : 6 = 7775 sisa 5
7775 : 6 = 1295 sisa 5
1295 : 6 = 215 sisa 5
215 : 6 = 35 sisa 5
35 : 6 = 5 sisa 5
5 : 6 = 0 sisa 5
(46655) = (555555)6
5’s C = (555555)6 - (123455)6
5’s C= (432100)6
5’s complement dari (543210)6.
Disminished Radix Complement = ( rn - 1) - N
5’s Complement = (66 - 1) - (543210)6
5’s Complement = (46656-1) - (543210)6
5’s Complement = (46655)10 - (543210)6
(46655)10 = (...)6
46656 : 6 = 7775 sisa 5
7775 : 6 = 1295 sisa 5
1295 : 6 = 215 sisa 5
215 : 6 = 35 sisa 5
35 : 6 = 5 sisa 5
5 : 6 = 0 sisa 5
(46655)10 = (555555)6
5’s Complement = (555555)6 - (543210)6
5’s Complement = (012345)6
1-23. Represent decimal number 8620 in BCD, Excess-3, 2421, binary number
a). BCD = 1000 0110 0010 0000
b). Excess-3 = 1011 1001 0101 0011
c). 2421 = 1110 1100 0010 0000
d). Binary number = 1100 0101 0011 0000
1-26. List the ten BCD digits with an even-parity in left most position, and repeat with odd-
parity bit
Even parity : 00000 10001 10010 00011 10100 00101 00110 10111 11000 01001
Odd parity : 10000 00001 00010 10011 00100 10101 10110 00111 01000 11001

You might also like