In this exercise, you modify the application from Exercise 13. The modified application allows the user to update a specific
In this exercise, you modify the application from Exercise 13. The modified application allows the user to update a specific price. Use Windows to make a copy of the Retail Solution folder. Rename the folder Modified Retail Solution. Open the Retail Solution (Retail Solution.sln) file contained in the Modified Retail Solution folder. Modify the btnRetail_Click procedure so it also asks the user to enter a number from 1 through 10. If the user enters the number 1, the procedure should update the first price in the array. If the user enters the number 2, the procedure should update the second price in the array, and so on. Save the solution and then start the application. Increase the second price by 10%. Then, increase the tenth price by 5%. (Hint: The second price in the list box should still reflect the 10% increase.)
Data From Exercise 13:
Open the VB2015\Chap09\Retail Solution\Retail Solution (Retail Solution.sln) file. Open the Code Editor window. Notice that the code declares and initializes a class-level array named dblWholesale. The btnRetail_Click procedure should ask the user for a percentage amount and then use that amount to increase each price stored in the array. The increased prices should be displayed (right-aligned with two decimal places) in the lstRetail control. Test the application appropriately.
This problem has been solved!
Step by Step Answer: