###Arguments:
Arguments:
###Arguments:
Arguments:
elevator Elevator simulator
I have an elevator simulator. After launching the script it always waits for the user input. The user can press get number, where number is a floor where the passenger is located.
Note that one of the command line arguments is floorfloor
(the maximum number of floors in building). When the passenger is in the elevator he can push one or more buttons and the elevator should go to the nearest floor and so on.
I know that OOP usage is poor here and I need advice how I can improve it.
- speed
speed
- the speed of the elevator - doors
doors
- doors opening and closing speed - floor_height
floor_height
- height of the floor.
elevator simulator
I have an elevator simulator. After launching the script it always waits for the user input. The user can press get number, where number is a floor where the passenger is located. Note that one of the command line arguments is floor (the maximum number of floors in building). When the passenger is in the elevator he can push one or more buttons and the elevator should go to the nearest floor and so on. I know that OOP usage is poor here and I need advice how I can improve it.
- speed - the speed of the elevator
- doors - doors opening and closing speed
- floor_height - height of the floor.
Elevator simulator
I have an elevator simulator. After launching the script it always waits for the user input. The user can press get number, where number is a floor where the passenger is located.
Note that one of the command line arguments is floor
(the maximum number of floors in building). When the passenger is in the elevator he can push one or more buttons and the elevator should go to the nearest floor and so on.
I know that OOP usage is poor here and I need advice how I can improve it.
speed
- the speed of the elevatordoors
- doors opening and closing speedfloor_height
- height of the floor
- 29.5k
- 16
- 45
- 201
What else can be done in elevator simulator
I have an elevator simulator. After launching the script isit always waitingwaits for the user input. UserThe user can press 'get number'get number, where numbernumber is a floor where the passenger is located. Note, that one of the command line argumentarguments is floor (maxthe maximum number of floors in building). When the passenger is in the elevator he can push one or more buttons and the elevator should go to the nearest floor and so on. I know that OOP usage is too badpoor here and I need advicesadvice how I can improve it.
P.S speed - the speed of the elevator, doors - doors opening and closing speed, floor_height - height of the floor.###Arguments:
- speed - the speed of the elevator
- doors - doors opening and closing speed
- floor_height - height of the floor.
What else can be done in elevator simulator
I have an elevator simulator. After launching script is always waiting for the user input. User can press 'get number' where number is a floor where the passenger is located. Note, that one of the command line argument is floor (max number of floors in building). When the passenger is in the elevator he can push one or more buttons and elevator should go to the nearest floor and so on. I know that OOP is too bad here and I need advices how I can improve it.
P.S speed - the speed of the elevator, doors - doors opening and closing speed, floor_height - height of the floor.
elevator simulator
I have an elevator simulator. After launching the script it always waits for the user input. The user can press get number, where number is a floor where the passenger is located. Note that one of the command line arguments is floor (the maximum number of floors in building). When the passenger is in the elevator he can push one or more buttons and the elevator should go to the nearest floor and so on. I know that OOP usage is poor here and I need advice how I can improve it.
###Arguments:
- speed - the speed of the elevator
- doors - doors opening and closing speed
- floor_height - height of the floor.