Advertisement
akosiraff

Mingo Solution VB 2010

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