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

b. 15000

Computer Science & Information Technology

You might also like to view...

The tabs in Windows Media Player that enable you to play, organize, rip, burn, or synchronize your multimedia files are contained in the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

If someone is ________, they are using an email message or a website to trick you into revealing your personal or financial information

A) trolling B) surfing C) phishing D) spamming

Computer Science & Information Technology