Solved

What Value Is Assigned to DecTaxes by the Following Program

Question 17

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


A) 12000
B) 9000
C) 6000
D) 3000

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents