Question: 5 . Write an If . . . Then statement that sets the variable intFees to 5 0 when the Boolean variable blnisMax equals True.

5. Write an If... Then statement that sets the variable intFees to 50 when the Boolean variable blnisMax equals True. Programming Challenges 3016. Write an If...Then... El se statement that assigns 1 to intx when inty is equal to 100. Otherwise it should assign 0 to intx. 7. The string variable strPeople contains a list of names, such as Bill Jim Susan Randy Wilma and so on. Write code that searches people for Gene. If Gene is found in strPeople, display a message in a Label control indicating that Gene was found. 8. Write an If... Then statement that prints the message The number is valid if the variable sngSpeed is within the range 0 through 200.9. Write an If...Then statement that prints the message The number is not valid if the variable sngSpeed is outside the range through 200.10. Convert the following If. Then...ElseIf statement into a Select Case statement. If intSelection -1 Then 161 Status.Text ="P1 times radius squared" ElseIf intSelection -2 Then 1b1Status.Text = "Length times width" ElseIf intSelection =3 Then 1b1Status.Text ="Pi times radius squared times height" ElseIf intSelection =4 Then TbiStatus.Text = "Well, okay then, good bye!" Else 1b1Status.Text = "Your selection was not recognized" End If

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!