Question 2 (CLO 1):
Design an odd/even counter that counts from 0 to 7 using JK flip flops. It has a 1-bit enable input en, and it does
not have an output. Its function is as follows: It always starts at 0, then if en == 0, it starts counting even
numbers, i.e. 0$\to$2$\to$4$\to$6$\to$ 0 and so on. However, at any point if en == 1, it starts counting odd numbers
(from the next odd number in line). For example, if the counter is presently at 2 and en changes to 1, then the
sequence will be 0$\to$2$\to$3$\to$5$\to$7$\to$1$\to$3, and so on, unless en switches back to 0.