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...

Until you save a new document in permanent storage, it will be stored in the computer's ________

A) RAM B) USB flash drive C) online storage D) hard drive

Computer Science & Information Technology

The best conflict resolution method is ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A Type _____ fire extinguisher can put out most fires

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can press ____ to deselect a selection.

a. Shift+Ctrl+R b. Ctrl+R c. Shift+Ctrl+D d. Ctrl+D

Computer Science & Information Technology