Q4. Even Detector with Restricted Domain (Don't Cares)
Inputs: A (MSB), B, C representing binary numbers 0-7.
Valid codes: 000-100 (0-4). Don't cares: 101, 110, 111.
Output = 1 if input represents an even number.
a) Formulate the Boolean function.
b) Minimize using a K-map with don't cares.
c) Show how the don't care conditions reduce circuit cost.