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
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?
Step by Step Solution
3.28 Rating (157 Votes )
There are 3 Steps involved in it
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Commission Project ... View full answer
Get step-by-step solutions from verified subject matter experts
