consider the state diagram in figure 3 which uses the mealy convention

Question

Consider the state diagram in Figure 3 which uses the Mealy convention and the given state assignment
Write next to each state bubble the corresponding state assignment value then write the transition able. The input is X, the state variables are in the ordered triple Qa Qb Qc, the output is Z, Fort he unused states the next state and output values are unspecified. Use Karnaugh maps to produce minimal excitation and output logic.