Question: 1 . Create an one - dimensional string array named salesArray _ String [ ] . 2 . In the Load File button open the

1. Create an one-dimensional string array named salesArray_String[].2. In the Load File button open the Sales.txt file and: a. Load the sales data into the salesArray_String[] from the sales data from the Sales.txt file. You will create a second array called salesArray_Double. Convert the string values from the salesArray_String into a double. Assign that double value to the elements inthe saleArray_Double.b. Create the following methods and then call them from inside the Load File button click event: 1. Create a method named PopulateListBox that will accept as an argument a one-dimensional string array. Then load the data from the string array passed as an argument to the method into the listbox with the format xxx,xxx.xx such as $3,533.362. Create a method named CalcAverageSales that will accept as an argument a one-dimensional double array. The method will calculate the average sales from the data from the array passed as an argument and put the result in lblAverage labeldisplayed as currency with two decimal places, example: $207.84.3. Create a method named FindHighestSales that will accept as an argument a one-dimensional double array. The method will determine the highest sales value from the data passed as an argument and assign the result in lblHighest label displayed as currency with zero decimal places, example: $264,44.4. Create a method called FindLowestSales that will accept as an argument a one-dimensional double array. The method will determine the lowest sales value from the data from the array passed as an argument and assign the result in lblLowest label displayed as currency with zero decimal places, example: $109.87
Sales
124.56
118.95
109.87
145.68
210.93
198.77
203.05
210.57
227.54
235.87
247.85
252.27
264.44
254.26
243.33
235.57
249.85
Starting out with Visual c#
1 . Create an one - dimensional string array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!