The quality of the code will matter as well as the


Assignment

Your task is to implement the simple elevator in Python using classes. The default strategy is the simple "start at the bottom, go to the top, then go to the bottom".

Can you write a better strategy, one that is more efficient? Create three classes: Building, Elevator, and Customer. Equip the building with an elevator.

Ask user to customize the number of floors and the number of customers. Program should have error checking to make sure the user inputs are valid.

For example, if a user gives non-integer inputs, notify the user that the inputs are incorrect and prompt again.

Each customer starts from a random floor, and has a random destination floor.

Each customer will use the elevator only once i.e., when a customer moves out of the elevator, he/she will never use it again.

When all customers have reached their destination floor, the simulation is finished.

Part of the grade on this assignment will be the appropriateness of your classes, methods, and any functions you use.

The quality of the code will matter as well as the performance. All class methods require a docstring for a general description of the method.

Implement both your own strategy and the default strategy and compare. Your strategy does not have to be better but the comparison is required.

Don't use any global variables.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: The quality of the code will matter as well as the
Reference No:- TGS02944873

Expected delivery within 24 Hours