In Part 1 we learned what state machines are and we also hard-coded a simple state machine using a switch statement. In Part 2 we made a simple state machine interface and a generic state machine ...