Identify the correct Select Case statement that checks the value of a variable intMyNum and assigns a value using the following guidelines:

value 1 or 7 or 15 add 100 to the variable
value 2 or 9 or 21 add 150 to the variable
value 3 or 6 or 13 add 200 to the variable
none of the above set txtOutput.Text to “Cannot find it”

a. ``` Select Case Value
Case intMyNum = 1 Or 7 or 15
intMyNum += 100
Case intMyNum = 2 Or 9 or 21
intMyNum += 150
Case intMyNum= 3 Or 6 or 13
intMyNum += 200
Case else
txtOutput.Text = “Cannot find it”
End Case
```
b. ``` Select Case intMyNum
Case value = 1, 7, 15
intMyNum += 100
Case value = 2, 9, 21
intMyNum += 150
Case value = 3, 6, 13
intMyNum += 200
Case else
txtOutput.Text = “Cannot find it”
End Case
```
c. ``` Select Case intMyNum
Case 1, 7, 15
intMyNum += 100
Case 2, 9, 21
intMyNum += 150
Case 3, 6, 13
intMyNum += 200
Case else
txtOutput.Text = “Cannot find it”
End Case
```
d. ``` Select Case intMyNum
Case value = 1 Or value = 7 or value = 15
intMyNum += 100
Case value = 2 Or value = 9 or value = 21
intMyNum += 150
Case value = 3 or value = 6 Or value = 13
intMyNum += 200
Case else
txtOutput.Text = “Cannot find it”
End Case
```

c. ``` Select Case intMyNum
Case 1, 7, 15
intMyNum += 100
Case 2, 9, 21
intMyNum += 150
Case 3, 6, 13
intMyNum += 200
Case else
txtOutput.Text = “Cannot find it”
End Case
```

Computer Science & Information Technology

You might also like to view...

When using a getline function, which argument is optional?

A. max characters and delimiter B. delimiter C. starting character D. none are optional

Computer Science & Information Technology

Explain EIGRP.

What will be an ideal response?

Computer Science & Information Technology