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
1.Correct answer will be upvoted else thumbs down.
The questions are the comments in the code (example: //Q1 is question 1)
question is attached as picture
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
SEE MORE QUESTIONS
Recommended textbooks for you
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
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
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