Question: Please write this code in eclipse according to outputs. Question 3 You are asked to write a Java program that reads the capacity of a
Please write this code in eclipse according to outputs.
Question 3 You are asked to write a Java program that reads the capacity of a double array from the user and print the maximum element and its location on the screen. Sample Outputs: Please enter the capacity of the array: 4 Please enter the element 1: 2,3 Please enter the element 2: 6 Please enter the element 3: 1 Please enter the element 4: 9,7 The maximum value of the array is: 9.7 It is the element 4 Please enter the capacity of the array: 6 Please enter the element 1: 6,4 Please enter the element 2: 2 Please enter the element 3: 1 Please enter the element 4: 5 Please enter the element 5: 3 Please enter the element 6: 6,4 The maximum value of the array is: 6.4 It is the element 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
