Question: Write a GUI version of Elevators v . 2 . A VS shell is provided - - pretty much all you have to do is
Write a GUI version of Elevators v A VS shell is provided pretty much all you have to do is copypaste your existing pairs of CPP and H files into the VS project's folder, rebuild the project, and run! This is not v that is yet to come. This is v
To help you move forward, if you didn't complete Elevator V correctly. Please send me a Canvas message, I can provide your the solution files of Elevator V However, once you receive the V solution files, you won't be able to resubmit the Assignment Elevator V to raise up the grade.
There's A Few Changes First
In your Elevator class, add this getter: unsigned int getNumberOfRiders const returning the size of the rider vector. And move const int speed; and const unsigned int CAPACITY; from the private area to public.
In your Floor class, add two similar getters: unsigned int getNumberOfUpRiders const and unsigned int getNumberOfDownRiders
These are needed by the GUI version so it knows how many riders to show in elevators and on floors although in this version, there will be no riders in elevators yet
Creating And Running Your VS Project
Download and extract the main folder of this ZIP file to your desktop or flash drive: ElevatorSimulationzip Download ElevatorSimulationzipLinks to an external site.
Copy your edited per the above Hs and CPPs to the expanded project's folder the one with the ElevatorSimulation.sln file in it Do not add these as source and header files to the project after you start VS Just copy them to the folder.
Then doubleclick the ElevatorSimulation.sln file to open VS and start building your project. Wait until it is finished "parsing" the hundreds of files it needs to parse, and then use the Build menu's Rebuild Solution option. Watch the output window, and when that's done, run your program by clicking the right pointing triangle to the left of "Local Windows Debugger".
If you need to edit your H and CPP files, you can use the VS File Open File... menu option. While your files are in the project folder, they are not part of the project! There are "stub" CPPs that #include your CPPs and prepare them for use in the project. It's easier to do that than to have you make further changes in your files that would render them no longer useful in consolebased compilations.
If you are using VS use this zip file ElevatorSimulationzipDownload ElevatorSimulationzip
If you are using VS you can use the VS version project file. Make sure to choose "Upgrade to vv in the Platform Toolset, and use the latest Windows SDK version.
Personalize Your App
Add a title with your name and student ID Include any other name you wish to give to the app, if you wish to do so
Include your own personal icon.
Personalize your About Box to include your identification as you'd normally write it for a console app.
What To Expect
We're a few weeks away from a full working building. Since the visual version does not start with riders already on elevators, and since it does not show panel lights for floors, all you're going to see is riders populating floors. There's a control for arrival rate at the bottom center of the building diagram you can "play" with that as your app runs.
But do this, for v only insert this inline constructor in the public area of VisualBuilding.h:
VisualBuilding "seed" the elevators with Riders
for int i ; i ; i
elevatorsboardRider;
elevatorsboardRider;
As long as your elevators are configured to start on floor indexes and not all at index you'll see the same results as Elevators v but in visual format! Submit your app for grading, with this inline constructor in it
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
