Home Segments Top Top Previous Next

602: Practice

Generalize the program that you were asked to write in Segment 582 such that it records not only game scores, but also opponent names. Assume that the data file includes comments as shown in the following illustration. Have your program record those comments as well.

"Cubs"           4     2  "Nearly rained out" 
"Yankees"        9     0  "Incredibly exciting" 
"Blue Jays"      4     3  "Super boring"