Question: (c++) make your own to simulate how an elevator handles and keeps track of requests made by users. Here is how an elevator works: A
(c++) make your own to simulate how an elevator handles and keeps track of requests made by users. Here is how an elevator works: A user pushes either the up or down button to request the elevator. Once the elevator arrives, the user gets in and specifies his/her destination floor.Meanwhile, other users outside or inside the elevator make requests as well. The elevator story the requests and handles them efficiently. A simple algorithm for handling requests works like this: all requests users make are stored. The elevator prioritizes the requests that are on the way where its going but also based on a first come first served principle. It is up to you how you design the algorithm. As a recommendation, observe how an elevator works (e.g. the elevator we have at FH) and simulate how it works. (c++)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
