(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.0 enter weight 2: 89.5 enter weight 3: 142.0 enter weight 4: 166.3 enter weight 5: 93.0 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.0 enter weight 2: 89.5 enter weight 3: 142.0 enter weight 4: 166.3 enter weight 5: 93.0 you entered: 236.0 89.5 142.0 166.3 93.0 total weight: 726.8 average weight: 145.35999999999999 max weight: 236.0
Get the answer
Category: science |
Author: Sarah Aksinia
Related Questions
(1) record the investment in sub. (2) prepare a value analysis schedul

(1) response to stimuli: does the entity sense and respond to environm

(1) saad had a box that is 15cm by 20cm by 22cm. what is the volume of

Category
mechanicalengineering
(1) sandra cisneros's "mericans" is about a young american girl of mexican descent who is struggling to find her own cultural identity (2) cisneros il
computerinformation
(1) select one of the following topic sentences. (2) list your ideas. (3) write one original paragraph using either examples, reasons, an incident, c
geography
(1) sir henry and i held out our hands to it, for we were numb from our long drive. (2) in the great old-fashioned fireplace behind the high iron dogs