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 many miles did the seminole walk to get to indian ?
polet [3.4K]
If your asking how far the Seminole Indians walked that would be over 400 miles
6 0
3 years ago
The City Dispatch, a daily newspaper serving a city with a population of just over 200,000, is placed in vending machines throug
fenix001 [56]

Answer:

Intensive distribution strategy (macro)

Explanation:

The city dispactch engaged in intensive distribution, because the company sells through as many outlets as possible, so that the consumers encounter the product virtually everywhere they go: supermarkets, book stores, gas stations, pharmacy.

3 0
3 years ago
When taking his psychology class, professor sharma emphasizes that developmental change occurs throughout adulthood as well as c
statuscvo [17]

The answer is “life-span”. The Life Span Approach studies the progress of individuals which occurs from birth to demise. Development is a difficult procedure, which comprises of fading and demise. This approach cautiously examines the progress of individuals with high opinion to evolving stages.

8 0
3 years ago
What was the main reason imperial nations built large naval forces?
Romashka [77]
To initiate sea-based attacks on other nations to demonstrate their size and prowess
6 0
3 years ago
John purchases a life insurance policy on his wife Betty where he pays the premium and he will receive the life insurance money
Vitek1552 [10]

Answer:

The Option that best answers the question is "C"

Explanation:

policy owner; beneficiary; face amount; insured

Death can have a major financial impact on those left behind, particularly if there is a mortgage to pay, credit card debt, or an outstanding auto loan. Even final expenses can be a burden.

Life Insurance policies helps cover for this financial burden and eventualities

3 0
3 years ago
Read 2 more answers
Other questions:
  • The feminization of poverty refers to: a trend in which females represent an increasing proportion of the poor. the fact that mo
    9·1 answer
  • Which of the following is NOT an enumerated power?
    12·1 answer
  • The event that causes a use case to begin is called a(n) _____.
    7·1 answer
  • According to the text, college students in counseling are treated in only _____ sessions on average.
    11·1 answer
  • Succeeding in school, at work, and in life is about what you do and:
    11·1 answer
  • The most common form of abuse of an elderly person by a caregiver or fiduciary is:________
    5·1 answer
  • Just as we can consume food and other material goods, contemporary culture encourages us to consume places, meaning, to ________
    5·2 answers
  • In a representative democracy........(choose 2 that apply)
    6·1 answer
  • Which is correct?
    11·2 answers
  • The specialization by individuals or groups in the performance of specific economic activities is a. the division of labor. c. u
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!