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:
Verified
Q1: What value is assigned to the variable
Q2: If the Boolean expression A is True
Q4: What value will be assigned to intIndex
Q5: What value will be assigned to intIndex
Q6: Because only one radio button in a
Q7: What is assigned to lblMessage.Text when the
Q8: What value is assigned to the variable
Q9: A flag is a _variable that signals
Q10: To convert a copy of a string
Q11: Suppose you want to verify that the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents