Hi I have a question about a practice problem I am doing in my Visual Basic Reloaded:second edition school book. Ok here is all the information the case problem gives me and what it wants me to do.
JM Sales employs 10 salespeople. The sales made by the salespeople during the months of January, February, and March are shown in Figure 8.52. The sales manager wants an application that allows him to enter the current bonus rate. The application should display each salesperson's number (1 through 10), total sales ammount, and total bonus ammount. It also should display the total bonus paid to all salespeople. Be sure to use one or more array in the application.
Then it gives you a table with the salespersons 1-10 sales amount january February and March.(this is the figure 8.52)Here is a duplicate table of it below.
I'm really rough on arrays and I would appreciate a little help on how exactly to do this problem. Thanks
Here's far as i could getCode:Salesperson January February March ----------- ------- -------- ------- 1 2400 3500 2000 2 1500 7000 1000 3 600 450 2100 4 790 240 500 5 1000 1000 1000 6 6300 7000 8000 7 1300 450 700 8 2700 5500 6000 9 4700 4800 4900 10 1200 1300 1400
Code:Dim januarySales(,) As Integer = {{1, 2400}, _ {2, 1500}, _ {3, 600}, _ {4, 790}, _ {5, 1000}, _ {6, 6300}, _ {7, 1300}, _ {8, 2700}, _ {9, 4700}, _ {10, 1200}} Dim februarySales(,) As Integer = {{1, 3500}, _ {2, 7000}, _ {3, 450}, _ {4, 240}, _ {5, 1000}, _ {6, 7000}, _ {7, 450}, _ {8, 5500}, _ {9, 4800}, _ {10, 1300}} Dim marchSales(,) As Integer = {{1, 2000}, _ {2, 1000}, _ {3, 2100}, _ {4, 500}, _ {5, 1000}, _ {6, 8000}, _ {7, 700}, _ {8, 6000}, _ {9, 4900}, _ {10, 1400}}




Reply With Quote