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...
Which field is used in the 802.1Q header to mark a specific QoS value?
A) Type B) CoS C) DSCP D) ToS
Computer Science & Information Technology
Where do you need to put a picture file that will be used with an ImageView control?
A. pictures folder B. resources folder C. controls folder D. drawable folder
Computer Science & Information Technology