Define a function named average that returns as its value the average of its two type double input parameters.

What will be an ideal response?

```
double
average(double n1, double n2)
{
return ((n1 + n2) / 2.0);
}
]
```

Computer Science & Information Technology

You might also like to view...

Which of the following is FALSE about headers and footers in Word 2010?

A) A document may display a header but not a footer as well as vice versa. B) When you edit header or footer text, it is automatically changed on all pages. C) They can contain fields. D) A document cannot display both a header and footer.

Computer Science & Information Technology

A worksheet is a file containing at least one workbook

Indicate whether the statement is true or false

Computer Science & Information Technology