Skip to main content
Code Review

Return to Question

Commonmark migration
Source Link

###Arguments:

Arguments:

###Arguments:

Arguments:

deleted 1 character in body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

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.

  • speedspeed - the speed of the elevator
  • doorsdoors - doors opening and closing speed
  • floor_heightfloor_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 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 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.

edited tags
Link
Vogel612
  • 25.5k
  • 7
  • 59
  • 141
Loading
added 2 characters in body
Source Link
Ludisposed
  • 11.8k
  • 2
  • 41
  • 91
Loading
Source Link
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /