Solved

What Value Is Assigned to DecTaxes by the Following Program

Question 3

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


A) 20000
B) 15000
C) 10000
D) 5000

Correct Answer:

verifed

Verified

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