Write the code for a Sub procedure namedCalculateBonus. The procedure receives three decimal variables representing the salary, bonus rate, and bonus amount. The procedure should calculate the bonus amount by multiplying the salary by the bonus rate. Create your own variable names.

What will be an ideal response?

Private Sub CalculateBonus(ByVal decSalary As Decimal,
ByVal decBonusRate As Decimal,
ByRef decBonusAmount As Decimal)
decBonusAmount = decSalary * decBonusRate
End Sub

Computer Science & Information Technology

You might also like to view...

Values displayed in red are negative numbers

Indicate whether the statement is true or false.

Computer Science & Information Technology

Which of the following wireless networking standards operates at the SHORTEST distance?

A. 802.11a B. 802.11b C. 802.11g D. 802.11n

Computer Science & Information Technology