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% plan to graduate from college FIGURE 5-89
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
