What value is assigned to decTaxes by the following program segment, assuming that the user enters 30000 into the textbox txtSalary.Text?
Dim decSalary, decTaxes As Decimal
DecSalary = CDec(txtSalary.Text)
If (decSalary > 50000) Then
DecTaxes = .40 * decSalary
ElseIf (sngSalary > 40000) Then
DecTaxes = .30 * decSalary
ElseIf (sngSalary > 30000) Then
DecTaxes = .20 * decSalary
Else
DecTaxes = .10 * decSalary
End If
A) 12000
B) 9000
C) 6000
D) 3000
Correct Answer:
Verified
Q12: Which function accepts a string as its
Q13: The first character in a string has
Q14: The _keyword is required to use relational
Q15: Suppose you want to determine whether a
Q16: If the Boolean expression A is True
Q18: Which of the following code segments assigns
Q19: Which statement assigns the string strAddress to
Q20: What value will be assigned to intIndex
Q21: Identify the correct Select Case statement that
Q22: The If…Then…Else statement follows only one of
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