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
You might also like to view...
The default setting is to start each animation with a mouse click.
Answer the following statement true (T) or false (F)
What versions of Windows 8.1 are valid in-place upgrade paths for a computer that has Windows 7 Starter edition on it? (Choose all that apply.)
A. Windows 8.1 B. Windows 8.1 Pro C. Windows 8.1 Enterprise D. Windows 8.1 Ultimate
Which algorithm is used to solve the halting problem?
a. None b. Prim's algorithm c. Dijkstra's algorithm d. Ford-Fulkerson algorithm
You can import data from an Excel workbook into Access by copying the data from an open worksheet and pasting it into a new table, appending a copy of records to an existing table, or linking to the Excel worksheet
Indicate whether the statement is true or false