Description of this paper

elevator c++




Write class Elevator. An elevator will know which floor they are on and which floor it is on the way to and which direction it is (Up, Down or Stagnant). The lift will "work" with another elevator and to determine who should get a person that want to go to from a particular floor according to the following principle;If both elevators are standstill, the closest elevator gets the person, or if one of the elevators is in move and the other is standstill the elevator that is standstill should go and get the person else if both elevators are in move nothing should happen. The lift should also have a function which increments the state ie. increases the floor if the direction is up and decreases when it is down. The actual main program will show the condition of the elevator and be able to simulate that people press the buttons inside and outside the elevators as well as stepping up "time." Create a project and split into different files according to the pattern of large programs.;Examples of visualization with indication of the condition;7;6;5 D;4;3 S;2;1;D(down);S(still);U(up)


Paper#73216 | Written in 18-Jul-2015

Price : $27