Elevator

https://natezxc.github.io/Elevator/

C:

wordsstuff

B:

  1. The normal sequence when using an elevator is to press the button of the direction you would like to go, whether up or down. This will call the elevator to your current floor.
  2. The elevator doors will open when it arrives. The user will then step on. If the user is on the ground floor, he must use the apartment key and press the button of their desired floor. If not on the ground floor, the user can simply press the button of the desired floor.
  3. The elevator doors will then close and the elevator will move toward the floor selected. If more than one floor was pressed, the elevator will stop at the floor closest to the current floor (given that the floor selected is in the same direction as selected when calling the elevator) until it reaches the final selected floor.
  4. When the elevator arrives at the selected floor, the doors will open and the user step off the elevator.