78.0k views
0 votes
Convert the following decimal numbers to BCD and add them. Convert the result back to decimal to check your answer

(a) 8
(b) 43
(c) 12 + 16
(d) 47 +38
(e) 36 +22
(f) 80 + 23 + 72
(g) 12 +89
(h) 99

User XWang
by
4.9k points

1 Answer

1 vote

Answer and Step-by-step explanation:

Solution:

(a) 8 + 3

Convert into BCD:

8 = 1000

3 = 0011

Add them:

8 + 3 = 11

1000 + 0011 = 1011

Answer is correct.

(b) 43 + 72

Convert into BCD:

43 = 0100 0011

72 = 0111 0010

Add them:

43 + 72 = 115

0100 0011 + 0111 0010 = 0001 0001 0101

(c) 12 + 16

Convert into BCD:

12 = 0001 0010

16 =0001 0110

Add them:

12 + 16 = 28

0001 0010 + 0001 0110 = 0010 1000

00101000 = 00101000

Hence Answer is correct.

(d) 47 + 38

Convert into BCD:

47 = 0100 0111

38 =0011 1000

Add them:

47 + 38 = 85

0100 0111 + 0011 1000= 1000 0101

(e) 36 + 22

Convert into BCD:

36=0011 0110

22=0010 0010

Add them:

36 + 22 = 85

0011 0110 + 0010 0010 = 1000 0101

(f) 80 + 23 + 72

Convert into BCD:

80 =1000 0000

23 = 0010 0011

72 = 0111 0010

Add them:

80 + 23 + 72 =175

1000 0000 +0010 0011+ 0111 0010 = 0001 0111 0101

(g) 12 + 89

Convert them into BCD:

12 = 0001 0010

89 = 1000 1001

Add them:

12 + 89 = 101

0001 0010 + 1000 1001 = 0001 0000 0001

(h) 99

Convert into BCD:

99 = 1001 1001

User Sauda
by
4.8k points