A device is to be installed to control elevators in a building with several floors.  The system will use the following logic/rules to move elevators between floors: ● Each elevator has a set of m buttons, one for each floor. These illuminate  when pressed and cause the elevator to visit the corresponding floor. The  illumination is canceled when the elevator visits the corresponding floor.  ● Each floor, except the first floor and top floor has two buttons, one to  request an up-elevator and one to request a down-elevator. These buttons  illuminate when pressed. The illumination is canceled when an elevator  visits the floor and then moves in the desired direction. ● When an elevator has no requests, it remains at its current floor with its  doors closed.  The basic course of Action for an elevator scenario is:  1. Passenger presses the floor button (that is the button on the wall).  2. Elevator system detects the floor button pressed.  3. Elevator moves to the floor.  4. Elevator doors open.  5. Passenger gets in and presses the elevator button (that is the button in the  cabin panel).  6. Elevator doors close.  7. Elevator moves to the required floor.  8. Elevator doors open.  9. Passenger gets out.  10. Elevator doors close.  Draw the Sequence diagram representing the use of the floor button i.e., from the  passenger pressing the floor button until the elevator arrives, and they enter the  elevator

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.2: The If-else Statement
Problem 8E
icon
Related questions
icon
Concept explainers
Question

A device is to be installed to control elevators in a building with several floors. 
The system will use the following logic/rules to move elevators between floors:
● Each elevator has a set of m buttons, one for each floor. These illuminate 
when pressed and cause the elevator to visit the corresponding floor. The 
illumination is canceled when the elevator visits the corresponding floor. 
● Each floor, except the first floor and top floor has two buttons, one to 
request an up-elevator and one to request a down-elevator. These buttons 
illuminate when pressed. The illumination is canceled when an elevator 
visits the floor and then moves in the desired direction.
● When an elevator has no requests, it remains at its current floor with its 
doors closed. 
The basic course of Action for an elevator scenario is: 
1. Passenger presses the floor button (that is the button on the wall). 
2. Elevator system detects the floor button pressed. 
3. Elevator moves to the floor. 
4. Elevator doors open. 
5. Passenger gets in and presses the elevator button (that is the button in the 
cabin panel). 
6. Elevator doors close. 
7. Elevator moves to the required floor. 
8. Elevator doors open. 
9. Passenger gets out. 
10. Elevator doors close. 
Draw the Sequence diagram representing the use of the floor button i.e., from the 
passenger pressing the floor button until the elevator arrives, and they enter the 
elevator

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage