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:

Descriptive Statistic

A brief summary statistic that quantitatively describes or summarizes features from a collection of information.

Data Set

A collection of data, often presented in tabular form, where each row represents a different individual or entity and each column represents a particular variable or attribute.

Population Subset

A smaller group selected from a larger population, used in statistical analysis to draw conclusions or make inferences about the greater population.

Inferential Statistics

A branch of statistics that allows us to make predictions or inferences about a population based on a sample of data.

Related Questions