For each day, the percentage of employees absent is calculated and then rounded to the nearest 10 percent to determine how many asterisks are printed in each column.
Data Structures:
A two-dimensional array for holding the input (absenteeData)
A one-dimensional array (average) for holding the average daily absentee figures for each department (see Figure 13-13)
A two-dimensional array (barChart) for holding the asterisks to be printed in the bar chart (see Figure 13-14)