If necessary, create a new project named TryThis11 Project, and save it in the Cpp8Chap09 folder. Create

Question:

If necessary, create a new project named TryThis11 Project, and save it in the Cpp8\Chap09 folder. Create a program that displays the average of three integers. The program should pass the three integers to a program-defined function named calcAvg, which should return the result as a double number. Name the formal parameters n1, n2, and n3. Use the following names for the actual arguments: num1, num2, and num3. Assign the function’s return value to a double variable named avg. Enter your C++ instructions into a source file named TryThis11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the average in fixed-point notation with one decimal place. Test the program using the numbers 20, 35, and 67; the average should be 40.7.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: