Question: Part 1: Write a program that stores eight doubles in an array. You can allow the user to enter the numbers from the keyboard or

Part 1:

Write a program that stores eight doubles in an array. You can allow the user to enter the numbers from the keyboard or you can initialize the array with eight doubles. Your program should then display:

each number on one line (to one decimal place of accuracy)

for example: 2 19.4 -11.2 7.3 . . .

each number on one line in reverse order (again, to one decimal place)

the sum of the numbers

the average of the numbers

each number that is higher than the calculated average value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!