A BCD (Binary Coded Decimal) code represents each decimal digit with a 4-bit binary code. What is the BCD code for the decimal number 97?
Explanation
Binary Coded Decimal (BCD), specifically the 8421 BCD code, works by converting each individual decimal digit of a number directly into its independent 4-bit unsigned binary equivalent.
To convert the decimal number 9710 to BCD, we separate the digits into the tens place and the ones place:
Decimal Number:97
Now, convert each digit to its corresponding 4-bit binary equivalent vector using the standard weights (8,4,2,1):
For the digit 9:
9=8+1⟶(1×8)+(0×4)+(0×2)+(1×1)
Binary pattern=10012
For the digit 7:
7=4+2+1⟶(0×8)+(1×4)+(1×2)+(1×1)
Binary pattern=01112
Final Composition
Group the two independent 4-bit segments together in order:
BCD(97)=[1001][0111]
This matches the configuration shown in option (c).