Question: Write a C++ program to perform the following: -Read 10 integer values from the keyboard. Call a function named sum to compute and display the

Write a C++ program to perform the following:

-Read 10 integer values from the keyboard.

Call a function named sum to compute and display the sum of the entered values. Pass the values read from the keyboard and the number of these values to the function as parameters. The function should return the sum computed.

Call a function named average to compute and display the average of these values. Pass the sum and the number of values entered to the function as parameters.

The program should use an array to store the values entered at the keyboard and pass and return values to and from the functions.

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!