Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 1, Problem 19RQ
Which statement terminates an application that contains only one form?
- a. Me.Close()
- b. Me.Done()
- c. Me.Finish()
- d. Me.Stop()
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
design pattern question :-
Using the state pattern, you have to implement an application that help track the item ordered from online shop. The client orders an item from online shop, then item can go to post office, then it will be delivered to the user home. Or the item after being ordered it goes to the post office, then the user will pick it up from the post office. In both cases; either take the item from the post office or has it delivered to the client's home represents the end of the process.
Q1)Draw the state diagram that shows all possible states and transitions?
Q2) Write code of the Ordered state?
Q3) Write the implementation of the ShopOrder class; most important things are the states declaration, the constructor, a function to return robot state
3. Solar Panel InstallationThe Megawatt solar panel company installs solar panels on home rooftops. The base installation charge of $2,000 includes two panels. The charge for each additional panel is $300. The normal waiting time for installation is two weeks, but customers can pay an express charge of 5% of the total cost to reduce this time. Create an application that collects the required information from the user and calculates the charges for the installation.The user should input the following information: first name, last name, phone, number of panels, deposit amount, and a check box for the express installation option. When the user clicks a button to view the charges, display a group box containing the following information: base installation charge, cost of installing additional panels, total installation cost, deposit amount, and balance due.Error checking should include the following criteria:• The name and phone fields cannot be blank• The number of panels must be an…
Driver’s License Exam The local driver’s license office has asked you to create an application that grades the written portion of the driver’s license exam. The exam has 20 multiple-choice questions. Here are the correct answers: 1. B 2. D 3. A 4. A 5. C 6. A 7. B 8. A 9. C 10. D 11. B 12. C 13. D 14. A 15. D 16. C 17. C 18. B 19. D 20. A Your program should store these correct answers in an array. The program should read the student’s answers for each of the 20 questions from a text file and store the answers in another array. (Create your own text file to test the application.) After the student’s answers have been read from the file, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly…
Chapter 1 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 1 - What is a computer program?Ch. 1 - What is a GUI?
Ch. 1 - What is the process of translating a solution into...Ch. 1 - In object-oriented programming, what is a class?Ch. 1 - Which window in the IDE lists the tools you can...Ch. 1 - While designing an interface, which window in the...Ch. 1 - Prob. 3MQ2Ch. 1 - Prob. 1MQ3Ch. 1 - Prob. 2MQ3Ch. 1 - What filename extension indicates that the file is...
Ch. 1 - Prob. 1MQ4Ch. 1 - Prob. 2MQ4Ch. 1 - Prob. 3MQ4Ch. 1 - Prob. 4MQ4Ch. 1 - Prob. 1MQ5Ch. 1 - What is the three-character ID used when naming...Ch. 1 - What is the purpose of an access key?
Ch. 1 - What character is used to designate an access...Ch. 1 - Prob. 1MQ6Ch. 1 - Prob. 2MQ6Ch. 1 - Prob. 3MQ6Ch. 1 - Prob. 4MQ6Ch. 1 - Prob. 1MQ7Ch. 1 - Prob. 2MQ7Ch. 1 - Prob. 3MQ7Ch. 1 - Prob. 4MQ7Ch. 1 - In the Code Editor window, what character...Ch. 1 - A(n)._____ is an environment that contains all of...Ch. 1 - When using an analogy involving a blueprint and a...Ch. 1 - You create your application’s user interface in...Ch. 1 - Each tool in the toolbox represents a class from...Ch. 1 - Which window is used to set the characteristics...Ch. 1 - Prob. 6RQCh. 1 - Prob. 7RQCh. 1 - Prob. 8RQCh. 1 - Which property is used to give a form file a more...Ch. 1 - Which property determines the initial position of...Ch. 1 - Prob. 11RQCh. 1 - Prob. 12RQCh. 1 - Prob. 13RQCh. 1 - Prob. 14RQCh. 1 - Prob. 15RQCh. 1 - What is the three-character extension appended to...Ch. 1 - Prob. 17RQCh. 1 - Prob. 18RQCh. 1 - Which statement terminates an application that...Ch. 1 - Prob. 20RQCh. 1 - Prob. 21RQCh. 1 - Prob. 22RQCh. 1 - Prob. 23RQCh. 1 - Prob. 24RQCh. 1 - Prob. 25RQCh. 1 - Prob. 1ECh. 1 - Prob. 8E
Knowledge Booster
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
- The outcome of an application's computation should be saved in a variable. True or False?arrow_forwardEnd statement is used to ends the execution and exit from the application. Otrue Ofalsearrow_forwardFor each of the following exercises, you may choose to write a console-based or GUI application, or both. Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number of days for a resort stay. Then display the price per night and the total price. Nightly rates are $200 for one or two nights; $180 for three or four nights; $160 for five, six, or seven nights; and $145 for eight nights or more.arrow_forward
- The Donut Shoppe sells four varieties of doughnuts: Glazed (1.05), Sugar (1.05), Chocolate (1.25), and Filled (1.50). It also sells regular coffee (1.50) and cappuccino (2.75). The store manager wants you to create an application that displays a customers subtotal, 6% sales tax, and total due. Create a Windows Forms application. Use the following names for the project and solution, respectively: Donut Project and Donut Solution. Save the application in the VB2017\Chap06 folder. Create the interface shown in Figure 6-57. When coding the application, use one independent Sub procedure to determine the subtotal, which is the total cost without the sales tax. Use a function to determine the sales tax. Use an event-handling Sub procedure to clear the output. Save the solution and then start and test the application.arrow_forwardDanielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F). Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue an error message for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Z or z for an initial, display each salespersons total, a grand total for all sales, and the name of the salesperson with the highest total.arrow_forwardAccount numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. The next problems rely on the generation of a random number. You can create a random number that is at least mi n but less than max using the following statements: Random ranNumberCenerator = new Random(); int randomNumber; randomNumber = ranNumberGenerator .Next(min, max);arrow_forward
- 5. A store is having a (Buy One, Get One Half Off) sale. The store manager wants an application that allows the salesclerk to enter the prices of two items. The half off should always be applied to the item that has the lowest price. The application should calculate and display the total amount the customer owes as well as the amount he or she saved. For example, if the two items cost $24.99 and $10.00, the half off is applied to the $10.00 item. The total owed is $29.99 and the savings is $5.00. Display the calculated amounts in label controls, and display them with a dollar sign and two decimal places. Finally, professionalize your application's interface.arrow_forwardon alerts a message "Hi" when a button is clicked.arrow_forwardKinetic Energy In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving object’s kinetic energy: KE =1/2mv2 In the formula KE is the kinetic energy, m is the object’s mass in kilograms, and v is the object’s velocity in meters per second. Create an application that allows the user to enter an object’s mass and velocity and then displays the object’s kinetic energy. The application should have a method named KineticEnergy that accepts an object’s mass (in kilograms) and velocity (in meters per second) as arguments. The method should return the amount of kinetic energy that the object has.arrow_forward
- DORM AND MEAL PLAN CALCULATOR A university has the following dormitories: Allen Hall $1,500 per semesterPike Hall $1,600 per semesterFarthing Hall $1,800 per semesterUniversity Suites $2,500 per semesterThe university also offers the following meal plans:7 meals per week $ 600 per semester14 meals per week $1,200 per semesterUnlimited meals $1,700 per semesterCreate an application with two forms. The main form should allow the user to select a dormitory and a meal plan. The application should show the total charges on the second form. For this assignment, you will create two forms (each form is an object). On the first form you will have two list boxes. One will display the Dormitories and the other one will display the Meal Plans. The user will select one Dorm and one meal plan. The user will then click a button the will open up a second form and show the results. I would suggest that you store the Dormitories is a two dimensional array for name and cost. I would suggest that you…arrow_forwardFalling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d =1/2gt2 The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.arrow_forwardChoose correct option The code contained in the ............... allows an application to retrieve the contents of the Private variable associated with the property. Getter Block Retrieve Set Block Get Blockarrow_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:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
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
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Time Complexity Analysis - How To Calculate Running Time | InterviewBit; Author: InterviewBit;https://www.youtube.com/watch?v=--oxG4Q1PA0;License: Standard YouTube License, CC-BY