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 16RQ
Program Description Answer

The statement decDiscount = GetDiscount(decSales, decRate) is used to invoke the function by passing the decSales and dexRate decimal variables and assign the function’s return value into the decDiscount variable.

Hence, the correct answer is option “C”.

Blurred answer
Students have asked these similar questions
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.
Which of the following statements invokes the GetGross function and assigns its return value to the decGrossPay variable? The statement passes the contents of two Decimal variables to the function.a. decGrossPay = Call GetGross(decHours, decRate)b. Call GetGross(decHours, decRate, decGrossPay)c. decGrossPay = GetGross(decHours, decRate)d. decGrossPay = GetGross(ByVal decHours, ByVal decRate)
Which statement will send the value generated by a function procedure, called CalculateTax, back to the calling code? Select one: a. Both a and b b. CalculateTax = Sales*0.08 c. Return Sales*0.08 d. Return CalculateTax (Sales*0.08)
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
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L