Computer Science, asked by Anonymous, 5 months ago

write an algorithm for changing of traffic lights at a crossing. write clearly all the assumption thet you might have considered.

plzz answer the question
spammers be away

Answers

Answered by himali2144
1

Answer:

Some traffic lights have arrows to control traffic turning right or left.

A green arrow means you can only turn in that direction.

A red arrow means traffic waiting to turn must wait behind the stop line until the arrow turns green or disappears, even if there is no traffic on the road.

Traffic light showing red light with green right arrow lightYou must not go straight ahead or turn left. You may turn right.

Traffic light showing red light with red right arrow light You must not turn right but you can go straight ahead or turn left if the way is clear.

Traffic light showing red light with flashing amber right arrow light When the yellow (amber) arrow is flashing, you may proceed but you must give way to any pedestrian who is crossing the road into which you are turning.

Bicycle storage areas

Some intersections that have traffic lights contain bicycle storage areas. These painted areas on the road allow cyclists to stop in safety. When traffic lights or arrows are red, drivers must not allow any part of the vehicle to enter the bicycle storage area.

Similar questions