Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a) Write a logic statement for the process of checking whether to go from green

ID: 1846761 • Letter: A

Question



a) Write a logic statement for the process of checking whether to go from green to

yellow. Define a letter for each condition for the state change. A or B is represented by A+B. A and B is

represented by A*B. Use

When the light regulating North/South (N/S) traffic turns green it will stay green for a minimum of 10 seconds before switching to the yellow state. However, if there is no car waiting to go East-West (E/W) after 10 seconds the light will stay green and check again every five seconds for a waiting car. Once a waiting car is sensed the light turns yellow. It stays yellow for 3 seconds before turning red. The E/W light then enters a green state and the cycle continues. We also need a way for pedestrians to cross, so also check to see if a pedestrian pressed the cross button while you're checking for cars. The light should change if either a car or pedestrian is waiting. Stale Machine - Make a state machine diagram for the controller. Start with the N/S light. Fill in each circle with the appropriate state (color), and write the condition for state change next to each arrow.

Explanation / Answer

The logic of a NOT gate is either high or low.The yellow and red lights are obtained by a NOT gate.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote