Question: I need this expected output. Here is the code that I have at the moment not sure what I have to change to get the
I need this expected output.
Here is the code that I have at the moment not sure what I have to change to get the correct output.
Input 236 89.5 142 166.3 93 Enter weight 1: 236.0 Enter weight 2: 89.5 Enter weight 3: 142.0 Enter weight 4: 166.3 Enter weight 5: 93.0 Your output starts with You entered: 236.0 89.5 142.0 166.3 93.04 Total weight: 726.8 Enter weight 1: Enter weight 2: Enter weight 3: Enter weight 4: Enter weight 5: Expected output starts with You entered: 236.0 89.5 142.0 166.3 93.0 PeopleWeights.java Load default template... 4 5 6 3 public class Peopleweights { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); 7 8 double []arr- new double[5]; 9 12 for(int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
