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
On a cosmic calendar, in which the history of the universe is compressed into 1 year, when did the dinosaurs become extinct? On
Juli2301 [7.4K]

Answer:

On the 30th of December which equates to 0.065 billion years ago

Explanation:

The cosmic calendar was made popular by a famous astronomer named Carl Sagan. His aim was to help people to better understand when a particular prehistoric event in the universe occurred when compared to another prehistoric event.

He achieved the aim by chronologically arranging the 13.8 billion years of the universe age into one year. According to such arrangement, the Big Bang occurred on the 1st of January (13.8 billion years ago) while Dinosaurs went into extinction on the  30th of December (0.065 billion years ago).

Following their extinction, the age of primates began on the 31st of December (Just 40 million years ago). You can see that Carl Sagan's visualization puts the beginning of primates (which men evolved from) immediately after the extinction of Dinosaurs and very far away from the Big Bang that signifies the creation of the universe.

3 0
3 years ago
Why did world war one take place in Tanganyika?
Inga [223]

Answer: The Battle for Lake Tanganyika was a series of naval engagements that took place between elements of the Royal Navy, Force Publique and the Kaiserliche Marine between December 1915 and July 1916, during the First World War. The intention was to secure control of the strategically important Lake Tanganyika, which had been dominated by German naval units since the beginning of the war. The British forces — consisting of two motor boats named HMS Mimi and Toutou — were under the command of the eccentric Lieutenant-Commander Geoffrey Spicer-Simson. The boats were transported to South Africa and from there by railway, by river, and by being dragged through the African jungle, to the lake.

Explanation:

6 0
3 years ago
How many innings do high school and college softball teams traditionally play?.
Rina8888 [55]

Answer:

7

in highschool and college

4 0
2 years ago
Read 2 more answers
What if Paul Revere was not able to do his<br> famous "midnight ride"?
Semenov [28]

Answer:

everyone would be dead

Explanation:

5 0
3 years ago
Which way does the equator run through Africa?
balandron [24]
Read this , I don’t know how to explain it though sorry:/
4 0
3 years ago
Read 2 more answers
Other questions:
  • Do people who break vows of silence lose their accents
    7·1 answer
  • Sweeping the dojo floor and picking up trash is the responsibility of mudansha, or lower belt students, leaving the dansha (blac
    8·1 answer
  • How many immigrants arrived in the United States between 1875 and 1910?
    6·2 answers
  • “United States Airlifts Supplies to Berlin” “U-2 Spy Plane Shot Down Over the Soviet Union” “Soviet Missiles Placed in Cuba” The
    8·1 answer
  • 1. In the 1970s, the U.S. government set the price for gasoline around one dollar per gallon. Define price controls and describe
    9·1 answer
  • You want to invest some extra money by purchasing some stocks, but you do not know which company is a good investment choice. Wh
    10·2 answers
  • Eli Whitney and Samuel Slater were important to the early Industrial Revolution in the United States because they?
    14·2 answers
  • How licks does it take to lick a lollipop
    10·2 answers
  • 43 POINTS
    11·1 answer
  • In the _____ way of knowing things, people hold firmly to some belief because some respected official, agency, or source has sai
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!