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 want to go to from a particular floor according to the following principle: If both elevators at a standstill, the closest to retrieve the person, or the person who stands still fetch and when both are in motion is nothing. 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 freelancere byder i gennemsnit $30 for dette job
Hello, I am expert and dedicated in C++ Development.I am very much interested for your project. I can complete your project quickly and efficiently in time. Details will be discussed in the message
Hello. I am an experienced developer. I am experienced with large application architecture best practices. I can have this done in 1 day. Check pmb for further questions. Kindest regards, Arthur