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 did conflict over land affect changes in settlement patterns in Georgia?
Novay_Z [31]
ImmigrantsThe Creek Indians meet with James Oglethorpe. By the time Oglethorpe and his Georgia colonists arrived in 1733, relations between the Creeks and the English were already well established and centered mainly on trade.Oglethorpe with Creek Indians to colonial Georgia came from a vast array of regions around the Atlantic basin—including the British Isles, northern Europe, the Mediterranean, Africa, the Caribbean, and a host of American colonies. They arrived in very different social and economic circumstances, bringing preconceptions and cultural practices from their homelands. Each wave of migrants changed the character of the colony—its size, composition, and economy—and brought new opportunities and new challenges to the people already there. A majority of the immigrant white population traveled to Georgia because of the availability and cheapness of land, which was bought, bartered, or bullied from surrounding Indians: more than 1 million acres in the 1730s, almost 3.5 million acres in 1763, and a further cession of more than 2 million acres in 1773.From EuropeDuring the Trusteeship (1732-52), the overwhelming majority of Georgia immigrants—more than 3,000 in number—arrived from Europe. Around two-thirds of these pioneers were funded by the Trustees, This sketch of the early Ebenezer settlement was drawn in 1736 by Philip Georg Friedrich von Reck. That same year the Salzburger settlement moved to a location closer to the Savannah River, where conditions were better for farming.Early Ebenezerwho offered them a passage across the Atlantic, provisions for one year, tools, and a tract of land in return for their labor.After 1752, under the headright system, every settler was entitled to 100 acres of land, plus 50 additional acres for each member of the settler's household, including slaves and indentured servants. (In 1777 the initial allotment per settler changed to 200 acres.) All settlers—men and women—could receive up to 1,000 acres of land through a headright grant. The headright grant was a primary mechanism for distributing land throughout royal rule and early statehood.


this is part 1



Hope this helps

8 0
3 years ago
Stacy has a difficult time answering the question "Should parents increase the likelihood of desirable behaviors in their childr
GuDViN [60]

Answer:

double-barreled question

Explanation:

A double-barreled question is a question that comprises two or more topics or issues , but is expected to have just one answer. A double barreled question is sometimes referred to as an informal fallacy. It also be called a double-direct question or compound question. It is usually advisable to avoid such questions in  survey, but can be used in court during cross examination or other researches.

For example the question above touches on two separate issues: the use of reinforcement and the use of punishment at the same time, by parents, as a means to increase the likelihood of desirable behaviors in their children. Stacy found it difficult to answer this question because it is a double-barreled question.

6 0
3 years ago
Pls help will give brainiest
REY [17]

Answer:

I think the correct answer is "the reason leaders in the islamic territory allowed people to choose their religion

Explanation:

Verse (ayah) 256 of Al-Baqara is a very famous verse in the Islamic scripture, the Quran. The verse includes the phrase that "there is no compulsion in religion".

kamsahamnida have a great day

5 0
2 years ago
Does madison say its possible to have a tyranny in a democracy
Strike441 [17]
Yes he did say that   

5 0
3 years ago
Help pls! ill mark brainliest if correct!
Alex787 [66]

Answer:

D the last one

Explanation:

4 0
3 years ago
Other questions:
  • Match the following:
    5·1 answer
  • Your inspection report does not need to include information on
    10·1 answer
  • Maria wakes up in the morning and takes a shower, drinks a glass of water, washes her clothes in the laundry machine, and then g
    15·1 answer
  • The legal protection of copyright gives authors and producers the right to control their own intellectual property for their ent
    10·2 answers
  • What event triggered the start of World War I?
    6·1 answer
  • 1. What are some questions crime scene investigations are trying to answer?
    13·1 answer
  • The author added three values to the original list of ten core values that Robin Williams identified as the most common in Ameri
    7·1 answer
  • How would acquiring new land provide benefits to the country
    11·1 answer
  • Why are millet and sorghum the two most popular crops grown in the Sahel?
    7·1 answer
  • If the cords can sustain a force of 1360 n without breaking, what is the maximum chandelier weight that can be supported?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!