![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_largeCoverImage.gif)
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 9, Problem 5E
Program Plan Intro
Form design:
- Open Microsoft Visual Studio.
- Select Visual Basic and click Windows Application.
- Name the project as “Cookie Sales Project”.
- Store the file in desired location.
- The created project is now displayed with a form in the name of Form1.
- Rename the Form1 as “Main Form” and add the necessary components.
- In property window, change the Form name and add changes for Form elements properties.
- Click the File menu->Save All.
View of the form design in the IDE:
The form control properties in the properties window are as follows:
Object | Property | Setting |
Form1 | Text | Cookie Sales |
lblChocolateChip | Text | (Empty) |
lblOatmeal | Text | (Empty) |
lblPeanutButter | Text | (Empty) |
lblSugar | Text | (Empty) |
btnDisplay | Text | Display totals |
btnExit | Text | Exit |
- Add a necessary label control to display the total counts of cookies.
- Add two button controls to display the cookies total and exit the program respectively.
Expert Solution & Answer
![Check Mark](/static/check-mark.png)
Trending nowThis is a popular solution!
![Blurred answer](/static/blurred-answer.jpg)
Students have asked these similar questions
Using C# language please in Visual Studio 2022 in Windows Form App.
As for the folder-- for convenience sake-- create some folders and insert a couple of names in there, not 200.
True or False : The Title property holds the name of the file the user selected with an Open or Save As dialog box.
PLEASE USE JAVA RMI AND JSON
Create an RMI application with GUI that will allow the recording of employee attendance. The program should run as follows:
The program has a JSON file that holds employee credentials.
Employees will enter their usernames and passwords to open the application.
Once they have successfully logged in to the application, they can click on the time in and time out button to record their time.
The JSON file will also hold the time in and out records.
Chapter 9 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 9 - Which of the following opens the employ.txt file...Ch. 9 - If the file to be opened exists, which method...Ch. 9 - Which of the following reads a line of text from a...Ch. 9 - What type of object is created by the OpenText...Ch. 9 - Prob. 7RQCh. 9 - The horizontal line in a menu is called _____.
a...Ch. 9 - Prob. 9RQCh. 9 - Prob. 10RQCh. 9 - Prob. 11RQCh. 9 - Prob. 3E
Knowledge Booster
Similar questions
- Create a WINFORM application named FirstNameLastNameM6B Save the application in the Unit6MasteryirstnameLastname folder. Create an application that will simulate a gradebook. Use the records.txt text file that contains six records that include: studentName, grade1, grade2, grade3, grade4 and grade5. These fields are separated by a comma. So, you have 6 students and each of the students have 5 grades. On form load have the student names brought into a string array. Have the total of the 5 grades for each student brought into a double array. You will have an array that holds each student’s total of the 5 grades listed. (You can use tokenization to accomplish this. The first field is the name and the next five are all grades that will need to be added together and stored in your array.) There should be a form with a listBox that displays the student names on form load. There should also be labeled labels for each of the students’ total of grades, their average and the letter…arrow_forwardInclude a header that is Your Name, Math Tables Include an "Addition Table" button Include a "Multiplication Table" button Both tables should use the same window for the display of their information In the secondary window, include the following: A comment in the code that includes the assignment name, your name, and the date Use the file name "MathTableDisplay.htm" for the secondary window file The header for the secondary window is "Addition Table" when the addition table is displayed The header for the secondary window is "Multiplication Table" when the multiplication table is displayed Example web page displays and code for the addition table are included belowarrow_forwardIn this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage