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.2. A VS shell is provided -- pretty much all you have to do is copy/paste your existing 5 pairs of CPP and H files into the VS project's folder, rebuild the project, and run! This is not v.3-- that is yet to come. This is v.2.1.
** To help you move forward, if you didn't complete Elevator V2 correctly. Please send me a Canvas message, I can provide your the solution files of Elevator V2. However, once you receive the V2 solution files, you won't be able to resubmit the Assignment 9- Elevator V2 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 VS2017/2019/2022 Project
Download and extract the main folder of this ZIP file to your desktop or flash drive: ElevatorSimulation_2017.zip Download ElevatorSimulation_2017.zipLinks to an external site.
Copy your edited (per the above) H's and CPP's 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 double-click the ElevatorSimulation.sln file to open VS2017 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" CPP's that #include your CPP's 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 console-based compilations.
If you are using VS 2015, use this zip file ElevatorSimulation_2015.zipDownload ElevatorSimulation_2015.zip
If you are using VS 2022/2019, you can use the VS2017 version project file. Make sure to choose "Upgrade to v143/v142" 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.2.1 only -- insert this inline constructor in the public area of VisualBuilding.h:
VisualBuilding()// "seed" the elevators with 6 Riders
{
for (int i =0; i <3; i++)
{
elevators[1].board(Rider(4,1));
elevators[2].board(Rider(0,2));
}
}
As long as your elevators are configured to start on floor indexes 0,1, and 2(not all at index 0), you'll see the same results as Elevators v.2, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!