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
Aloiza [94]
2 years ago
12

A programmer is creating an algorithm that will be used to turn on the motor to open the gate in a parking garage. The specifica

tions for the algorithm are as follows. The gate should not open when the time is outside of business hours. The motor should not turn on unless the gate sensor is activated. The motor should not turn on if the gate is already open. Which of the following algorithms can be used to open the gate under the appropriate conditions?
a. Check if the time is outside of business hours. If it is, check if the gate sensor is activated. If it is, check if the gate is closed. If it is, turn on the motor.
b. Check if the time is during business hours. If it is, check if the gate sensor is activated. If it is, check if the gate is open. If it is, turn on the motor.
c. Check if the time is during business hours. If it is, check if the gate sensor is activated. If it is not, check if the gate is open. If it is not, turn on the motor.
d. Check if the time is during business hours. If it is, check if the gate sensor is activated. If it is, check if the gate is open. If it is not, turn on the motor.
Social Studies
1 answer:
Allushta [10]2 years ago
3 0

Answer:

A

Explanation:

it is the only one that makes sense the other ones don't make sense.

Ur welcome

You might be interested in
What were the three causes of malcontent in Georgia colony?
UkoKoshka [18]
The three reasons for settlement were Charity, Economics, and Defense.
5 0
3 years ago
Antony is an adolescent who is primarily responsible for taking care of his younger sibling while his parents work. in addition,
Anit [1.1K]

Antony is most likely an adolescent who lives in a traditional culture

This is because a traditional culture is more likely to involve taking care of the extended family that includes grandparents, uncles and aunts. This differs from the developed world culture that involves the nuclear family

4 0
3 years ago
Read 2 more answers
What types of countries are turning to socialism
Gnoma [55]

Answer:

Vietnam, china, Lao, and Cuba

Explanation:

6 0
2 years ago
because of several unfortunate events in his life, robert's level of anxiety had become so intense and consuming that he could n
Whitepunk [10]

Answer:

After Robert discussed the problem with his family doctor, the doctor decided to prescribe <u>anti-depressant drugs</u> for his <u>treatment.</u>

Explanation:

Anxiety disorder is a condition where the individual in question experienced a high degree of anxiety. This could lead to various issues such as lack of concentration, heightened fear, sleepless nights etc.

<em>In order to manage and treat this disorder, most doctors prescribe drugs known as anti-depressant. Some of those drugs include </em><em>Prozac</em><em>, </em><em>Zoloft</em><em>, </em><em>Paxil</em><em>, </em><em>Lexapro</em><em>, and </em><em>Celexa</em>

5 0
2 years ago
True or False. According to the Four Stages of Operations Contribution model,
Nadya [2.5K]

Answer:

True

Explanation:

The four stages of Operation Contribution are

1. Internal Neutrality

2. External Neutrality

3. Internal Supportive

4. External Supportive

7 0
2 years ago
Other questions:
  • Which statement best describes lslam?
    6·1 answer
  • When everyone in her class said that they liked to dance, jill reported liking to dance, too, even though she dislikes dancing.
    11·2 answers
  • What is the currency of the United States?<br> A. English<br> B. pounds<br> C. dollar<br> D. money
    9·2 answers
  • What is paleolithic era?
    10·1 answer
  • Melvin, a server as a restaurant, is in the middle of a lunch rush. He is completing orders, serving customers, and seating new
    8·2 answers
  • Incidents typically begin and end locally and are managed on a daily basis at the lowest possible geographical, organizational,
    14·1 answer
  • What causes people in today's society to move? 3 aswers are needed
    6·2 answers
  • Why did communism appeal to many Chinese during the mid-1900s?
    12·1 answer
  • The term abroad refers to being __________.
    9·2 answers
  • Self-determination theory proposes that in addition to being driven by a need for autonomy, people seek ways to achieve ________
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!