2,419 views
0 votes
0 votes
Addition of all gray code to convert decimal(0-9) into gray code is

a)129 b) 108 c) 69 d) 53

2 Answers

0 votes
0 votes
D is the choice as the Grey code sum to 0 to 9
0+1+3+2+6+7+5+4+12+13
First we can write the binary digit of 0 to 9 and then convert it into grey code.
0 votes
0 votes

Let us have a look at Gray code in Decimal representation.

Decimal

Binary

Gray

Decimal (Gray to Decimal)

0

0000

0000

0

1

0001

0001

1

2

0010

0011

3

3

0011

0010

2

4

0100

0110

6

5

0101

0111

7

6

0110

0101

5

7

0111

0100

4

8

1000

1100

12

9

1001

1101

13

 

On adding the Decimal number of Gray code,

it gives , 0+1+3+2+6+7+5+4+12+13 ,

Sum as 53.

Related questions

0 votes
0 votes
0 answers
1
krish71 asked Aug 1, 2022
470 views
Hi,Can someone please tell if gray code representation can also work for negative binary number?I’ve seen examples of gray code for only positive binary number not sure...
0 votes
0 votes
2 answers
3
air1ankit asked Aug 24, 2017
1,643 views
x1= 10101010x2=11111111x1x2 >EX-OR >GRAY CODE ->(Output in decimal)????
0 votes
0 votes
1 answer
4
sh!va asked Mar 3, 2017
475 views
Gray code for number 7 isa) 1100b) 1001c)0110d) 0100