This was the assignment i recieved. I tried giving a try but I'm stuck and need some guidance. I look everywhere trying to learn more about maps and f streams to see if it would help me out but i'm still suck
For this assignment, you will write a program to analyze some formatted data in a text file. Scores for 200 games (one game per line) in an accountants' kickball league are provided here: scores.txt.
(They are in a standardized format with the score for one match on each line, with the score for each team after its name.) Your job is to write a program which parses this file, keeping a running count of how many points are scored by each team (PF) and against each team (PA), printing those values out on the console in this format:
Baboons PF: 3360 PA: 3767
(After putting everything in a map. I'm suppose to output the total points the team scored and the total points all of the opponents scored)