![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Suppose that you are hired as a programmer by a baseball team. Your first job is to write a program that reads a file containing the scores from previous games. All scores are given as the name of the opponent followed by a pair of numbers that represent your team's score and the opponent's score. Here is an example:
"Cubs" 4 2 "Yankees" 9 0 "Blue Jays" 4 3
Your program is to use the information in the file to display your team's wonlost record.