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


d. 3000

Computer Science & Information Technology

You might also like to view...

If you use the ____ icon to set an alarm for a reminder, Outlook also plays the sound when it displays the Task window for the reminder.

A. Alarm B. Urgent C. Sound D. Audio

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 2-2Life Decisions Cyber Cafe is a cafe with free Internet service and computers that are linked to various online career opportunities. They have set up their computers to display their Web site to help users have a starting point. The owner thinks he may load some interview techniques videos on the Web site for customers to download and view. What should he include when linking to them?

A. size info B. type of video C. tips for viewing D. all the above

Computer Science & Information Technology

Again, consider the list of states. Which state in the list is the "hardest" to find using binary search? That is, which state would require the largest number of checks to be located? Generalize your answer so that it applies to any sorted list of items.

What will be an ideal response?

Computer Science & Information Technology

What is the output of the following code?

``` int[] numbers = new int[10]; for(int i=0; i < numbers.length; ++i) numbers[i] = i * 2; for(int i=0; i < numbers.length; ++i) System.out.print(numbers[i] / 2 + " "); System.out.println(); ```

Computer Science & Information Technology