Write the code for a function namedCalculateBonus. The function receives two decimal variables representing the salary and bonus rate. The function should calculate the bonus amount by multiplying the salary by the bonus rate, and then return the result. Then write the appropriate statement to invoke the function, passing it thedecSalaryanddecRatevariables. Assign the function's return value to thedecBonusvariable.
What will be an ideal response?
Private Function CalculateBonus(ByVal decSalary As Decimal,
ByVal decRate As Decimal) As Decimal
Return decSalary * decRate
End Function
decBonus = CalculateBonus(decEarnings, decBonusRate)
You might also like to view...
Objects in a blend cannot be selected until you ____ them.
A. expand B. ungroup C. group D. deselect
In Coda, servers that store the same volume are known as __________.
a) an available volume storage group (AVSG) b) a volume storage group (VSG) c) preferred servers (PS) d) a virtual file system (VFS)
Printer speed is measured in:
A. PPM B. DPI C. MB D. MHz
In a laser printer, which of the following components uses heat to apply the toner onto the page?
A. Fuser assembly B. Pickup roller C. Transfer roller D. Imaging drum