The document provides instructions for a group assignment to program an elevator simulator. Students must:
1) Simulate an elevator that can move up or down between the ground floor (G) and the 6th floor, based on user input.
2) The elevator can hold a maximum of 2 passengers at a time.
3) It should show the elevator moving to each destination entered by passengers, prioritizing the "shortest job first".
2. The elevator will move to the destination base on ‘the shortest job first’ otherwise it depends on the first passenger destination. The program should able to recognize if the level entered is the current position and only execute the correct destination.Live example of the program running: <br />http://www.screencast.com/t/hWlVQOPyg<br />Or at least:<br />http://www.screencast.com/t/jgDXjmqr44d<br />Output Example (User input is in bold):<br />Destination level: 2<br />Destination level: 1<br />You are moving up<br />Level G<br />Level 1<br />You have arrived. See you again<br />Level 2<br />You have arrived. See you again<br />Destination level: 0<br />Destination level: 1<br />You are moving down<br />Level 2<br />Level 1<br />You have arrived. See you again<br />Level 0<br />You have arrived. See you again<br />Destination level:_<br />