Question: CODE: public class Arrays { public static void main(String[] args) { double value = 0.0; double sum = 0.0; double average = 0.0; int countValues

CODE: public class Arrays { public static void main(String[] args) { doubleCODE:

public class Arrays

{

public static void main(String[] args)

{

double value = 0.0;

double sum = 0.0;

double average = 0.0;

int countValues = 0;

//Declare an array called myExams that keeps track of exam scores for 10 students.

//Each student has 3 quiz scores.

double[][] myExams = new double[10][3];

//load the array with the values 0 - 29, in order

value = 0;

// display all the components of the array

System.out.println("Display the array ");

// add up all the element values in the array

sum = 0.0;

System.out.println("The sum of the array: " + sum);

// challenge : calculate the average

System.out.println(" Challenge: Calculate the average ");

System.out.println("The average is :" + average);

System.out.println(" Challenge: Count how many values that are greater than 22: ");

countValues = 0;

System.out.println("Number of values greater than 22: " + countValues);

}

}

An array called myExams keeps track of quiz scores for 10 students. Each student has 3 quiz scores. The array in this activity could be represented like this: Columns O] [ 12 Please complete the assignment Complete as directed by the comments in the file. 12] [3] 14] 15] Rows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!