200k views
0 votes
An application calculates an ending inventory amount based on a beginning inventory amount, sales, and returns. You need to create a function to calculate the ending inventory using three passed Integer variables: intBegin, intSales, and intReturns. Which procedure headers should be used?

User Texh
by
5.5k points

1 Answer

1 vote

Answer:

Private Function CalculateInventory(ByVal intBegin As Integer, ByVal intSales As Integer, ByVal intReturns As Integer) As Integer

Step-by-step explanation:

In Visual Basic Programming language a function header begins with the access modifier, in this case private, this is followed by the keyword function then the name of the function in this case CalculateInventory. We specify that the function will take three parameters as stated in the question and the function will return an Integer value. When this function is called, the three parameters will have to passed to it as arguments.

User Narendra Kothule
by
5.8k points