Question: ( 1 ) Ask the user to enter 4 numbers, being 4 people's heights. Store the numbers in an array of doubles. Output the array's
Ask the user to enter numbers, being people's heights. Store the numbers in an array of doubles. Output the array's numbers on one line, each number followed by one space. pts
Ex:
Enter height : Enter height: Enter height: Enter height: You entered:
Also output the total height, by summing the array's elements. pt
Also output the average of the array's elements. pt
Also output the max array element. pts
Ex:
Enter height: Enter height: Enter height: Enter height: You entered: Total height: Average height: Max height:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
