•Discussion: There are
three main steps
– Process the data, counting and
summing the salary amounts for each
sex
–Compute the
averages
–Print the calculated
results
•Assumptions: There is
at least one male and one female among
all the data sets. The only gender codes in the
file are ‘M’ and ‘F’ – any other codes are
counted as ‘M’.