Question: Need help with this Visual Basic 2012 problem. Need help with code, used a .txt file to load in the data(txt file contents below) output
Part II: (70 pts.) #1.(35 pts.) This program practic sales amounts for four salespeople (Jones, Smith, Brown, and Adams) over the course of five mont Text file salesInfo.txt is stored on our with the name of the salesperson followed by sales figure in comma-separated format. es row sums on a 2D array of sales information. The table below lists and Adams) over the course of five months First Class conference. The data is presented in row major order Jones Jones 1000,1500,1500,1000,1500 Smith 2000,2000,2500,1500,2000 etc. Your code should use a nested For loop structure to read the names into the list box and the sales figures into 2D array in the Form Load event. The user can select a salesperson and click a command button. If no salesperson was selected, display an error message in the output list box. Otherwise, use a For loop to compute the sum of sales for that salesperson. Display the salesperson's name and the sum in the output list box in currency format. On output click the button four times, once for each salesperson as shown below. Finally, the user clicks the Overall Sum button to display the grand total of all sales in the 2D array Model of 2D Array: 1000 2000 1500 3000 1500 2000 2000 2500 1500 2500 3000 3000 1500 1500 1000 1500 2000 1000 1500 Get Sales Sum Smith Brown Adams Get Overall Sum Jones has sales sum $6,500.00 Smith has sales sum $10,000.00 Brown has sales sum $9,000.00 Adams has sales sum $11,000.00 Total sales is $36,500.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
