Question: C++ Write a C++ definition for a function sum_n_avg that receives three numbers and passes back the sum and the average of the three received
Write a C++ definition for a function sum_n_avg that receives three numbers and passes back the sum and the average of the three received numbers. Assume the following main program. Write the sum_n_avg function call that will compute the sum and average of the three entered numbers so that the program will run correctly. int main () { using namespace std: double one, two, three, sum_of_3, avg_of_3: cout > one > > two > > three: // What function call would go here? cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
