Question: Write C++ code for each of the following: a) Write a function call average that will accept an array of type double. It should take

 Write C++ code for each of the following: a) Write a

Write C++ code for each of the following: a) Write a function call average that will accept an array of type double. It should take the average of all the numbers in the array and return the average to the calling program. Be sure to include all needed parameters. Write a function call to call the function average. Declare any needed variables. Write a loop that will ask the user for all the values in the array before calling the function. b) c) Write a prototype for the function written in part a

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!