Construct Moore machine for Mealy machine

RGPV 2020
Construct Moore machine for the following Mealy machine.

Sol.
Transition table for above Mealy machine.

Present State

Next State

Input = 0

Input = 1

State

Output

State

Output

q0

q0

0

q1

1

q1

q2

2

q0

0

q2

q1

1

q2

2

Transition table for Moore machine from above Mealy machine transition table.

Present State

Next State

Output

Input = 0

Input = 1

q0

q0

q1

0

q1

q2

q0

1

q2

q1

q2

2

Transition diagram for Moore machine fram above Moore machine transition table.