In this exercise, you modify the application from Exercise 15. The modified application allows the user to

Question:

In this exercise, you modify the application from Exercise 15. The modified application allows the user to display the number of salespeople earning a commission within a specific range. Use Windows to make a copy of the Commission Solution folder. Rename the folder Modified Commission Solution. Open the Commission Solution (Commission Solution.sln) file contained in the Modified Commission Solution folder. Modify the btnDisplay_Click procedure to prompt the user to enter both a minimum commission amount and a maximum commission amount. The procedure then should display (in a message box) the number of salespeople who earned a commission within that range. Use the application to answer the following questions:

How many salespeople earned a commission from 100 through 300?

How many salespeople earned a commission from 700 through 800?

How many salespeople earned a commission from 0 through 200?


Data From Exercise 15:

Open the VB2015\Chap09\Commission Solution\Commission Solution (Commission Solution.sln) file. The btnDisplay_Click procedure should declare a 20-element, onedimensional Integer array named intCommission. Assign the following 20 numbers to the array: 300, 500, 200, 150, 600, 750, 900, 150, 100, 200, 250, 650, 300, 750, 800, 350, 250, 150, 100, 300. The procedure should prompt the user to enter a commission amount from 0 through 1000. It then should display (in a message box) the number of salespeople who earned that commission. Use the application to answer the following questions:

How many salespeople earned a commission of 100?

How many salespeople earned a commission of 300?

How many salespeople earned a commission of 50?

How many salespeople earned a commission of 900?

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

Step by Step Answer:

Related Book For  answer-question
Question Posted: