Answer
Constructing the state table for Moore machine with the state diagram
Work Step by Step
Constructing a state Diagram
--Each input string to a Moore machine M produces an output string.
- In particular, the output corresponding to the input string $a_1a_2....a_k$ is the string $g(s_o)g(s_1)...g(s_k), where $
$s_i=f(s_{i-1},a_i) $ for i=1,2,...k.