JAVA PLEASE HELP POST ONLY THE CORRECT CODE. ALSO ATTACHED IS THE ERROR I KEEP RECEIVING

7.5 Warm up: People's weights (Java) Instructor note: While you will be submitting this assignment through Zybooks, make sure you are still applying appropriate formatting and in-line commenting (1) Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's numbers on one line, each number followed by one space. (2 pts) Ex: Enter weight 1 236 Enter weight 2: 89.5 Enter weight 3: 142 Enter weight 4: 166.3 Enter weight 5 93 You entered: 236.0 89.5 142.0 166.3 93.0 (2) Also output the total weight, by summing the array's elements. (1 pt) (3) Also output the average of the array's elements. (1 pt) (4) Also output the max array element. (2 pts) Ex Enter weight 1 236 Enter weight 2: 89.5 nter weight 3.142 Ex: Enter weight 1 236 Enter weight 2: 89.5 Enter weight 3: 142 Enter weight 4 166.3 Enter weight 5: 93 You entered: 236.0 89.5 142.0 166.3 93.0 Total weight: 726.8 Average weight: 145.35999999999999 Max weight: 236.0 LAB 7.5.1: Warm up: People's weights (Java) 0/6 ACTIVITY PeopleWeights.java Load default template.. 1 import java.util.Scanner; 7 3 public class PeopleWeights 4 f public static void main(String] args) 5 6 7 //variables double weight int i; 8 0, avgWeight, max; sum 10 11 //Creating object of Scanner class for standard input Scanner stdin – new Scanner(System.in); 12 13 //ALlocating memory for array to store the 5 elements weight new double [5]; 14 15 16 /reading data 17 When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading Develop mode Submit mode Develop mode Submit mode submit your program for auto-grading. Submit for grading Total score: 0/6 Latest submission – 6:57 PM on 06/12/19 Only show failing tests Download this submission 0/1 1: Compare output Special character legend Output differs. See highlights below. 236 89.5 142 Input 166.3 93 Enter weight 1 Enter weight 2: Enter weight 3: Enter weight 4: Enter Your output starts You entered: 236.0 89.5 142.0 166.3 93.0 with Total Enter weight 1: Enter weight 2 Enter weight 3: Expected output Enter weight 4 starts with Enter weight 5: You entered: 236.0 89.5 142.0 166.3 93.0 0/1 2: Compare output

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now