Question: Write a Java class, XXX_Lab75, where XXX is your Kean email ID. The class will do the following: 1) Consist of two methods: a. main

Write a Java class, XXX_Lab75, where XXX is your Kean email ID. The class will do the following: 1) Consist of two methods: a. main b. printHigher ThanAverage public static void printHigherAverage(double [] numbers, double avg) The method will print all the numbers in the array, numbers, which are higher than the average. 2) In the main methods, create an Array which can contain 5 elements of type double 3) In a loop a. Ask the user for 5 values using a Scanner. b. Store the values in the array C. Sum the values 4) At the end of the loop: a. Calculate the average. b. Call the method printHigherAverage and pass it the array and the average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
