Here's my task
I have a file filled with sales info each line in the text file is a different sale done by a different Sales Person which is denoted by a 2 char code as in 'r1'. But sale people repeat and there's no foreknowlege how many sales people there will be and of course no knowledge how many sales each will have... Well I need to parse out each unique sales person and the # sales each has and at the end a total of all sales.
My algorithm:
pull out each unique SalesPerson's ID
add to map/set???
cycle input file through map/set counting qty of each ID(sales)
output each id and associated sales with each
total of count of all sales
Not quite sure how to do this or if I have it all together some suggestions would help alot..