Question

17. 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 Else decTaxes= .10 * decSalary End If а. 20000 b. 15000 с. 10000 d. 5000 decTaxes = .20 * decSalary

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9

Fig: 10

Fig: 11

Fig: 12

Fig: 13