Question: Write a function with the following prototype : double findAverage(double[], int) ;. This method should accept an array of doubles and return the average. Write
- Write a function with the following prototype : double findAverage(double[], int);.
- This method should accept an array of doubles and return the average.
- Write a function with the following prototype: void printOutArray(double[] int);
- This method should print out an array of doubles of any size in columns of 5.
- In your main method, create 3 double arrays of different sizes (at least 10 or larger).
- Fill all three arrays with random numbers.
- Use : C++ Random Numbers
- Then find the average of all three arrays, showing that your method works
- Print out the array using your 2nd method. then print out the average of that array.
- Fill all three arrays with random numbers.
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
