Write a Select Case statement that tests the value of the Char variable response and performs the following actions:  if response is y, the message “Your request is being processed” is printed.  if response is n, the message “Thank you anyway for your consideration” is printed.  if response is h, the message “Sorry, no help is currently available is printed.  for any other value of response, the message “Invalid entry; please try again” is printed.

LANGUAGE: Visual Basic

CHALLENGE:  Write a Select Case statement that tests the value of the Char variable response and performs the following actions:  if response is y, the message “Your request is being processed” is printed.  if response is n, the message “Thank you anyway for your consideration” is printed.  if response is h, the message “Sorry, no help is currently available is printed.  for any other value of response, the message “Invalid entry; please try again” is printed.

SOLUTION:



Select Case response
    Case "y"
        System.Console.Writeline("Your request is being processed")
    Case "n"
        System.Console.Writeline("Thank you anyway for your consideration")
    Case "h"
        System.Console.Writeline("Sorry, no help is currently available")
    Case Else
        System.Console.Writeline("Invalid entry; please try again")
End Select