Question: The traffic light system that controls the lights for a single intersection write one(or several) Python tests that fully test the single requirement. (a) (/15)
The traffic light system that controls the lights for a single intersection write one(or several) Python tests that fully test the single requirement. (a) (/15) When one traffic light is green the other must (a) (a) when one lane is green the other one is always red.
(b)The walk signal for pedestrians must only allow crossing when the traffic light in the same direction is green.
(c) The traffic light should be green for the main road unless traffic has been waiting on the side street for more than 90s, in which case it should be red and the side street light green until 30s after all traffic on the side street has cleared.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
