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

C++  C++ Write a C++ definition for a function sum_n_avg that receives

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

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!