Which of the following code examples is a function that will accept three integer parameters, calculate their average, and return the result?

a. ```Function Average(ByVal intX As Integer, ByVal intY As Integer, _
ByVal intZ As Integer) As Single

Average = (intX + intY + intZ) / 3
End Function
```
b. ```Function Average(ByVal intX As Integer, ByVal intY as Integer, _
ByVal intZ As Integer) As Single

Average = intX + intY + intZ / 3
Return Average
End Function
```
c. ```Function Average(ByRef intX As Integer, ByRef intY as Integer, _
ByRef intZ As Integer, ByRef Average As Double)

Average = (intX + intY + intZ) / 3
End Function
```
d. ```Function Average(ByVal intX As Integer, ByVal IntY as Integer, _
ByVal intZ As Integer) As Single

Return (intX + intY + intZ) / 3
End Function
```


d. ```Function Average(ByVal intX As Integer, ByVal IntY as Integer, _
ByVal intZ As Integer) As Single

Return (intX + intY + intZ) / 3
End Function
```

Computer Science & Information Technology

You might also like to view...

What exception type does the following program throw?

``` public class Test { public static void main(String[] args) { int[] list = new int[5]; System.out.println(list[5]); } } ``` a. ArithmeticException b. ArrayIndexOutOfBoundsException c. StringIndexOutOfBoundsException d. ClassCastException e. No exception

Computer Science & Information Technology

You can create subreports using drag-and-drop

Indicate whether the statement is true or false

Computer Science & Information Technology

A predefined merge field is the:

A) Enclosure. B) Salutation. C) Signature Line. D) Address Block.

Computer Science & Information Technology

A person who is hard of hearing can hear frequencies only from the 20Hz to 15KHz range. _______ samples per second would allow for good digitization of those analog sounds

Fill in the blank(s) with correct word

Computer Science & Information Technology