Question: Question 3 . 2 Complete this code so that it calculates the average of the 7 numbers passed via the array valuesArray: public class Q
Question
Complete this code so that it calculates the average of the numbers passed via the array valuesArray:
public class QAverageDemo
public static void mainString args
double valuesArray;
valuesArray new double ;
System.out.printlnThe average is: calculateAveragevaluesArray;
method that calculates the average of the numbers in an array
public static double calculateAveragedouble values
double result;
your code here
return result;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
