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