Examlex

Solved

What Value Is Assigned to DecTaxes by the Following Program

question 5

Multiple Choice

What value is assigned to decTaxes by the following program segment, assuming that the user enters 30000 into the textbox txtSalary.Text?
Dim decSalary, decTaxes As Decimal
DecSalary = CDec(txtSalary.Text)
If (decSalary > 50000) Then
DecTaxes = .40 * decSalary
ElseIf (sngSalary > 40000) Then
DecTaxes = .30 * decSalary
ElseIf (sngSalary > 30000) Then
DecTaxes = .20 * decSalary
Else
DecTaxes = .10 * decSalary
End If


Definitions:

Total Surplus

The sum of consumer surplus and producer surplus, representing the total benefit to society from the production and consumption of goods and services.

Transplant Organs

Organs removed from one body and placed in another's body for the purpose of replacing a missing or defective organ.

Market

An economic system where goods and services are freely exchanged between buyers and sellers under competitive conditions.

Efficiency

The state or quality of being able to achieve maximum productivity with minimum waste or expense.

Related Questions