I am trying to use a double array to calculate sales totals per saleperson and overall averages but do not want to use the salesperson number in the calculations. Can someone show me the correct code?
Below is how I start:
I am trying to not use the first column in my calculation but to output it only under saleperson and get the following output:Code:import java.awt.*; public class SalesArray extends JApplet { int Sales[][] = {{1180,45,75,94,65}, {1181,21,88,89,20}, {1182,79,51,55,67}}; int salesperson, items; String output; JTextArea outputArea; {rest of code}
[ArchAngel added CODE tags]Code:Salesperson [1] [2] [3] [4] Average: 1180 45 75 94 65 1181 21 88 89 20 1182 79 51 55 67 Lowest Sales earned = Highest Sales earned = Overall Average = Mediam of overall Sales =


Reply With Quote


Bookmarks