Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP ME FIX THIS PROBLEM IN JAVA (1) Prompt the user to enter five numbers, being five people's weights. Store the numbers in an

image text in transcribedimage text in transcribedimage text in transcribed

PLEASE HELP ME FIX THIS PROBLEM IN 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) Ex: Enter weight l: 236.0 Enter weight 2 : 89.5 Enter weight 3 : 142.0 Enter weight 4: 166.3 Enter weight 5 : 93.0 You entored: 236.089.5142.0166.393.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 l: 236.0 Enter weight 2: 89.5 Enter weight 3 : 142.0 Enter weight 4 : 166.3 Enter weight 5 : 93.0 You entered: 236.089.5142.0166.393.0 \begin{tabular}{l|l} LAB & 7.13.1: Ch 5 Warm up: People's weights (Java) \\ ACTVITY & \end{tabular} PeopleWeic When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading. ading trail of your werk 12/22RO0,0S0,0min:3 Latest submission - 4:24 PM CST on 12/24/22 Total score: 0/6 Failed to compile Peopleneights.java:2: error: class Main is public, should be declared in a file named Main.j public class Main 1 error

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 11th British National Conference On Databases Bncod 11 Keele Uk July 7 9 1993 Proceedings Lncs 696

Authors: Michael F. Worboys ,Anna F. Grundy

1993rd Edition

3540569219, 978-3540569213

More Books

Students also viewed these Databases questions

Question

Why are projects identifi ed?

Answered: 1 week ago