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 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 in the stack light column transitioning from bottom to top as needed
If the yellow bulaton is pressed the program will light all stack light elements for second and then return to the original starting state of only illuminating the bottom stack light.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
