Question: In this procedure you will utilize case statements to select between various possible states of operation. Create a structured text program which produces the following

In this procedure you will utilize case statements to select between various possible states of operation.
Create a structured text program which produces the following response. You must use a CASE statement in your program.
The program will cycle through all five stack lights.
On start the bottom light will be active.
If a red button is pressed the program will move the active light up by 1 in the stack light column (transitioning from top to bottom as needed).
If the green button is pressed the program will move the active light down by 1 in the stack light column (transitioning from bottom to top as needed).
If the yellow bulaton is pressed the program will light all 5 stack light elements for 1 second and then return to the original starting state of only illuminating the bottom stack light.
In this procedure you will utilize case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!