EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
8th Edition
ISBN: 9780176920159
Author: ZAK
Publisher: VST
expand_more
expand_more
format_list_bulleted
Question
Chapter 3, Problem 14E
Program Plan Intro
Form design:
- Open Microsoft Visual Studio.
- Select Visual Basic and click Windows Application.
- Name the project as “Sales Project”.
- Store the file in desire location.
- The created project is now display 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 | Sales Percentages |
PictureBox1 | Image | DollarSigns.png |
txtJim | Text | (Empty) |
txtKaren | Text | (Empty) |
txtMartin | Text | (Empty) |
lblJim | Text | (Empty) |
lblKaren | Text | (Empty) |
lblMartin | Text | (Empty) |
btnCalc | Text | Calculate |
btnExit | Text | Exit |
- Add a PictureBox control to show the images.
- Add three text box controls to get the sales person’s sales information.
- Add three label controls to show the sales person’s percentages.
- Add two button controls, one to compute the percentage and another to close the application.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In this exercise, you modify the Gross Pay application from this lesson. Use Windows to make a copy of the Gross Pay Solution folder. Rename the copy Modified Gross Pay Solution. Open the Gross Pay Solution (Gross Pay Solution.sln) file contained in the Modified Gross Pay Solution folder. Open the designer and Code Editor windows. Locate the form’s Load event procedure. Change both For…Next statements to Do…Loop statements. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
In this exercise, you will create the Jacobson Furniture application. The application’s Planning Chart is shownbelow.a. Use either a flowchart or pseudocode to plan the btnCalc_Click procedure, which should calculate anddisplay both a 5% sales tax and the total due.b. Create a Windows Forms application. Use the following names for the project and solution,respectively: FamilyName_Furniture Project and FamiltyName_Furniture Solution. Save the applicationin the VB2019\Exercise2 folder. Enter the three Option statements in the Code Editor window. Codethe btnCalc_Click procedure using variables and a named constant. Display the sales tax with a comma(if necessary) and two decimal places. Display the total due with a comma (if necessary), a peso signand two decimal places. Save the solution and then start and test the application. (If the sales amountis 500, the sales tax and total due are 25.00 and P525.00, respectively.)c. Now professionalize your interface by coding the text box’s…
Create Use Case Diagram for the WhatsApp application . Make sure to follow rules in creating Use Case Diagram.
Chapter 3 Solutions
EBK 3N3-EBK: PROGRAMMING W/MICROSOFT VI
Ch. 3 - Prob. 1MQ1Ch. 3 - Prob. 2MQ1Ch. 3 - Prob. 3MQ1Ch. 3 - Prob. 4MQ1Ch. 3 - Prob. 5MQ1Ch. 3 - Which of the following are valid names for...Ch. 3 - Prob. 1MQ2Ch. 3 - Prob. 2MQ2Ch. 3 - Write a Dim statement that declares a Boolean...Ch. 3 - Prob. 1MQ3
Ch. 3 - Prob. 2MQ3Ch. 3 - Prob. 3MQ3Ch. 3 - Write a TryParse method that stores the strSales...Ch. 3 - Prob. 1MQ4Ch. 3 - Prob. 2MQ4Ch. 3 - Prob. 3MQ4Ch. 3 - Prob. 4MQ4Ch. 3 - Prob. 5MQ4Ch. 3 - Prob. 1MQ5Ch. 3 - Prob. 2MQ5Ch. 3 - Prob. 3MQ5Ch. 3 - Prob. 4MQ5Ch. 3 - Prob. 1MQ6Ch. 3 - Prob. 2MQ6Ch. 3 - Prob. 3MQ6Ch. 3 - Prob. 4MQ6Ch. 3 - Prob. 5MQ6Ch. 3 - Prob. 1MQ7Ch. 3 - Prob. 2MQ7Ch. 3 - Prob. 3MQ7Ch. 3 - Prob. 4MQ7Ch. 3 - Prob. 1MQ8Ch. 3 - Prob. 2MQ8Ch. 3 - Prob. 3MQ8Ch. 3 - Prob. 4MQ8Ch. 3 - Prob. 1MQ9Ch. 3 - Prob. 2MQ9Ch. 3 - Prob. 3MQ9Ch. 3 - Prob. 1RQCh. 3 - Prob. 2RQCh. 3 - What is the result of the following expression: 96...Ch. 3 - Which of the following is an invalid name for a...Ch. 3 - The expression intNum * intNum * intNum is...Ch. 3 - What is the result of the following expression: 3...Ch. 3 - Prob. 7RQCh. 3 - Which of the following statements declares a...Ch. 3 - Which of the following can be used to clear the...Ch. 3 - Prob. 10RQCh. 3 - Which of the following declares a procedure-level...Ch. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - Prob. 15RQCh. 3 - Prob. 16RQCh. 3 - A static variable has the same...Ch. 3 - Prob. 18RQCh. 3 - Which of the following statements declares a...Ch. 3 - Most of the memory locations declared in an...Ch. 3 - Prob. 1ECh. 3 - Prob. 2ECh. 3 - Prob. 3ECh. 3 - Prob. 14E
Knowledge Booster
Similar questions
- In 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_forwardThe 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_forwardIn 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_forward
- . The O’Neill High School Performing Arts Center auditorium contains 20 rows (numbered 1through 20) with 40 seats each (numbered 1 through 40). Write an application that allows auser to continuously enter a row and seat request until a sentinel value is entered. If the rowor seat number is too high, issue an error message. Otherwise, determine whether the seat hasalready been reserved. If so, display an error message; if not, then charge the user $7.50 for aticket and display a running total of the user’s purchase. When the user enters a sentinel,display the number of seats taken and the number still available in the auditorium.arrow_forwardAn employee’s current pay rate appears in the txtCurrentRate control. Write an assignment statement that increases the current pay rate by 10 and then assigns the result to the lblNewRate control.arrow_forwardWrite a statement that prevents the btnCalc control from responding to the user.arrow_forward
- Write an assignment statement that increments the decTotal variable by the value in the decRegion variable. Use an arithmetic assignment operator.arrow_forwardWhat does the total mean in the assignment: Specifications: Lions, Tigers and Bears Pet Clinic needs an application that displays basic services. The application should be designed with check boxes to select the various services (such as office call, vaccination, grooming, etc). As each service is selected, the charge for the service should display in an associated label. (When the check mark is removed, the amount should be removed). As each selection is made, the charges should be added into the total (a variable… consider scope), and displayed in a Total Due area on the application (currency format). Align all numeric data appropriately. Consider what should happen when the check mark is removed. Include at least 8 services that your pet clinic performs. Include a Clear and Exit button. The clear should clear all check boxes, appropriate labels, and the total variable. Use the standard Microsoft naming conventions for all controls. Include appropriate comments in your code.arrow_forwardCreate an application that receives an internet application from a company’s prospectivecustomers. The following information must be received from the applicant:- Name - Internet Choice - Applicant salaryIn the event that the “Check application” button is clicked, the complete application result must bedisplayed in the listbox control of a second form. The label control of the second form must simplyindicate whether an application is “approved” or “not approved”If a user has a salary of R2500 or less, then the application cannot be approved, else the applicationwill be approved.arrow_forward
- 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.arrow_forwardDORM 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_forwardWhen two or more controls are selected, how can you tell which one is the reference control? a. The reference control has white sizing handles. b. The reference control has black sizing handles. c. The reference control displays the number 1 in the left corner. d. You can’t tell. You just need to remember which control you selected firstarrow_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 Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning