vault backup: 2024-09-01 13:22:42

This commit is contained in:
zleyyij 2024-09-01 13:22:42 -06:00
parent 039b1fc979
commit eafb2881c6

View File

@ -226,3 +226,15 @@ sunny {
* End
**************************************/
```
# 4 Way Intersection
## Instructions
5. Develop a flowchart that describes the behavior of a set of traffic lights that control a 4-way intersection. Assume the light can either be red or green.  Define an appropriate action set that accounts for the time the light has been in the current state.
6. Represent the flowchart from problem 5 as pseudocode.
## Action Set
| Action name | Description |
| -- | -- |
| Set \[north, east, south, west] light to \[red, green] |
| Toggle lights |