(Solved) : Question 1 0 5 Pts Given Array Primitive Integers Named Grades Fill Blank Complete Followi Q43964793 . . .


Java code
Question 1 0/5 pts Given an array of primitive integers named ‘grades, fill in the blank to complete the following code that calculates the average of all the grades: double average = 0; average += grades[i]; average /= grades.length; Use proper spacing per the course style guide. Do not include additional spaces at the beginning or end. for (int i =0;i<grades.length; i++) 0/5 pts Question 2 $ 0/5 pts Given a partially filled array of primitive integers named ‘grades’ and an integer variable named ‘count that holds the number of usable values in the array, fill in the blank to complete the following code that removes the element at index 2, moving all other usable values down. for grades[i] = grades[i count–; Use proper spacing per the course style guide. Do not include additional spaces at the beginning or end. for(i = 2; i < count-1; i++) Show transcribed image text Question 1 0/5 pts Given an array of primitive integers named ‘grades, fill in the blank to complete the following code that calculates the average of all the grades: double average = 0; average += grades[i]; average /= grades.length; Use proper spacing per the course style guide. Do not include additional spaces at the beginning or end. for (int i =0;i
Expert Answer
Answer to Question 1 0/5 pts Given an array of primitive integers named ‘grades, fill in the blank to complete the following code …
OR