1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zimovet [89]
3 years ago
15

An office building has two floors. A computer program is used to control an elevator that travels between the two floors. Physic

al sensors are used to set the following Boolean variables.Variable DescriptiononFloor1 Set to true if the elevator is stopped on floor 1; otherwise set to falseonFloor2 Set to true if the elevator is stopped on floor 2; otherwise set to falsecallTo1 Set to true if the elevator is called to floor 1; otherwise set to falsecallTo2 Set to true if the elevator is called to floor 2; otherwise set to falseThe 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?
Social Studies
1 answer:
Rudik [331]3 years ago
8 0

<u>Answer: </u>

Out of the following Boolean expressions, the ones that can be used in a selection statement to cause the elevator to move are 'onFloor1 AND callTo2' or 'onFloor2 AND callTo1'

<u>Explanation: </u>

  • Based on the other commands crafted to be given and received by the lift indicating what operation it is engaged in, the commands to make it move can be determined easily.
  • The command 'onFloor1 AND callTo2' can be used when the lift is on the first floor and needs to be taken to the second floor. The command 'onFloor2 AND callTo1' would work as the counter-command of the command mentioned earlier and would make the lift function exactly in the opposite way.
You might be interested in
Explain the circular flow of economic activity.
9966 [12]
The circular flow of economic activity is a model showing the basic economic relationships within a market economy. ... In the circular flow of the economy, money is used to purchase goods and services. Goods and services flow through the economy in one direction while money flows in the opposite direction.
7 0
3 years ago
Labor unions can use the power of collective bargaining to negotiate, meaning that they will _____.
Rzqust [24]
Labor unions can use the power of collective bargaining to negotiate, meaning that they will use numbers to assert their power to strike. Collective bargaining is like a compromise both the employees and employer to address certain issues like the employees' wages, benefits, etc. 

The answer would be letter C. 
4 0
3 years ago
Read 2 more answers
When walking to his car late at night, Otto is extra vigilant and his body is on alert for danger. These responses are due to th
FromTheMoon [43]

Answer:

Sympathetic

Explanation:

The sympathetic system is a nervous system which makes the body to stay alert and directs the body to be vigilant. It can be considered as an involuntary response towards potential danger or a response to a stress. This is done by directing extra blood to the limbs and by increasing the heart rate. Here, Otto is being extra vigilant and his body is on alert for danger and therefore, the answer is sympathetic system.

3 0
3 years ago
What strategy is most helpful to take control of the opportunities and challenges life offers?
densk [106]

B. Flexibility

hope this helps. :)

5 0
4 years ago
Read 2 more answers
You are working on care coordination for a 53-year-old woman with newly diagnosed polycythemia vera. She needs to meet with a so
irakobra [83]

Answer:

c) "We are planning chemotherapy for this patient."

Explanation:

Polycythemia vera is a type of blood cancer. It is slowly growing cancer in the blood in which too many red blood cells are being produced by the bone marrows.

Polycythemia vera cancer is very rare and if remained untreated can be life threatening.

The increase in red blood cells makes the blood thicker and makes it difficult to flow thus causing blood clotting or heart attack.

When the social worker wants to know what kind of treatment is expected, we will answer that we are planning chemotherapy for the old patient.

Thus the answer is c) "We are planning chemotherapy for this patient."

8 0
3 years ago
Other questions:
  • As part of her treatment for an eating disorder, anne's psychologist designs a treatment program that involves monitoring anne's
    10·1 answer
  • Cca takes her 1-year-old son, adam, to visit an infant-toddler program in which she hopes to enroll him. adam appears very anxio
    15·1 answer
  • Which factor has been identified as being as powerful a health risk as smoking?
    10·2 answers
  • Did government interactions with big business help Americans? You can use your textbook pages 268-273 in this textbook to help y
    9·1 answer
  • Jim has a high sense of self-efficacy regarding his ability to work with wood. Based on this information, we would predict three
    8·1 answer
  • Describe the differences in marriage and family that are linked to class, race, gender and personal choice.
    13·1 answer
  • What does Religous toleration mean?
    12·1 answer
  • Why did parliament decide to pass four new laws in the Massachusetts colonies in 1774
    12·1 answer
  • WHEN ARE BY ELECTION CONDUCTED
    6·2 answers
  • PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZ HELPPPPPPPPPPPPPP MEEEEEEEEEEEEEEEEEEE
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!