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
Get step-by-step solutions from verified subject matter experts
