Overload the average method of Exercise 5.22 such that if three integers are provided as parameters, the method returns the average of all three.
What will be an ideal response?
```
public double average(int num1, int num2, int num3)
{
return (num1 + num2 + num3) / 3.0;
}
```
Computer Science & Information Technology
You might also like to view...
An array is a very good data structure for storing a sequence whose size does not change.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
By far the most common task dependency is the one marked ____ in the accompanying figure.
A. 1 B. 2 C. 3 D. 4
Computer Science & Information Technology
Who is Apple's cofounder?
A. Bill Gates B. Steve Jobs C. Steve Ballmer D. Larry Ellison
Computer Science & Information Technology
A __________only comes into play if a computer hasn't heard from the router recently and demands a router advertisement.
A. router acknowledgement B. router solicitation C. neighbor solicitation D. neighbor advertisement
Computer Science & Information Technology