An elevator in a three-story building services floors 1,
Chapter 9, Problem 20(choose chapter or problem)
An elevator in a three-story building services floors 1, 2, and 3. Input consists of a signal to the elevator of an up-or-down request (U or D) together with the floor from which the signal originates. The elevator responds to an input signal by moving to the correct floor. For example, when the elevator is on floor 1 and receives a D-3 signal, it moves to floor 3. Draw a state graph for a finite-state machine that describes the elevator behavior.
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer