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
What do these two changes have in common?
slamgirl [31]

Answer: Both are chemical changes.

Explanation:

Tarnish can be defined as the product of the chemical reaction that occurs between a metal and a no-metal. The metal which is exposed to the moisture or get oxidized develop a thin layer called tarnish.  Copper, silver, brass, magnesium and other metals get tarnished.

The polish removes the chemical product of tarnishing and keeps the silver in silver spoon intact. This involves the chemical reaction.

Salt and vinegar are the ingredients of the chemical formulation which can remove the chemical product of the tarnishing from penny. This involves the chemical reaction.

Both polish and silver and vinegar can bring a chemical changes in the metal without introducing the physical change as they do not affect the physical structure of the metal.

6 0
3 years ago
Read 2 more answers
explain .What do we want in this country, above all? People want to be happy, isn't that right? Haven't you heard it all your li
prohojiy [21]

The writer is expressing that people are already happy, but are always looking for more "happines", whether it be new challenges, new experiences, journeys, stuff they learn, things they want to buy but don't really need. People are always looking for new ways to feel like they have achieved something, or always looking for the approval of society.

6 0
3 years ago
Which term best describes news reported and distributed by ordinary people, rather than professional journalists?
Morgarella [4.7K]

In contrast to professional journalists, ordinary people report and spread news under the umbrella of citizen journalism.

In contrast to professional journalists, citizen journalism refers to news reporting by members of the general public. Discover what citizen journalism is and look at some examples of how the public spreads the word in different ways.

Citizen journalism, according to specialists in the field, is the gathering and reporting of news via social media, open forums, and established news venues, whether from non-traditional sources or the general population. If they were to provide information about an incident, for instance, police officers or city clerks may act as citizen journalism. With the use of cellphones rising, citizen journalism has grown more and more widespread. Nevertheless, there is evidence of citizen journalism dating back to 1963.

Learn more about citizen journalism here

brainly.com/question/28206663

#SPJ4

4 0
2 years ago
Nancy never knew.... <br><br><br> This is a alliteration and I need to finish the rest of this one
Triss [41]

Answer:

Nancy never knew nothing about knotts

6 0
4 years ago
Read this excerpt from the employee handbook for Pepper's Pizza.
svetoff [14.1K]

Answer:

cccc

Explanation:

c

7 0
3 years ago
Other questions:
  • What did Christopher Columbus see think and wonder when he arrived in the New World
    5·1 answer
  • How did westward expansion affect the population of the North
    14·1 answer
  • You are treating an 8-year-old who fell while riding his bike on a gravel road. The wound on his arm is seeping blood, is about
    7·1 answer
  • A psychologist asks people to envision a circle. Next, he asks them to draw the circle they envisioned. When comparing the pictu
    15·2 answers
  • When Isaac was promised, Abraham was 99 years old and Sarah was 90 years old.<br><br> True<br> False
    15·1 answer
  • "Technician A says that you should always re-inflate a severely underinflated tire using the safety cage. Technician B says that
    12·1 answer
  • The Aztec and Inca civilizations expanded into empires during the _____.
    5·1 answer
  • Please explain the event Alien &amp; Sedition Acts (1798) in your own word
    6·2 answers
  • En que te ayuda la educación en una carrera
    9·1 answer
  • The time of east is ahead of west.​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!