akosiraff

Elevator JAVA

Jul 24th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/elevator-java/
  3. An elevator company has hired you to write a software program for their elevators. Your program should output to the screen the floor that the elevator is on and whether the doors are open or closed. The elevator should start at the first floor and return there if not in use for several minutes; the doors should be closed.
  4. If a person is outside the elevator on any floor the elevator should prompt for the desired direction, go to that floor, then open the doors. The elevator should then prompt for the floor selection once the occupant is inside before closing the doors. Once a floor selection has been made each floor should be outputted to the screen until the desired floor is reached.
  5. An emergency stop prompt should be provided which displays “emergency stop” on the screen. An override prompt should remove the emergency stop condition.
  6. The program should provide for multiple floor selections from occupants inside the elevator.
  7. The program should provide for multiple selections from users on different floors.
  8. The program should provide prompts for opening and closing the doors but only if the elevator is on a floor.
  9. The building has 5 floors in it.
  10. Download: http://solutionzip.com/downloads/elevator-java/
Advertisement
Add Comment
Please, Sign In to add comment