From eafb2881c6f511eb9784f8720d31b3d08a1addbd Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Sun, 1 Sep 2024 13:22:42 -0600 Subject: [PATCH] vault backup: 2024-09-01 13:22:42 --- .../ECE1400/Flowcharts and Pseudocode.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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