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)
Computer Science & Information Technology
You might also like to view...
How are files in the Documents folder accessible when you are on your OneDrive?
A) Off the Internet B) Through your email address C) My documents window D) File Explorer window in Windows 8.1
Computer Science & Information Technology
When implementing a RAID array, if one hard disk drive capacity is larger than the others, the additional capacity will be used
Indicate whether the statement is true or false
Computer Science & Information Technology