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
Lee Anne is telling her children stories about when she was young. Although the children keep asking Lee Anne for stories about
vredina [299]

Answer:

The correct answer is: Reminisence bump.

Explanation:

The reminiscence bump can be understood as a psychological and cognitive phenomenon in which individuals, typically adults over forty have an enhanced capacity to recall events that occurred to them during their adolescence years encompassing their middle school and highschool years and the first years of early adulthood.

In this particular case, Lee Anne is telling her children stories about when she was young. Although the children keep asking Lee Anne for stories about when she was a little girl, Lee Anne can more easily remember events when she was a teenager and in her 20s. Lee Anne's memories are consistent with the idea of the Reminisence bump.

8 0
3 years ago
Scott works for a large bank that is trying to limit the risk associated with unapproved USB devices to company documents. Which
Genrish500 [490]

Answer:

D. NIPS

Explanation:

NIPS which is known as 'network-based intrusion prevention system' is a system used to monitor a network and also protect the confidentiality, integrity, and availability of a network. Majorly, its function is to protect the network from threats or malicious activities, such as denial of service (DoS) and unauthorized usage from any source. So therefore, this makes Scott limit the risks associated with unauthorized USB devices.

7 0
3 years ago
Which two sentences use coordinate adjectives?
Gnom [1K]
A and C. Coordinate adjective are adjectives that can be switched up and it will still make sense.
7 0
3 years ago
Read 2 more answers
Which factor contributed to fall of the Akkadian empire
Nady [450]

Answer:

the invasion of the gutians and climatic conditions

Explanation:

The empire collapsed after the invasion of the Gutians. Changing climatic conditions also contributed to internal rivalries and fragmentation, and the empire eventually split into the Assyrian Empire in the north and the Babylonian empire in the south.

8 0
3 years ago
Read 2 more answers
Lydia has just entered kindergarten and receives testing in September to determine whether she needs additional support. This ty
Simora [160]

Answer:

universal screening assessments                        

Explanation:

Screening: The term screening is referred to as the process which is being conducted to predict or identify students at risk of poor learning consequences.

Universal screening assessments: It is considered as brief assessments and is conducted on every student from a particular grade. It is responsible for identifying different students who are at risk related to academic difficulty on the RTI model and therefore given extra support.

In the question above, the given statement represents universal screening assessments.

3 0
3 years ago
Other questions:
  • According to reciprocal determinism behavior is BEST described as the result of: personal factors. past behavior. environmental
    7·1 answer
  • Which of the following is the best example of a domestic policy?
    11·1 answer
  • What world religion is based on the monotheistic teachings of Muhammad?
    6·1 answer
  • 30. ________________ are those that can be replenished naturally. Sunlight, which can be used for solar energy, is an example. N
    5·2 answers
  • Gina says, "i can type 70 words per minute with no errors." she is expressing:
    8·1 answer
  • What did the missionaries do
    11·2 answers
  • Which of the following is a fixed expense?
    11·2 answers
  • Why was north america do valuable and desired by both yhe french and the english.
    5·1 answer
  • The _______________ perspective is interested in exploring how intelligence is used, not the amount of intelligence
    14·2 answers
  • Early squad... good morning!!!
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!