Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the responses shown in the parentheses, determine the output displayed in the text box when the button is clicked on. (8.5, 17)

For each of the responses shown in the parentheses, determine the output displayed in the text box when the button is clicked on.

(8.5, 17)

Private Sub btnDisplay_Click(...) Handles btnDisplay.Click

Dim num As Double

num = CDbl(InputBox("Enter a number from 5 to 12"))

Select Case num

Case 5

txtOutput.Text = "case 1"

Case 5 To 7

txtOutput.Text = "case 2"

Case 7 To 12

txtOutput.Text = "case 3"

End Select

End Sub

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions