Question: THIS IS FOR C++ PROGRAMMING: int list[] : (2, 3, 155,7, 11, 13, 17.19. 23, 29 31, 37, 1, 43, 47, 53,59, 61, 67, 71,

THIS IS FOR C++ PROGRAMMING:

 THIS IS FOR C++ PROGRAMMING: int list[] : (2, 3, 155,7,

int list[] : (2, 3, 155,7, 11, 13, 17.19. 23, 29 31, 37, 1, 43, 47, 53,59, 61, 67, 71, 73,79, 83, 89. 97) Write a main function that declares an integer array as shown above Now pass this array to a function that will sum the elements of the array and return the sum to the main function. Print the sum form the main function Now pass the array to a function that will determine the largest value in the array and pass it back to the main function. The main function will print the largest value. Now pass the array to another function that will determine the smallest value in the array and return it to the main function where it will be printed Finally pass the array to a function that will determine the average of the numbers in the array and pass the average back to the main function where it will be printed A sample session is shown below CAcsc 134 gaddis some codel Project20 DebuglProject20.exe The sum of the array is 1170 The largest number in the array is 15!5 The smallest number in the array is 1 The average of the numbers in the array is 46.8 Press any key to continue

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!