Question: Rewrite the code from Exercise 5 using the Select Case statement. Data From Exercise 5 Write the Visual Basic code that displays the message Use

Rewrite the code from Exercise 5 using the Select Case statement.


Data From Exercise 5

Write the Visual Basic code that displays the message “Use the Kanton room” when the number of seminar participants is at least 75. When the number is 40 through 74, display the message “Use the Harris room”. When the number is 10 through 39, display the message “Use the small conference room”. When the number is less than 10, display the message “Cancel the seminar”. The number of participants is stored in the intParticipants variable. Display the appropriate message in the lblMsg control. Code the multiple-alternative selection structure using the If...Then...Else statement.

Step by Step Solution

3.52 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Select Case intParticipants Case Is 75 lblMsgText Use t... View full answer

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