|
Reads and organizes income statistics. - Parameters:
-
| incomeData | A TableType of income statistics. |
- Precondition:
- The calling module gives directions and prompts user. Input data is error-free and each input line is in the form
G N , where N is the number of people with an income in the G -thousand-dollar group and LOW_END <= G <= HIGH_END . An input line with values of zero for both G and N terminates the input.
- Postcondition:
incomeData[G - LOW_END] = total number of people with an income in the G -thousand-dollar group for each G read. The values read are displayed.
Definition at line 41 of file c01p049.cpp.
References HIGH_END, index(), and LOW_END. |