Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedCODE:

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

=+1. What is discipline?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago