Programming with Microsoft Visual Basic 2015 (MindTap Course List)
7th Edition
ISBN: 9781285860268
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 3.LA, Problem 3E
Program Plan Intro
Procedural-level variables
Program plan:
- Create new Windows Forms Application.
- Design the form by placing the labels, textboxes, and buttons and then change their name and properties.
- Inside the “Display” button,
- Declare the variables “busName” as string data type, “numBeg”, “numHired”, “numLeft”, and “numEnd” as integer data types.
- Set the text box values to the corresponding variables.
- Display the procedural-level variables using the “MessageBox.Show” method.
- Inside the “Exit” button,
- Close the form using “Me.Close” method
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The memory locations listed in a procedure header’s parameterList have procedure scope and are removed from the computer’s main memory when the procedure ends. a. True b. False
Write an assignment statement that decrements the intNum counter variable by 5. Use an arithmetic assignment operator.
Write a stored procedure named displayNumberOfFilmRatings(). The displayNumberOfFilmRatings () procedure should find number of films for each film rating and then display the film rating and the number for films having that type of rating. Note: The displayNumberOfFilmRatings() procedure does not need to declare any variables. Hint: The output should have two columns only. Hint: There is no need to use cursor processing for this stored procedure.
Chapter 3 Solutions
Programming with Microsoft Visual Basic 2015 (MindTap Course List)
Ch. 3.LA - Prob. 1RQCh. 3.LA - Prob. 2RQCh. 3.LA - Which of the following statements declares a...Ch. 3.LA - Prob. 4RQCh. 3.LA - Prob. 5RQCh. 3.LA - Which of the following declares a procedure-level...Ch. 3.LA - Prob. 7RQCh. 3.LA - Prob. 8RQCh. 3.LA - Prob. 9RQCh. 3.LA - Prob. 10RQ
Ch. 3.LA - Prob. 11RQCh. 3.LA - A static variable has the same...Ch. 3.LA - A procedure needs to store a salespersons name and...Ch. 3.LA - Prob. 2ECh. 3.LA - Prob. 3ECh. 3.LA - Prob. 4ECh. 3.LA - Prob. 5ECh. 3.LA - Prob. 6ECh. 3.LA - Prob. 7ECh. 3.LA - Prob. 8ECh. 3.LA - Prob. 9ECh. 3.LA - Prob. 10ECh. 3.LA - Prob. 11ECh. 3.LA - Prob. 12ECh. 3.LA - Prob. 13ECh. 3.LA - Prob. 14ECh. 3.LA - Prob. 15ECh. 3.LA - Prob. 16ECh. 3.LA - Prob. 17ECh. 3.LA - Prob. 19ECh. 3.LB - Prob. 1RQCh. 3.LB - Prob. 2RQCh. 3.LB - Prob. 3RQCh. 3.LB - Prob. 4RQCh. 3.LB - Prob. 5RQCh. 3.LB - Prob. 6RQCh. 3.LB - Prob. 7RQCh. 3.LB - Prob. 8RQCh. 3.LB - Prob. 9RQCh. 3.LB - Prob. 10RQCh. 3.LB - Prob. 1ECh. 3.LB - Prob. 2ECh. 3.LB - Prob. 3ECh. 3.LB - Prob. 4ECh. 3.LB - Prob. 5ECh. 3.LB - Prob. 6ECh. 3.LB - Prob. 7ECh. 3.LB - Prob. 8ECh. 3.LB - Prob. 9ECh. 3.LB - Prob. 11ECh. 3.LB - Prob. 12ECh. 3.LC - Prob. 1RQCh. 3.LC - Prob. 2RQCh. 3.LC - Prob. 3RQCh. 3.LC - Which of the following statements declares a...Ch. 3.LC - Prob. 5RQCh. 3.LC - Prob. 2ECh. 3.LC - Prob. 3ECh. 3.LC - Prob. 4ECh. 3.LC - Prob. 5ECh. 3.LC - Prob. 6ECh. 3.LC - Prob. 7ECh. 3.LC - Prob. 8ECh. 3.LC - Prob. 9ECh. 3.LC - Prob. 10ECh. 3.LC - Prob. 11E
Knowledge Booster
Similar questions
- Where are procedure-level variables declared?arrow_forwardThe syntax of a statement that invokes (calls) an independent Sub procedure is ____. a. procedureName([argumentList], dataType) b. procedureName([argumentList]) c. procedureName([argumentList]) As dataType d. procedureName{[parameterList]}arrow_forwardExplain procedure return code briefly.arrow_forward
- In this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open the Seminars Solution.sln file contained in the Seminars Solution-CheckBox folder. Create an event-handling Sub procedure named ClearAmountDue and associate it with each check box’s CheckChanged event. Then, create a function that determines which (if any) check boxes are selected and then adds the associated fee to the total due. The function should return the total due to the statement that invoked it. Also, make the necessary modifications to the btnCalc_Click procedure’s code. Save the solution and then start and test the application. In VB please. Code Given: Option Explicit OnOption Strict OnOption Infer Off Public Class frmMain Private Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click' Calculate and display the amount due. Dim intAmountDue As Integer ' Determine which (if any) check boxes are selected' and add the associated fee to the amount due.If…arrow_forwardWhat are the items that appear within parentheses in a procedure header called? a. arguments b. parameters c. passers d. None of the above.arrow_forwardWhen using a procedure the calling code sends data via the: Select one: a. formal parameter to the actual argument of the procedure b. actual parameter to the formal argument of the procedure c. formal argument to the actual parameter of the procedure d. actual argument to the formal parameter of the procedurearrow_forward
- ASSEMBLY You can reuse the same local variable name within different procedures in your program. True Falsearrow_forwardWrite an assignment statement that increments the decTotal variable by the value in the decRegion variable. Use an arithmetic assignment operator.arrow_forwardWhen referring to the components of a procedure header that appear between the parenthesis, what do you mean by "informally?"arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage