Which of the following program segments is equivalent to the program segment given below?

```
If Pay >= 500 Then
Set TaxRate = 0.3
End If
If (Pay >= 300) AND (Pay < 500) Then
Set TaxRate = 0.2
End If
If (Pay >= 100) AND (Pay < 300) Then
Set TaxRate = 0.1
End If
```
a. ```If Pay > 100 Then
Set TaxRate = 0.1
Else
If Pay > 300 Then
Set TaxRate = 0.2
Else
If Pay > 500 Then
Set TaxRate = 0.3
End If
End If```
b. ```If Pay >= 500 Then
Set TaxRate = 0.3
Else
If Pay >= 300
Set TaxRate = 0.2
Else
If Pay >= 100 Then
Set TaxRate = 0.1
End If
End If
End If```
c. ```If Pay >= 500 Then
Set TaxRate = 0.3
Else
Set TaxRate = 0.2
If Pay > 100 Then
Set TaxRate = 0.1
End If
End If```
d. none of the above are equivalent to the given example

B

Computer Science & Information Technology

You might also like to view...

The format specifier ____ does not include a dollar sign, and negative values are preceded by a minus sign.

A. C or c B. N or n C. F or f D. P or p

Computer Science & Information Technology

Design view shows details about the structure of the object, including the data type and field properties. ____________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology