Here's the homework assignment:
Table 3.7 gives the distribution of the U.S. population (in thousands) by age group and sex. Write a program to produce the table that is partially shown in Figure 3.10. For each age group, the column labeled %Males gives the percentage of the people in that age group that are male, and similarly for the column labeled %Females. The last column gives the percentage of the total population in each age group. (Note: Store the information in Table 3.8 in DATA statements. For instance, the first row should be stored as DATA Under 20, 39168, 37202).
Table 3.7
-------------------------------------------------------------
Age Group / Males / Females
Under 20 / 39,168.00 / 37,202.00
20 - 64 / 76,761.00 / 78,291.00
Over 64 / 13,881.00 / 19,980.00
-------------------------------------------------------------
Table 3.10
------------------------------------------------------------------------------------------
U.S. Population (in thousands)
Age Group / Males / Females / %Males / %Females / %Total
Under 20 / 39,168.00 / 37,202.00 / 51.3% / 48.7% / 28.8%
20 - 64 / 76,761.00 / 78,291.00
Over 64 / 13,881.00 / 19,980.00
------------------------------------------------------------------------------------------
I have to write a program, do a flowchart, input/output, use subroutines. And was told that the program would use a RESTORE statement.
I know you guys can just put the answer together really easily. But I rather someone explain to me how to do it so I can try to figure it out myself. Otherwise I will never learn. Thanks in advance!
-Chris