Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

stakeup Problem 4 |1S points] Answer the questioms, comsidering the program belo

ID: 3349546 • Letter: S

Question

stakeup Problem 4 |1S points] Answer the questioms, comsidering the program below. Single sentence answers please. 2 Serial begin(9600) 5 void loopo 1 void setupo int sensorValue analogReadiA0) int outputValue map(sensorValue, 0, 1023, 0, 255) 10 Serial. print"sensor 11 Serial printi sensorValue): 2 Serial printre output 13 Serial printin(outputValue) 14 delay(2) 15 I. What is the purpose of 9600 in Line 2? II. What does A0 in Line 6 refer to? I. What is the effect of 't in Line 121? IV. How would you modify the program if Serial printin (Line 13) was not available and you still wanted the same result? V. What does this program do when uploaded to our Arduine? Page 5 of 6

Explanation / Answer

I. 9600 is the baud rate of serial transmission. 9600 bits/sec is the baud rate.

II. A0 is the analog input pin on which data is read using analogRead function

III. Print a tab character to move to next column

IV. Change line 12 to Serial.print(" output = %d , outputValue");