Quiz+4-10

Quiz 4-10:

Let's try this one again, just write the function "ShowMeTheLight" which will display the reading of a light sensor called "Light4" on line 2 of the NXT display. Please declare any variables needed and give at least two lines of comments. Write only the function, so that means you will not have a task main. :)

 int L;

void ShowMeTheLight { L = SensorValue(Light4); L contains the reading from the light sensor nxtDisplayCenteredBigTextLine(2,"%d",L); the value of the light sensor is displayed on the NXT display }