A Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginninginventory, number sold, and number purchased. The procedure should use these values to calculate the ending inventory , and then store the result in the fourthvariable. Which of the following procedure headers is correct? a. Private Sub

Chapter 6, Review Questions #14

A Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginning
inventory, number sold, and number purchased. The procedure should use these values to calculate the ending inventory, and then store the result in the fourth
variable. Which of the following procedure headers is correct? 

a. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intFinal As Integer)
b. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByVal intFinal As Integer)
c. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByVal intFinal As Integer)
d. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByRef intFinal As Integer)

Ending Inventory
The ending inventory is the amount of inventory that a business is required to present on its balance sheet. It can be calculated using the ending inventory formula                Ending Inventory Formula =...

This problem has been solved!


Do you need an answer to a question different from the above? Ask your question!
Related Book For answer-question

Programming with Microsoft Visual Basic 2017

8th edition

Authors: Diane Zak

ISBN: 978-1337102124