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)
{
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] RowsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started