Write the code for a Sub procedure namedCalculateAveragethat receives four decimal variables (the first three by value and the last one by reference). The procedure should use the first three variables to calculate the average and then store the result in the fourth variable.
What will be an ideal response?
Private Sub CalculateAverage(ByVal decNum1 As Decimal,
ByVal decNum2 As Decimal,
ByVal decNum3 As Decimal,
ByRef decNum4 As Decimal)
decNum4 = (decNum1 + decNum2 + decNum3) / 3
End Sub
Computer Science & Information Technology
You might also like to view...
The first statement in every paintComponent method should be a call to ________.
a. super b. super.paintComponent c. clear d. update
Computer Science & Information Technology
Describe the physical structure of a database.
What will be an ideal response?
Computer Science & Information Technology