< previous page page_743 next page >

Page 743
0743-01.gif
Figure 13-13
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:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A two-dimensional array for holding the input (absenteeData)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A one-dimensional array (average) for holding the average daily absentee figures for each department (see Figure 13-13)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A two-dimensional array (barChart) for holding the asterisks to be printed in the bar chart (see Figure 13-14)
0743-02.gif
Figure 13-14

 
< previous page page_743 next page >