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
How is an appointed judges role in govenment different from an elected official
Angelina_Jolie [31]
A judge's term can last for life but an official has a specific amount of years
7 0
4 years ago
Where is the most deposition likely to occur?
Nikitich [7]

Answer:

i believe it is B

Explanation:

7 0
3 years ago
What short-term impact did Mexico’s Independence from Spain have on colonization of Texas?
UkoKoshka [18]

Answer:

D

Explanation:

I read about it in my Social studies textbook

5 0
3 years ago
Arguing with his father, Roberto makes the claim that he is a skilled driver and the reason why there are so many motorcycle acc
never [62]

Answer:

Personal fable

Explanation:

A personal fable is a phenomenon that occurs with teens. In this phenomenon, the teen thinks that they are unique and invulnerable. They are special in the world. The personal fable is a normal cognitive error at this stage. But unfortunately, it is sometimes dangerous for teens because of the personal fable in teens.

Thus here Roberto was arguing with his father on driving because of the personal fable attitude in the teenager.

3 0
3 years ago
What grade are u guys in because I need help with my assignments and I need a good grade on them
blsea [12.9K]

Answer:

7th Grade, in Accelerated Program

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • I can't do this and I'm tired please help meee
    5·1 answer
  • What is the job of the General Assembly?
    12·1 answer
  • Mobile phones have evolved from devices intended to place and receive phone calls into handheld multimedia communications device
    5·1 answer
  • Cities and their surrounding areas are known as what?
    7·1 answer
  • What is examples of Socially trends?
    6·1 answer
  • Some researchers have doubted that class size and school budget have significant impacts on students' performance.
    8·1 answer
  • What was Ellis Arnall’s view of the white primary system?
    10·2 answers
  • How does Columbus describe the land when he first sees it?
    10·2 answers
  • Read the excerpt from Zikh's presentation about
    8·1 answer
  • involves evaluating evidence, analyzing assumptions and biases, and assessing the speaker's reasoning.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!