Write an If . . . Then . . . Else statement that checks the value in

Question:

Write an If . . . Then . . . Else statement that checks the value in the variable chrGender for the value M (Male) or \(\mathrm{F}\) (Female) and assigns the information shown in Figure 5-89 to lblCollegeExpectation.Text based on the gender. If the variable chrGender contains a value other than \(\mathrm{M}\) or \(\mathrm{F}\), assign the message "Invalid Gender" to lblCollegeExpectation.Text.image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: