Quiz+5-5

Quiz 5-5:

Write a program that would read a light sensor (Light4) and continually display the reflective light detected on the robots screen. Please give two lines of documentation so I will know what is going on.

int L;

task main { while(1) // Loop Forever { L = SensorValue(Light4); // Read the light sensor into L nxtDisplayCenteredBigTextLine(3,"%d",L); } }