Write a method called average that accepts two integer parameters and returns their average as a floating point value.

What will be an ideal response?


```
public double average(int num1, int num2)
{
return (num1 + num2) / 2.0;
}

```

Computer Science & Information Technology

You might also like to view...

The Insert Hyperlink dialog box can be used to change the text of a ScreenTip

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ is a collection of format settings based on the currently selected theme to provide a consistent appearance within a worksheet and among similar workbooks

Fill in the blank(s) with correct word

Computer Science & Information Technology

How do you add items to a dictionary?

A. add method B. [ ] operator C. { } operator D. insert method

Computer Science & Information Technology

Excel data can be shared by ____________________ your pages to a web server.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology