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)

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

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)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data Binding
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT