In: Computer Science
Convert the following values into binary numbers for each word and place the binary values in
the two-dimensional array in their proper order of words.
Value |
Binary Number Equivalent |
|
Word 0 |
462,91210 |
|
Word 1 |
1142008 |
|
Word 2 |
5420h |
|
Word 3 |
20,992d |
|
Word 4 |
1104208 |
|
Word 5 |
6102008 |
|
Word 6 |
9F88h |
|
Word 7 |
20,49610 |
|
Word 8 |
502416 |
|
Word 9 |
1101018 |
|
Word 10 |
71082h |
the following two dimensional array after converting all the given words in their binary form.
the array initialisation can be as follows.
(proper order is maintained)
arr[ ][ ]= { 1110001000001000000,
1001100010000000,
101010000100000,
101001000000000,
1001000100010000,
110001000010000000,
1001111110001000,
101000000010000,
101000000100100,
1001000001000001,
1110001000010000010
};
Value |
Binary Number Equivalent |
|
Word 0 |
462,91210 |
1110001000001000000 |
Word 1 |
1142008 |
1001100010000000 |
Word 2 |
5420h |
101010000100000 |
Word 3 |
20,992d |
101001000000000 |
Word 4 |
1104208 |
1001000100010000 |
Word 5 |
6102008 |
110001000010000000 |
Word 6 |
9F88h |
1001111110001000 |
Word 7 |
20,49610 |
101000000010000 |
Word 8 |
502416 |
101000000100100 |
Word 9 |
1101018 |
1001000001000001 |
Word 10 |
71082h |
word10 71802h 11110001000010000010
(for word 10 the table is missing one row so typing below)
If you have any doubt you can comment.
like if you got your answer.