Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help writing a program for #1 and #2 in Java! 1. Define a method to: (1) generate an integer array; (2) randomly initialize this
Need help writing a program for #1 and #2 in Java!
1. Define a method to: (1) generate an integer array; (2) randomly initialize this array with numbers in range [100, 200]; (3) return this array from the method. The method is declared as below: public static int / generateArray(int sizeOfArray); 2. Define a method to get the following statistic information from an integer array: (1) maximum element (2) minimum element; (3) average value of the input array. Return these 3 numbers. The method is declared as below: public static double [] getStatisticInfoOfArray(int / myArray)
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