Write in each answer sheet your name, signature, id-number, course name, and page nr/total nr of pages.
[12 p] Combinatorial circuit is used to control a 7-segment display (see Figure below). The circuit has four inputs (X1, X2, X3, X4) and seven outputs (Z1, ..., Z7). The decimal number given as input is binary coded decimal number (BCD), i.e., numbers 0, 1, 2,..., 9 are coded into bits 0000, 0001, 0010, ..., 1001. Based on the input, the circuit determines which display segments will be activated (lit). When the corresponding output value 1, the display segment corresponding to it is lit. For example, if the input value is number 5 (X1 X2 X3 X4 = 0101), then display segments Z1, Z2, Z4, Z6, and Z7 are lit (value 1) and all other segments are dark (value 0).