Question: Write an If . . . Then . . . Else statement that checks the value in the variable chrGender for the value M (Male)

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.Gender Male Female College Expectation 75% plan to graduate from college 85%

Gender Male Female College Expectation 75% plan to graduate from college 85% plan to graduate from college FIGURE 5-89

Step by Step Solution

3.43 Rating (156 Votes )

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 Microsoft Visual Basic Questions!