In this exercise, you modify the Carillo application from Exercise 13. Use Windows to make a copy

Question:

In this exercise, you modify the Carillo application from Exercise 13. Use Windows to make a copy of the Carillo Solution folder. Rename the copy Modified Carillo Solution. Open the Carillo Solution (Carillo Solution.sln) file contained in the Modified Carillo Solution folder. In the btnCalc_Click procedure, code the multiple-alternative selection structure using the Select Case statement rather than the If...Then...Else statement. Test the application seven times, using 125000, 165000, 15000, 165000.99, 200000, 50000, and 50000.01 as the annual sales.


Data From Exercise 13:

Open the VB2015\Chap05\Carillo Solution\Carillo Solution (Carillo Solution.sln) file. The txtSales control should accept only numbers, the period, and the Backspace key; code the appropriate procedure. The btnCalc_Click procedure calculates a 3.5% commission when the annual sales are greater than $165,000; otherwise, it calculates a 2.5% commission. Modify the procedure to use the commission rates shown below. Use the If...Then...Else statement to code the multiple-alternative selection structure. Test the application seven times, using 125000, 165000, 15000, 165000.99, 200000, 50000, and 50000.01 as the annual sales.

Annual sales ($) Commission rate 0-50,000 1.5% 50,000.01–75,000 75,000.01–165,000 Over 165,000 2.0% 2.5% 3.5%

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: