15.6k views
3 votes
Construct a table for a 5-3-2-1 weighted code for decimal digits and write (9731)10​ using this code.

User Takachi
by
8.0k points

1 Answer

3 votes

Final answer:

The 5-3-2-1 weighted code assigns different weights to each digit in a number. To convert decimal digits to this code, we multiply each digit by its corresponding weight and add up the results.

Step-by-step explanation:

A 5-3-2-1 weighted code assigns different weights to each digit in a number. In this code, the leftmost digit has a weight of 5, the next digit has a weight of 3, the next digit has a weight of 2, and the rightmost digit has a weight of 1. To convert decimal digits to this code, we multiply each digit by its corresponding weight and add up the results. For example, (9731)10 would be converted as follows:

DigitWeightProduct95457321326111

Adding up the products, we get 45 + 21 + 6 + 1 = 73. Therefore, (9731)10 would be represented as (73)5231 in the 5-3-2-1 weighted code.

User Jeff Winkworth
by
7.8k points