Object-Oriented Programming · Google · Hard
Coding/Design: Multi-Elevator Controller (Scheduling & Dispatch) Create an elevator-control system that accepts passenger requests and selects the elevator responsible for each one. Input The first line contains E F, where E is the number of elevators and floors are numbered 1..F. The second line contains E integers, pos[i], giving the starting floor of elevator i. The third line contains N, the total number of ride requests. Each of the following N lines contains t from to,…
Checking your access…