Binary-Coded Decimal (BCD) is a system of representing decimal numbers where each digit (0–9) is encoded using four binary bits.…