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
Write a Review
Leave a reply Cancel reply
Ask Your Question
We have verified professionals who are ready to answer your question.
Save Time and Money
We choose experts who can quickly answer your question and that suit your budget.
Get Your Answer
Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.