The illustration shows some lines of code numbered 1 through 32. The code segment with annotation is as follows:
"//Illustrates overloading the function name ave.
#include <iostream>"
"double ave(double n1, double n2);
//Returns the average of the two numbers n1 and n2.
double ave(double n1, double n2, double n3);
//Returns the average of the three numbers n1, n2, and n3.
int main( )
{
using namespace std;
cout << "The average of 2.0, 2.5, and 3.0 is "
<< ave(2.0, 2.5, 3.0) << endl;
cout << "The average of 4.5 and 5.5 is "
<< ave(4.5, 5.5) << endl;
return 0;
}"
"double ave(double n1, double n2) " annotated as "two arguments."
"{
return ((n1 + n2)/2.0);
}"
"double ave(double n1, double n2, double n3)" annotated as "three arguments."
" {
return ((n1 + n2 + n3)/3.0);
}"