Elevator simulation problem.
You need to write a python program that simulates an elevator in a building.
And here are the specifications.
Please go through all these specifications carefully and I suggest you to use object oriented program
to answer the questions and the first question is you need to calculate the time when the last person
to enter the elevator arrives at the destination floor.
Next question you need to calculate the number of trips made by the elevator.
Next the table below here gives us the details such as the passenger number.
The time of arrival and the destination floor of the passenger so when your python program you can define
two classes one is the passenger class in the passenger class.
You can define the attribute such as the passenger number and the arrival time of the passenger and
the destination.
Float and you also need to define another class for the elevator and this can be defined as a child
of the passenger.
Class in order to inherit the required attributes I'm not going to give the solution for this program.
Please try this on your own.
Good luck.