subject

An office building has two floors. A computer program is used to control an elevator that travels between the two floors. Physical sensors are used to set the following Boolean variables.

Variable 1: onFloor1 Description: Set to true if the elevator is stopped on floor 1; otherwise set to false

Variable 2: onFloor2 Description: Set to true if the elevator is stopped on floor 2; otherwise set to false

Variable 3: callTo1 Description: Set to true if the elevator is called to floor 1; otherwise set to false

Variable 4: callTo2 Description: Set to true if the elevator is called to floor 2; otherwise set to false

The elevator moves when the door is closed and the elevator is called to the floor that it is not currently on. Which of the following Boolean expressions can be used in a selection statement to cause the elevator to move?

A. (onFloor1 AND callTo2) AND (onFloor2 AND callTo1)

B. (onFloor1 AND callTo2) OR (onFloor2 AND callTo1)

C. (onFloor1 OR callTo2) AND (onFloor2 OR callTo1)

D. (onFloor1 OR callTo2) OR (onFloor2 OR callTo1)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Alook-up table used to convert pixel values to output values on a monitor. essentially, all pixels with a value of 190 or above are shown as white (i.e. 255), and all values with a value of 63 or less are shown as black (i.e. 0). in between the pixels are scaled so that a pixel with a value p is converted to a pixel of value 2/127 −+3969). if a pixel has a value of 170 originally, what value will be used to display the pixel on the monitor? if a value of 110 is used to display the pixel on the monitor, what was the original value of the pixel?
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
You know the right answer?
An office building has two floors. A computer program is used to control an elevator that travels be...
Questions
question
Mathematics, 24.04.2020 20:05
question
Computers and Technology, 24.04.2020 20:05
question
Mathematics, 24.04.2020 20:05
question
Mathematics, 24.04.2020 20:05
Questions on the website: 13722361