diff --git a/education/software development/ECE1400/Flowcharts and Pseudocode.md b/education/software development/ECE1400/Flowcharts and Pseudocode.md index 09d34a7..459580c 100644 --- a/education/software development/ECE1400/Flowcharts and Pseudocode.md +++ b/education/software development/ECE1400/Flowcharts and Pseudocode.md @@ -254,6 +254,29 @@ classes: { } beginning: { - shape: + shape: oval + label: beginning +} +beginning -> initialize lights +initialize lights { + 1.label: set the north light to red + 1 -> 2 + 2.label: set the south light to red + 2 -> 3 + 3.label: set the east light to green + 3 -> 4 + 4.label: set the west light to green +} +initialize lights -> 1 +loop-begin: { + shape: step + label: loop indefinitely +} +1.label: wait 30 seconds +1 -> loop-begin + +end: { + shape: oval + label: end } ``` \ No newline at end of file