Overload the average method of Exercise 5.22 to accept four integer parameters and return their average.

What will be an ideal response?


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

```

Computer Science & Information Technology

You might also like to view...

A(n) ____________ provides all the necessary tools for creating, testing, and debugging software.

a. super computer b. integrated development environment (IDE) c. operating system d. software development kit (SDK)

Computer Science & Information Technology

Charles was given an illustration containing some steps and he has been asked to modify the work for his friend. Charles knows that when a blend is expanded, ____.

A. the component objects of the blend are automatically ungrouped. B. the component objects of the blend are automatically grouped. C. the component objects of the blend are automatically selected. D. the component objects of the blend are automatically edited.

Computer Science & Information Technology

A ________ determines whether a field contains an acceptable number of characters.

a. f:validateDoubleRange. b. f:validateLength. c. f:validateLongRange. d. None of the above.

Computer Science & Information Technology

A(n) ________ is a note or comment that can be saved or discarded

Fill in the blank(s) with correct word

Computer Science & Information Technology