Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started