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)
14 freelancers are bidding on average $144 for this job
Hi, I can make for you this elevator simulation. I am experienced software developer, with great knowledge of Linux and Embedded systems. Can we have a chat?