Question: can this be done with only using and cin and cout yes pls help 6. Create a class levator that will simulate the operation of

can this be done with only using
and cin and cout
can this be done with only using and cin and cout yes
pls help 6. Create a class levator that will simulate the operation
of an elevator. Here are the details: Assume that for a given
yes

pls help 6. Create a class levator that will simulate the operation of an elevator. Here are the details: Assume that for a given elevator, it must keep track of its current floor position Assume that an elevator will initially start on the first floor . An elevator should be able to service a request to move to a specified floor. In servicing a request, the elevator should display a summary of its floor movement. An elevator should also be able to return its current floor position to other program modules Using your Elevator class, write a C++ program that will use the levator class to simulate the operation of three elevators traveling between the land 10 floors of a building from the perspective of a person waiting for an elevator on the first floor Use an bray to model the three elevators. The program should repeatedly do the following tasks Display the current positions of each of the three elevators Ask the user to choose one of the elevators to usele, ke pashing the "p" button for one of the elevators - we assume here that each elevator has its own up" button) If the chosen elevator is not on the first floor, the driver should give the elevator a quest to come to the first floor Ask the user which floor she wantse, like pushing the floor number button inside the elevator Send the choses elevator a request to move to the selected floor which elevator de 12 h Which elevator do you want , 2-, 3-, ether to 6. Create a class Elevator that will simulate the operation of an elevator. Here are the details: Assume that for a given elevator, it must keep track of its current floor position. Assume that an elevator will initially start on the first floor. An elevator should be able to service a request to move to a specified floor. In servicing a request, the elevator should display a summary of its floor movement. An elevator should also be able to return its current floor position to other program modules. Using your Elevator class, write a C++ program that will use the Elevator class to simulate the operation of three elevators traveling between the 1" and 10 floors of a building, from the perspective of a person waiting for an elevator on the first floor. Use an array to model the three elevators. The program should repeatedly do the following tasks: Display the current positions of each of the three elevators. Ask the user to choose one of the elevators to use (i.e., like pushing the "up" button for one of the elevators - we assume here that each elevator has its own up" button). . If the chosen elevator is not on the first floor, the driver should give the elevator a request to come to the first floor. Ask the user which floor she wants (i.e., like pushing the floor number" button inside the elevator). Send the chosen elevator a request to move to the selected floor. Here is output from a sample run of the program (user input in bold): Elevator Status A B C 1 1 1 Which elevator do you want (1=A, 2=B, 3-C, or other to exit)? 1 Which floor do you want? 3 Starting at floor 1 Going up - now at floor 2 Going up - now at floor 3 Stopping at floor 3 Elevator Status 3 Which elevator do you want. (1=A, 2=B Elevator Status Which elevator do you want (1=A, 2-B, 3-C, or other to exit)? 3 Which floor do you want? 5 Starting at floor 1 Going up - now at floor 2 Going up - now at floor 3 Going up - now at floor 4 Going up - now at floor 5 Stopping at floor 5 Elevator Status AB 31 Which elevator do you want (1-A, 2=B, 3-C, or other to exit)? 2 Which floor do you want? 4 Starting at floor 1 Going up - now at floor 2 Going up - now at floor 3 Going up - now at floor 4 Stopping at floor 4 Elevator Status A B C 3 4 5 Which elevator do you want (1-A, 2-3, 3-C, or other to exit)? 3 Starting at floor 5 Going down - now at floor 4 Going down - now at floor 3 Going down - now at floor 2 Going down - now at floor 1 Stopping at floor 1 Which floor do you want? 6 Starting at floor 1 Going up - now at floor 2 Going up - now at floor 3 Going up - now at floor 4 Going up - now at floor 5 Going up - now at floor 6

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 Databases Questions!