Introduction To Programming Using Visual Basic (11th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
11th Edition
ISBN: 9780135416037
Author: David I. Schneider
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 4.3, Problem 1E

In Exercises 1 through 6, for each of the responses shown in the parentheses, determine the output displayed in the text box when the button is clicked on.

Private Sub btnDisplay_Click ( ... ) Handles btnDisplay .Click Dim age, price As Double age = CDbl(InputBox("What is your age?")) Select Case age Case Is < 6 price = 0 Case 6 To 17 price = 3 .75 Case Is  > =  17 price  =  5 End Select txtOutput .Text = "The price is " & price .ToString ('C") End Sub

8.5 , 17

Blurred answer
Students have asked these similar questions
The text box's event is triggered when the contents of the text box change.
Need correct with explanation Else skip it  Proper explanation got thumbs-up
This is for Visual Basic I and is not in a textbook.   Create a Windows Form application. Use the following names for the project and solution, respectively: NFL Teams Project and NFL Teams Solution.  Add any 6 NFL teams to a list box. When the user clicks a team in the list box, the list box’s SelectedIndexChanged procedure should display the State that the NFL Team is from in a label control.  Example "Altanta Falcons" display Georgia, in the label. Look back at Chapter 5 for examples of list boxes.    I need some help understanding it. My teacher gave this to me as a example question.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Graphical User Interfaces: Crash Course Computer Science #26; Author: CrashCourse;https://www.youtube.com/watch?v=XIGSJshYb90;License: Standard YouTube License, CC-BY
Python GUI | How To Make A GUI In Python | Best GUI Framework In Python | Edureka; Author: edureka!;https://www.youtube.com/watch?v=_PHJvjQJa3w;License: Standard Youtube License