Python - simple elevator simulator

Lukket

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.

Ferdigheter: Python

Se mer: 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

Prosjekt-ID: #12184566

14 frilansere byr i snitt €108 for denne jobben

fejs

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

€45 EUR på 1 dag
(108 omtaler)
5.9
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 Mer

€149 EUR på 2 dager
(9 omtaler)
4.4
€80 EUR på 2 dager
(21 omtaler)
4.5
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 på 1 dag
(26 omtaler)
4.3
€61 EUR på 1 dag
(3 omtaler)
3.8
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 Mer

€100 EUR på 2 dager
(11 omtaler)
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 Mer

€135 EUR på 3 dager
(1 omtale)
2.3
alliedbandna

Hi We have worked on Simpy process to simulate an event based using a PYTHON generator function, what i understood you need to simple elevator for the functions as you have specified in your post. Please look at Mer

€722 EUR på 3 dager
(2 omtaler)
0.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 :) Hola... Yo he realizado muchos proyectos de simulación. Y ese proyecto Mer

€30 EUR på 1 dag
(2 omtaler)
0.8
aronlebani

I have much experience in Python programming through several projects I have completed in the past. These include a simple python game using Tkinter, a command line utility for automatically organising photos into fold Mer

€200 EUR på 3 dager
(0 omtaler)
0.0
samalmarbek

Hi, I can create Python application for this task. With classes, etc. Please contact me if interested. Thank you.

€155 EUR på 1 dag
(0 omtaler)
0.0
OlgaNieminen27

hello,how are you. i read your bid carefully. i am c/c++, python expert and have full experience for 10 years. python language is my top skill. i can provide most quality and high speed. if you want to success, ple Mer

€100 EUR på 3 dager
(0 omtaler)
0.0
xarpa

We are highly experienced Post Graduate Engineers, Doctors, IT, ITES, Software, Infrastructure Professionals, Web Designers and IT Architects. We can redo, improve, and publish any engineering, scientific MATLAB, S Mer

€100 EUR på 3 dager
(0 omtaler)
0.0
€277 EUR på 5 dager
(0 omtaler)
0.0
shaheen23

Hello, Greetings from Passionate Futurist Solution Pvt. Ltd As per your project description you want to Python - simple elevator simulator . The idea sounds good, we will provide you fully Creative contents wi Mer

€34 EUR på 3 dager
(0 omtaler)
0.0
mayankjha1992

Am a python guy. Am hands on in the same. Also I love doing it. https://in.linkedin.com/in/mayank-jha-a895a533

€155 EUR på 3 dager
(0 omtaler)
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.

€55 EUR på 3 dager
(0 omtaler)
0.0