Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/mingo-solution-vb-2010/
- Problem 2: Chapter 3, Lesson B; page 175; Exercise 6: the Mingo Solution.
- Open the Mingo Solution (Mingo Solution.sln) file contained in the VB2010\Chap03\Mingo
- Solution folder. If necessary, open the designer window. The application allows the sales
- manager to enter the sales made in three states. It then calculates and displays both the total
- sales made and the total commission earned in the three states.
- a. Make the Calculate button the default button.
- b. Enter the appropriate Option statements in the Code Editor window.
- c. Code the Exit button so that it ends the application when it is clicked.
- d. Use the pseudocode shown in Figure 3-43 to code the Calculate buttonβs Click event
- procedure. Be sure to use variables. (Do not use the Val function.) The commission rate
- is 5%. Use the ToString method to display a thousands separator (if necessary) and
- two decimal places in the total sales and commission amounts.
- e. Save the solution and then start the application. Test the application by calculating the
- total sales and commission for the following amounts: New York sales of 15000, Maine
- sales of 25000, and Florida sales of 10500.
- Pseudocode for the btnCalc Click event procedure
- 1. calculate total sales = New York sales + Maine sales + Florida sales
- 2. calculate commission = total sales * commission rate
- 3. display total sales and commission in lblTotalSales and lblCommission
- 4. send the focus to the txtNewYork control
- Download: http://solutionzip.com/downloads/mingo-solution-vb-2010/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement