Sequential Logic Problem 04. For the following circuits, create a state transition diagram and truth table for each circuit. You should include the present state (use the encoding of your choice), the next state, the input, and any outputs that exist. Pay careful attention to whether the device is a Moore machine or a Mealy machine. Figure 3: Sequential Logic Circuit 1Figure 5: Sequential Logic Circuit 3