Computers and Technology

Warm up: People's weights (Java) A brief note from your instructor: 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 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 ACTIVITY 7.5.1: Warm up: People's weights (Java) 0/6 PeopleWeights java default t 1 import java. util. Scanner 3 public class Peopleweights [ 4 public static void main(Stringl] args) [ Type your code here. " 18 returng 12 When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading Develop mode Submit mode

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:00, ziahziah
Which function key is used to enable the spelling & grammar function in a word processing program such as microsoft word?
Answers: 3
image
Computers and Technology, 22.06.2019 02:10, breanastone14
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, ansonhunter8891
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
Do you know the correct answer?
Warm up: People's weights (Java) A brief note from your instructor: While you will be submitting thi...

Questions in other subjects: