Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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? 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. 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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93137937

Have any Question?


Related Questions in Computer Engineering

Question suppose a data packet datagram is sent in the

Question : Suppose a data packet (datagram) is sent in the Internet from a source station (computer) to a destination station. What type of addess (physical, MAC, port address or some other) is used to forward the datagr ...

I really do not know where to begin with this

I really do not know where to begin with this asignement. Activity Description A key aspect to planning is having an understanding of some of the layers involved in networks. This assignment examines a few of these layer ...

Planks plants had net income of 4000 on sales of 70000 last

Plank's Plants had net income of $4,000 on sales of $70,000 last year. The firm paid a dividend of $1,480. Total assets were $200,000, of which $80,000 was financed by debt. a. What is the firm's sustainable growth rate? ...

Question in sql database hospital systems suffer from 4-10

Question : In SQL Database, Hospital Systems suffer from 4-10% duplicate patients in the EHR. Some is that patients do not know the relationships of medical facilities in the same organization. What can you do to identif ...

You are required but not limited to turn in the following

You are required, but not limited, to turn in the following source file: Requirements to get full credits in Documentation The assignment number, your name, StudentID, Lecture number(time), and a class description need t ...

System analysis and design1 explain the difference between

System Analysis and Design 1) Explain the difference between too much feedback and too little feedback and provide a scenario for each one (two scenarios are needed - one for a lot of feedback and one for too much) and w ...

Sql transactions exercisesfor the universal relation rwxyz

SQL Transactions Exercises For the universal relation R(w,x,y,z), consider the decomposition D consisting of R1(w,y,z) and R2(x,y), and the set F of functional dependencies { y->xz ; yz->w ; x->w }. Recall that the proje ...

Question this is a scholarly post and your responses should

Question: This is a scholarly post and your responses should have more depth than "I agree" and should demonstrate critical reflection of the problem in order to promote vigorous discussion of the topic within the forum. ...

The correlation between the height of fathers in the

The correlation between the height of fathers in the heights of their sons is r=0.52. Which kind of the following would not change r? a) measuring their height in centimeters rather than inches. b) removing two outliers ...

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As