diff --git a/education/software development/ECE1400/Flowcharts and Pseudocode.md b/education/software development/ECE1400/Flowcharts and Pseudocode.md index 5c11b16..ef48920 100644 --- a/education/software development/ECE1400/Flowcharts and Pseudocode.md +++ b/education/software development/ECE1400/Flowcharts and Pseudocode.md @@ -225,4 +225,16 @@ sunny { * EndIf * End **************************************/ -``` \ No newline at end of file +``` + +# 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 | \ No newline at end of file