Question: 1. Determine the code words for each of the 10 decimal digits in the weighted code (6 31 1). The code should be self-complementing.
2. Design a 4-bit code to represent each of the six digits of the base six number system. Make the code self-complementing by selecting appropriate weights.