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 justification grounded the supreme court decision to overturn the seperate but equal doctrine?
gayaneshka [121]

In a series of Supreme Court rulings under Chief Justice Earl Warren, beginning with Brown v. Board of Education in 1954, "separate but equal" facilities were found to be unconstitutional because new research demonstrated that separating students by "race" was detrimental to them, even if facilities were equal.

<h3>Which Supreme Court decision caused the separate but equal concept to be abolished?</h3>
  • The separate but equal theory was abolished as a result of the Brown v. Board of Education Supreme Court ruling.
  • The 1954 Supreme Court decision Brown v. Board of Education, which overturned the "separate but equal" principle and ordered an end to school segregation, is one of the most well-known decisions to come out of this time period.
  • "Separate but equal" facilities were found to be unconstitutional in a series of Supreme Court decisions made under Chief Justice Earl Warren, starting with Brown v. Board of Education in 1954, because new research showed that dividing students by "race" was harmful to them even if facilities were equal.
  • "Separate but equal" facilities were found to be unconstitutional in a series of Supreme Court decisions made under Chief Justice Earl Warren, starting with Brown v. Board of Education in 1954, because new research showed that dividing students by "race" was harmful to them even if facilities were equal.

To learn more about the Brown v. Board of Education Supreme Court, refer to the following link:

brainly.com/question/9822748

#SPJ4

5 0
1 year ago
How the age of absolutism came into being from the federal system?? help please please ​
mafiozo [28]

Answer:The Age of Absolutism is usually thought to begin with the reign of Louis XIV (1643–1715) and ends with the French Revolution (1789). Absolutism was primarily motivated by the crises of the sixteenth and seventeenth centuries.

Explanation:

8 0
3 years ago
Why do you think political parties emerged even though most Americans opposed them?
shepuryov [24]
<span>To divide we the people to weaken us, set us against each other with blame games and propaganda. Party loyalty blinders keep us from watching too closely what our own party representatives are doing against our own interests. 
Like professional wrestlers they appear to be bitter rivals in public but are the best of friends behind closed doors. They have led us to think that only someone from their parties can win an election. If we vote for a third party candidate we have "thrown our vote away" on someone who stands no chance of winning and let that "evil other party" candidate win. We feel compelled to vote for the "lesser" of the two evils being offered. 
Consider this: Both parties of the Senate said that the TARP bill lacked oversight to protect the taxpayer's money (concerning the original 3 page one passed by the House of Representatives). They claimed they were going to add protection and oversight to it. Then behind closed doors they added 137 pages of earmark spending and NO oversight or protection. Bush signed it and they closed the 110 Session of Congress knowing that they had an automatic pay raise in place. Both parties were involved so no evil other party blame games could be played. 
Instead they faked outrage when the AIG bonus news came out and blamed the Management for not following rules which they had failed to put into the TARP bill in the first place. Watch this video
https://www.youtube.com/watch?v=p6KRXnYgu...</span>
4 0
4 years ago
What role do cultural exchanges play in society today?
stepladder [879]
It plays a huge role sometimes it can cause disagreements and other times it can cause friendships and happiness. Either way life is diverse
8 0
3 years ago
Read 2 more answers
Help!!! I can't figure it out!
OlgaM077 [116]
6. And 7. Is True. The rest I have no clue. Sorry
4 0
3 years ago
Read 2 more answers
Other questions:
  • While processing a crime scene for insect evidence, what is the recommended number of maggots per mass to collect?​ _________?
    14·1 answer
  • The four steps in active reading, in order, are __________. a.reviewing, marking, reading with concentration, and rereading the
    15·1 answer
  • _________is a projective test that is similar to a word association test in which a person completes sentences in order to revea
    6·1 answer
  • 3. You have likely been warned to avoid contact with electrical appliances or even electrical outlets when your hands are wet. S
    5·2 answers
  • When the teacher talked to her students about their poor performance on the test, she assumed they had been too lazy to do the w
    14·1 answer
  • _____ are mental categories used to group objects, events, and characteristics. algorithms concepts semantics morphemes
    15·1 answer
  • What was the main point of the Thirteenth Amendment? User: What was the main point of the Thirteenth Amendment? User: The practi
    9·1 answer
  • The barn owls wondrous capers of sarnath Banerjee is a/an?​
    14·1 answer
  • Are apples yummy? in my big fattt tummiiiiiii
    11·1 answer
  • Effects of a program to prevent social isolation on loneliness, depression, and subjective well-being of older adults: a randomi
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!