diff --git a/education/software development/ECE1400/Flowcharts and Pseudocode.md b/education/software development/ECE1400/Flowcharts and Pseudocode.md index 951e269..b47984f 100644 --- a/education/software development/ECE1400/Flowcharts and Pseudocode.md +++ b/education/software development/ECE1400/Flowcharts and Pseudocode.md @@ -298,9 +298,9 @@ end: { ## Pseudocode ```c /************************************** -* Function Title: BakeBananaCake +* Function Title: RunStopLights * -* Summary: Bake a banana cake +* Summary: Operate stoplights for a 4 way intersection * * Inputs: none * Outputs: none @@ -308,19 +308,15 @@ end: { * Pseudocode * * Begin -* Add 3c flour -* Add 1 1/2 tps baking soda -* Add 1/2 tsp cinnamon -* Add 1/2 tsp salt -* Stir -* Add 3 mashed bananas -* Add 1 tsp lemon juice -* Stir -* Add 3 eggs -* Add 2tsp vanilla extract -* Stir a final time -* Bake @ 350F for 50 min -* Cool for 1 hour +* Set the north light to red +* Set the south light to red +* Set the east light to green +* Set the west light to green +* Loop indefinitely +* Wait 30 seconds +* Toggle lights +* EndLoop * End **************************************/ -``` \ No newline at end of file +``` +