Question: C++ Write a return function with prototype called averageFourTemperatures as part of a complete program that accepts 4 integers in the parameter list, returns the

C++

Write a return function with prototype called averageFourTemperatures as part of a complete program that accepts 4 integers in the parameter list, returns the average.

In the main function prompt the user for 4 temperatures and them in separate appropriately named variables.

Call the averageFourTemperatures, passing values and printing the returned average to the console.

Include test data comment at the end of your program.

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!