Unlimited tries. Given an int variable k, an int array incompletes that has been declared and initialized, an int variab
Posted: Tue May 24, 2022 8:22 am
Unlimited tries. Given an int variable k, an int array incompletes that has been declared and initialized, an int variable student ID that has been initialized, and an int variable numberOfIncompletes, write code that counts the number of times the value of student ID appears in incompletes and assigns this value to numberOfIncompletes. You may use only k, incompletes, student ID, and number of Incompletes. 1- for (k = 0; k < incompletes; k++) { 2- if (student ID incompletes [k]) { numberOfIncompletes++; 3 4 }//if 5} Code Analysis: Compiler Error(s) Remarks and hints Compiler error messages • You almost certainly should be using: . (period)