Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statementshould assign the functions return value to the decDiscount variable. a. decDiscount = GetDiscount(ByVal decSales, ByVal decRate)b. GetDiscount(decSales, decRate, decDiscount)c. decDiscount = GetDiscount(decSales, decRate)d. None of the above.

Chapter 6, Review Questions #16

Which of the following statements invokes the GetDiscount function, passing it the contents of two Decimal variables named decSales and decRate? The statement
should assign the function’s return value to the decDiscount variable. 

a. decDiscount = GetDiscount(ByVal decSales, ByVal decRate)
b. GetDiscount(decSales, decRate, decDiscount)
c. decDiscount = GetDiscount(decSales, decRate)
d. None of the above.

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