Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Expert Solution & Answer
Book Icon
Chapter 6, Problem 14RQ
Program Description Answer

The procedure header, Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intFinal As Integer) is correct.

Hence, the correct answer is option “A”.

Blurred answer
Students have asked these similar questions
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)
The CalcEnd procedure is passed four Integer variables named intBegin, intSales, intPurchases, and intEnding. The procedure should calculate the ending inventory using the beginning inventory, sales, and purchase amounts passed to the procedure. The result should be stored in the intEnding variable. Which of the following procedure headers is correct?a. Private Sub CalcEnd(ByVal intB As Integer,    ByVal intS As Integer, ByVal intP As Integer,     ByRef intFinal As Integer)b. Private Sub CalcEnd(ByVal intB As Integer,    ByVal intS As Integer, ByVal intP As Integer,     ByVal intFinal As Integer)c. Private Sub CalcEnd(ByRef intB As Integer,    ByRef intS As Integer, ByRef intP As Integer,     ByVal intFinal As Integer)d. Private Sub CalcEnd(ByRef intB As Integer,    ByRef intS As Integer, ByRef intP As Integer,     ByRef intFinal As Integer)
Which of the following statements declares a procedure-level variable that is removed from the computer’s memory when the procedure ends? a. Const intCounter As Integer b. Dim intCounter As Integer c. Local intCounter As Integer d. Static intCounter As Integer
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT