終了

Python - simple elevator simulator -- 2

Task

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". You don't have to use this, you can take an alternative approach such as random start location for the elevator.

Project Description / Specification

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.

All classes’ methods require a docstring for a general description of the method.

Don’t use any global variables.

Notes and Hints

In your main function, at the beginning ask the user for the number of floors and the number of customers which can be used to create an instance of Building. Then we only need to call a run method and an output (such as __str__ or __repr__) method repeatedly in a while loop.

Randomly select the floors (to and from) for each customer. Use the randint function from the random module. To estimate the efficiency of strategy, count the number of floors visited for your strategy. Make a demo to create usable output from your simulation.

スキル: パイソン

さらに表示: simple python keylogger logfile, simple python based web crawler, simple python code blackjack, simple python script, write simple python script, create simple python script, simple python game, simple python form mail, simple python scripts, simple python web crawler, simple python games, simple python crawler, simple python workflow library, simple python crawler windows, simple python projects

採用者について:
( 0件のレビュー ) Mexico

プロジェクトID: #12184575

19人のフリーランサーが、このジョブに平均€89で入札しています

fejs

Hi Sir/Madam, I'm expert in Python programming and I can help You with this program. Best regards, Fejs.

€50 EUR 0日以内
(130件のレビュー)
6.0
iyersume

Hi, I am proficient in Python. I would like an opportunity to work with you on this project. Please feel free to ping me on chat. My bid is an estimate and may change based on scope of work. Thanks!

€70 EUR 3日以内
(35件のレビュー)
5.3
€40 EUR 3日以内
(25件のレビュー)
5.2
dmitryIk

Well documented python code, by the time of two days

€30 EUR 2日以内
(20件のレビュー)
5.1
€70 EUR 2日以内
(39件のレビュー)
5.0
wangbeizou

Hello. Employer. I have read and understood the project. I'm an Expert in Data Structures and Algorithms. And I know well ; Java ,C/C++, Python ,PHP. I'm interested this project. So, firstly I want to discuss もっと

€100 EUR 2日以内
(28件のレビュー)
4.6
edecena75

Hi ... I have done many simulation projects. And this particular project I have it ready ... I am certified in Python by Freelancer. Hire me :) Hi... Yo he realizado muchos proyectos de simulación. Y ese proyecto en もっと

€30 EUR 1日以内
(19件のレビュー)
4.6
cracken

Hi, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements もっと

€249 EUR 7日以内
(19件のレビュー)
4.8
€77 EUR 3日以内
(21件のレビュー)
4.2
it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

€34 EUR 1日以内
(31件のレビュー)
4.5
urmate

HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif

€155 EUR 3日以内
(14件のレビュー)
3.7
ShiehShiehPython

I've written a elevator simulator with GUI(QT5) for my course project, which can handle multiple elevator and multiple user. Also, I'm working in Discovering Investment(Shanghai), a diversified asset management firm もっと

€100 EUR 5日以内
(レビュー1件)
2.4
NuraIndiaInfo

Hi, I Have 6 Years Experience in python development, I have very passionate team who is working on [login to view URL] mission is to provide the best quality. We have completed several projects and got the satisfactory respon もっと

€50 EUR 3日以内
(7件のレビュー)
2.0
mayankjha1992

I have tons of professional Python programming experience. Here are the details, [login to view URL]

€155 EUR 2日以内
(レビュー1件)
1.2
yohanesyuen

Sounds like a school project. :P It's alright, happy to assist! :) Anyway, I have ever done a similar project in C++ b4 and I have been messing with python for a while in creating trading bots. So do ping me. :) Loo もっと

€30 EUR 1日以内
(0件のレビュー)
0.0
klivoyage

Hello! I have a big experience using python and can easily make your task. But I have a few questions. Write to me,if you are agree,and and we will discuss them. I have bid on your previous project.

€55 EUR 3日以内
(0件のレビュー)
0.0
Irfan285

Hello, My name is Irfan, a certified Python expert, I have 5+ years of experience in python language , , i have completed 100+ projects using python. i would love to IMPLEMENT SIMPLE ELEVATOR IN PYTHON I assure もっと

€100 EUR 5日以内
(0件のレビュー)
0.0
€55 EUR 2日以内
(0件のレビュー)
1.4
Rplanx

Hello employer, I would like to bring to your notice that I am proficient working with Python in Django framework. I have coded few bots for web scraping and also for automating, including applications like buffe もっと

€250 EUR 20日以内
(0件のレビュー)
0.7