Develop an application that, using pthreads ,ncurse and dynamic data structures, allows the simulation of the behavior of an elevator.
The elevator will be installed in a "n"-floor building. In the building, there will be a determined number of people, randomly distributed on the different floors. Each person will have a "work" time on the floor, after which they will go to the elevator to change floors. Once you arrive at the new floor, you will start "working" again.
On each floor, the elevator control has two buttons to call it up or down. When the elevator arrives at a floor, it will pick up the people who are going in the direction in which the elevator is moving.
The elevator control system should give priority to the users who are on its way.
The elevator has a maximum capacity of "n" people.
The user must able to type before the simulation the number of floors, the number of people in the building and the maximum capacity of the elevator, and then the simulation should work with this.
(Tip: use constants defined in the header with # define)
5 freelancers están ofertando el promedio de $29 para este trabajo
Hi I am software engineer and have done many java and c++ projects. You can share more details with me so that we can negotiate the price accordingly. Thank you