static public void chart(String value, String value2[][])
{
System.out.println("Employee Payroll (Sorted by last name)");
//headings
System.out.printf( "%-15s %-10s %-15s %-10s %-10s %-10s %-10s", "F.Name", "L.Name", "Hourly Wage", "Hours Worked", "Gross Pay", "20% Tax", "Net Pay" );
System.out.println();
//data for each employee
for(int x = 0; x<=value2.length-2;x++)
{
System.out.printf("%-15s %-15s $%-15s %-10s %-10s %-10s %-10s", value2[x][0],value2[x][1], value2[x][2],value2[x][3],value2[x][4],value2[x][5], value2[x][6]);
System.out.println();
}
System.out.println();
//total employee values
System.out.printf( "%-15s %-15s %-15s %-10s", "Total Hours", "Total Gross", "Total Net", "Highest Net Pay" );
System.out.println();
System.out.printf( "%-15s $%-15s $%-15s %-10s", value2[5][0],value2[5][1],value2[5][2], value);
}
}