1. Create a Java application containing an array that stores 20 double values, such as 2.34, 7.89, 1.34, and so on. The application (MyArray.java) should:
- Display the sum of all the array elements.
- Display the average of all the array elements.
- Display the largest value of all the array elements.
Do not use operator input to set the values in the array. Use a loop to discover the values requested above.
2. Create a JApplet with a JButton labeled "Who's number one?". When the user clicks the button, display your favorite sports team. Save the file as JNumberOne.java.