Question: For simplicity, let's assume that no requests occur simultaneously across floors. The elevator does not accept requests while in motion. This means you don't need
For simplicity, let's assume that no requests occur simultaneously across floors. The elevator does not accept requests while in motion. This means you don't need to store requests in a queue. There is no down button on the first floor, and no up button on the third floor.
Based on the conditions provided in the question, the user's perspective is from outside the elevator. The elevator only moves to the caller's location and displays the floor number and direction of movement. There is no need to proceed further with moving to any specific floor.
When the elevator moves from the st floor to the rd floor, it will stop at the nd floor before reaching the rd floor the segment LED will display the number
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
