Examlex

Solved

Write the Code for a Function Named CalculateBonus

question 36

Essay

Write the code for a function named CalculateBonus.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 the decSalary and decRate variables.Assign the function's return value to the decBonus variable.


Definitions:

Salary Allowance

A fixed amount or benefit often added to an employee's salary, such as for travel or housing.

Capital Balance

The amount of money that shareholders have contributed to a company plus retained earnings or minus accumulated losses.

Net Income

What a business financially gains in the end, after subtracting expenses and taxes from its initial revenue.

Capital Balances

Capital balances refer to the amount of money that the owners or partners have invested in a business, not including any profits or losses that the business may earn or incur.

Related Questions