Question: Submit this final version of the Elevator app! Completing the Elevator Simulation Project. Follow the requirements below and complete item 4 ~ 9 . Progress
Submit this final version of the Elevator app!
Completing the Elevator Simulation Project. Follow the requirements below and complete item ~
Progress And Status
Going back to our elevator logic in Module ~ let's look at the progress so far and where we have yet to go The first five items are done. In this assignment we're adding the ability for elevators to close their doors and start moving.
Open their door if there is a rider to disembark. DONE in v in Module
Disembark a rider if the door is open and there's a rider who wants to get off. DONE in v in Module
Board a rider if the door is open and a rider wants to board. DONE in v in Module
Hold the door open for a few seconds in case more riders show up DONE in v in Module
After waiting a few seconds, and there are riders on the elevator, close the door and get moving. DONE in v in Module
If the elevator is already between floors, keep moving stop at a floor if its panel button is pressed.
If an elevator is idle and the updown button is pressed, open the door for the rider to board.
If there's a floor with a lit updown button, close the door and start moving there.
Close the door and go idle.
Testing
Here is the test driver in the console project for your reference, ElevatorVcppDownload ElevatorVcpp
Requirements
We've all been working with a building design with floors and identical elevators. Now it's time for you to customize your building!
In Building.cpp customize or more floors, at or above or below ground level. We're not building a doll house, so make sure your elevations in inches are reasonable for human beings.
Customize or more elevators, so they are not all alike in terms of capacity and speed. Use your imagination consider small, fast express elevators and slow, large freight elevators in the mix.
Remove "seeds". There's no more need for riders starting on elevators at time zero. Remove the VisualBuilding's constructor and the console app's code block that puts riders on elevators before the simulation begins.
Console Elevator
If you are running the console version, set the rider arrival rate to a value that "works well" with your building. That is the rate should not be so small that elevators spend a lot of time idle, and the rate should not be so large that riders accumulate on floors in large crowds. Also, start arrivals at time zero and end after seconds minutes like this in the main CPP:
double myArrivalRate ; you choose!
Building::actioni myArrivalRate : ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
