Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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