Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started