Hey guys! im really struggling to write a simple coding for an elevator simulator. The information here is:
1. The building has seven floors serviced by a single secure lift which can only accommodate one person
2.Each floor shows a display of which direction the lift is moving (Up, Down or Waiting) and where the lift is (at a particular floor, or between one floor and the next).
3. The lift has destination buttons inside for each floor. An authorized user will press the button for the destination floor and a display will indicate the direction the lift is moving (Up, Down) and where the lift is (at a particular floor, or between one floor and the next).
4. When there are no requests the lift will wait with the doors closed at the last floor it reached.
and if possible!
5.The lift is made secure by a keypad located on each floor. The user is required to enter their name at the keypad and this is checked to see if they are authorized to use the lift.