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...

Provide the class with a glossary of the most important project management terms and definitions.

What will be an ideal response?

Computer Science & Information Technology

Which of the following are the three categories of fire suppression systems?

A) Wet pipe, dry pipe, and pre-action B) Wet fire, dry fire, and pre-action C) Flammable fire, electrical fire, and wood fire D) Wet fire,dry fire, and electrical fire

Computer Science & Information Technology

A ________ consists of one or more lines at the bottom of each page.

A. header B. endnote C. footnote D. footer

Computer Science & Information Technology

Which is the most common type of relationship in Access, a relationship between two tables where one record in the first table corresponds to many records in the second table

a. one-to-many relationship b. many-to-one relationship c. many-to-many relationship d. one-to-one relationship

Computer Science & Information Technology