(Solved) : 416 People S Weights Java 1 Prompt User Enter Five Numbers Five People S Weights Store Num Q44110537 . . .
need help with this question
4.16 People’s weights (Java) 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) Enter weight l: 236 Enter weight 2: 89.5 Enter weight 3: 142 Enter weight 4: 166.3 Enter weight 5: 93 You ontered: 236,0 19,5 142.0 166,3 93.0 (2) Also output the total weight, by summing the arrays elements. (1 pt) (3) Also output the average of the array’s elements (1 pt) (4) Also output the max array coment. 2 pts) Enter weight 1: 236 Enter weight 2: 3.5 Enter weight 3: 142 Enter weight 4: 166. Enter weight 5: 93 You entered: 236.0 9.5 142.0 166,393.0 Total weight: 726. Average weight: 145.35999999999999 Max weight: 236.0 DOPINYO. 1 import java.util.Scanner; p00WN 3 public class PeopleWeights { public static void main(String[] args) { /* Type your code here. */ return; Show transcribed image text 4.16 People’s weights (Java) 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) Enter weight l: 236 Enter weight 2: 89.5 Enter weight 3: 142 Enter weight 4: 166.3 Enter weight 5: 93 You ontered: 236,0 19,5 142.0 166,3 93.0 (2) Also output the total weight, by summing the arrays elements. (1 pt) (3) Also output the average of the array’s elements (1 pt) (4) Also output the max array coment. 2 pts) Enter weight 1: 236 Enter weight 2: 3.5 Enter weight 3: 142 Enter weight 4: 166. Enter weight 5: 93 You entered: 236.0 9.5 142.0 166,393.0 Total weight: 726. Average weight: 145.35999999999999 Max weight: 236.0
DOPINYO. 1 import java.util.Scanner; p00WN 3 public class PeopleWeights { public static void main(String[] args) { /* Type your code here. */ return;
Expert Answer
Answer to 4.16 People’s weights (Java) 1) Prompt the user to enter five numbers, being five people’s weights Store the numbers in …
OR