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
In order to evaluate the choices that must be made toward providing value for people, it is assumed that all parties to the proc
polet [3.4K]

Answer:

Are Rational

Explanation:

Rationality reflects on being able to make decisions in a new, unknown or unfamiliar situations by providing steps that help us gather and process relevant information.

Being rational helps in making good and unbiased choices.

A logical person is someone who is compassionate and can make decisions based on clear reasoning rather than emotion.

Rationality is something that really makes sense or may be founded on, or someone who is objectively behaving and thinking.

Reasonable conduct refers to a decision-making process based on making decisions that result in an person being given the optimum level of gain or utility.

7 0
3 years ago
Read 2 more answers
Please help!!!!! i’ll give you a thanks :)
Setler79 [48]

Answer:

The answer is D. It made it less time consuming and saved workers energy.

7 0
3 years ago
Read 2 more answers
(GIVING BRAINLEST TO THE CORRECT ANSWER)Select the correct location on the image. From which region did the first migration to N
Flauer [41]

Answer:

region c

Explanation:

3 0
2 years ago
The NCAA imposes the "death penalty" by: A. prohibiting a school from offering any athletic scholarships B. forcing a school to
Viktor [21]

Answer:

Option B

Explanation:

NCAA Stands for "National Collegiate Athletic Association which is responsible for banning schools from participating in sports for at least a year.

The death penalty is the harshest form of penalty it can give, and most of this punishment result in schools not competing in sports for the duration of the death penalty.

The imposition of "Death Penalty" by NCAA Forces a school to eliminate a sport which they face the punishment for, which can be a year or more depending on NCAA.

6 0
3 years ago
The Second Great Awakening tended to * 1 point A. discourage church membership. B. reduce social class differences. C. promote t
zlopas [31]

Answer:

The Second Great Awakening tended to ...

Explanation:

C) Promote the growth of religious sects

3 0
2 years ago
Other questions:
  • Grace is talking with her wife, myanna. myanna starts crying, and grace immediately assumes that myanna wants a divorce. what ki
    7·2 answers
  • What brought people to the United States in the first half of the 19th century?
    11·1 answer
  • Annie is a new district attorney (DA) for her county and she has her first day in court. She walks into the courtroom and sits a
    12·1 answer
  • The ________ function of attitudes applies when a person is in an ambiguous situation and needs order, structure, or meaning.
    12·1 answer
  • Modern presidential electors are elected by their _______ party.<br><br> What's the blank?
    6·1 answer
  • The early sociologist who argued that deviance might be functional for society was ________.
    12·2 answers
  • Colonist A is a poor farmer in the Hudson Valley of New York. Colonist A has paid no attention to the trouble brewing in the col
    14·1 answer
  • Which statement best describes the reason that job opportunities for women and children increased during early industrialization
    12·1 answer
  • PLEASE ANSWER THIS thank you
    8·2 answers
  • 5. What group in South Africa made up (and still makes up) the MINORITY of citizens? *
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!