Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago