Examlex

Solved

What Value Is Assigned to DecTaxes by the Following Program

question 35

Multiple Choice

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


Definitions:

Punishment

A process in behavioral psychology intended to reduce undesired behaviors by applying negative consequences.

Conditioned Stimulus

A neutral stimulus that, through its connection with an unconditioned stimulus, eventually induces a conditioned response.

Loud Noise

A type of environmental stimulus characterized by high amplitude sound waves, which can potentially cause hearing damage or stress.

Unconditioned Response

Is an automatic, natural reaction to a stimulus that occurs without prior conditioning or learning, such as salivating in response to food.

Related Questions