Examlex

Solved

The Following Sample of Code Contains Errors

question 54

Essay

The following sample of code contains errors. Rewrite the incorrect statements to correct all errors.
-' calculate and return the miles per gallon
Private Function GetMPG(ByVal dblMiles,
ByVal dblGallons)As Double
Return dblMPG = dblMiles / dblGallons
End Sub
' call the function to calculate miles per gallon
' pass variables for the calculation
intMPG = GetMPG()


Definitions:

Indirect Method

A method of calculating cash flows from operating activities in the cash flow statement by adjusting net income for changes in balance sheet items.

Related Questions