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
You might also like to view...
When distributing a PowerPoint presentation for distribution, you should save it with a ________ file extension
Fill in the blank(s) with correct word
Data tables make it easy to calculate multiple versions in one operation, and then to view and compare the results of all the different variations
Indicate whether the statement is true or false
Changing a file's extension in Windows makes the file completely unreadable by the operating system
a. True b. False
When exiting the BIOS/UEFI configuration setup, all changes are automatically saved, allowing the system to restart
Indicate whether the statement is true or false