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.

write a code by c langauge for task 2
 write a code by c langauge for task 2 TASK 2:

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

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 Databases Questions!