Question: Can someone fix the code, and write which line and what the mistake was, there should be 4 syntax and 3 logic errors, as well
Can someone fix the code, and write which line and what the mistake was, there should be 4 syntax and 3 logic errors, as well as then rewrite the code and state what the line of code does in the comments on the side


HW2_CodingConcepts UPGRADE PLAN :::L Please type your responses to the questions below by editing this file, no hand-written responses. All content should be individual work - plagiarism will not be tolerated. Question 1 (10 points) The code file linked below is meant to find the min and max of 10,000 values read from the accelerometer. However, there are a few bugs in the steady state function ( 7 to be exact: 4 syntax errors, and 3 logic errors). Link to Code Part a: Locate the 7 unique bugs within the steady state function and indicate the line number, and a brief explanation of the bug. For example: "Line 25 - if statement missing parentheses". HINT: Syntax errors can often be caught by the compiler > "verify" this code in the Arduino IDE to see the errors it finds. Part b: Rewrite the steady state function to fix all the bugs that you found. Thoroughly comment each line of code to explain what it does. NOTE: You do not need to rewrite the initialization, setup, or loop sections. Insert a clear, high quality screenshot of your revised code for the steady state function here (no need to include the initialization, setup, or loop)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
