Quiz+4-9

Quiz 4-9:

Write a program (and function) that will call 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.

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 }