Question: Write a C++ program that includes a void function called find_average that takes an integer array of size 5 as a parameter and calculates

Write a C++ program that includes a void function called "find_average" that 

Write a C++ program that includes a void function called "find_average" that takes an integer array of size 5 as a parameter and calculates the average of the elements in the array. In the "main" function, declare an integer array of size 5 and initialize it with arbitrary values. Call the "find_average" function with the integer array as a parameter, and then print out the average to the console.

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 Programming Questions!