Convert a D flip-flop to a JK flip-flop by including input gates to the D flip-flop. The gates needed for the input of the D flip-flop can be determined by means of sequential-circuit design procedures. The sequential circuit to be considered will have one D flip-flop and two inputs, J and K.