I have 6 numbers, all from 0-100. I need to put the inside a chart, I already have the codes for the chart but don't know how to link it to my array. the chart uses bars. This is my code below, its the average of two other arrays that I have:
public static void computeResults(double[] examMarks, double[] courseworkmarks)
{
double avgMarks[] =new double[examMarks.length];
System.out.println ("The total average of each module is ");
for(int i=0;i<avgMarks.length;i++){
int cwWeighting=40;
avgMarks[i]=(examMarks[i]*(100-cwWeighting)+courseworkmarks[i]*cwWeighting)/100;
System.out.print(avgMarks[i] + "\t" );
}
}