information technology multi-part question and need the explanation and answer to help me learn.
need this sent to me in 45 minutes
Requirements: how long it says
COSC 236 Quiz 03 Submission – Through Blackboard only. DO NOT send your submission through email. It will be automatically deleted. – Submit only one .java file. Incorrect submission file type and/or late submissions will result in a 0 (zero) for the quiz. Academic Integrity – The quiz must be done individually without any peer discussion. – Submissions with similar or identical code or structure will be carefully reviewed under the academic integrity guidelines. Any violation will result in an F for the class and a report to the university. Question: In the same program, write Java code for 1. [4pts] A method that takes as input parameters (1) an array of doubles dArr[] and (2) a double value key, and then returns the average of all values in dArr[] that are greater than or equal to key. The function definition should looks like public static _________ findAverageWithKey(double dArr[], double key) { …} For example, with dArr[]=[3.2, 1.7, -2.6, 4.1, 5.7, 2.1] and key=2.5 then the function should return 4.33 which is the average of only [3.2, 4.1, 5.7]. 2. [4pts] A method that takes as input parameters (1) an array of doubles dArr[] and (2) a double value key, and then returns the maximum value in dArr[] that is strictly less than key. The function definition should looks like public static __________ findMaxWithKey(double dArr[], double key) { …} For example, with dArr[]=[3.2, 1.7, -2.6, 4.1, 5.7, 2.1] and key=2.5 the function returns 2.1 as the maximum value that is stricly less than 2.5. 3. [2pts] The main() function to test methods in #1 and #2 and print the results to the output file named outputQ03.txt. This main() function should prompt the user for the array size, the key and prompt the user to fill the array with double values from keyboard, and must handle user input and file output safely. Sample content for output file ouputQ3.txt with the above array (assuming all input and file output are validated) “Average = 4.33 Max = 2.1”