Question: write a code by c langauge for task 2 TASK 2: LIGHT DANCING In this task we are going to make the LDEs dance i.e.

TASK 2: LIGHT DANCING In this task we are going to make the LDEs dance i.e. move it left or right with different delays. To do so we will us bitwise operator. We can use the bitwise shift operator ">" (shift right). For example the below statements will make the light (assume variable X) move left by 2 steps and Right 3 steps respectively, XX> 3; It is required to write a code to move the light left by 2 steps with a certain delay and when it reaches the last bit, reverse direction with a faster speed jumping 3 bits at a time, Make a flow chart for this problem. (Test your imagination for this problem using different shift patterns) TASK 2: LIGHT DANCING In this task we are going to make the LDEs dance i.e. move it left or right with different delays. To do so we will us bitwise operator. We can use the bitwise shift operator ">" (shift right). For example the below statements will make the light (assume variable X) move left by 2 steps and Right 3 steps respectively, XX> 3; It is required to write a code to move the light left by 2 steps with a certain delay and when it reaches the last bit, reverse direction with a faster speed jumping 3 bits at a time, Make a flow chart for this problem. (Test your imagination for this problem using different shift patterns)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
