122 homework week 6


Project Requirements

Write a program meeting these specifications:
  1. An input file contains win-loss records for a Little League team. The data includes team name, wins, and losses.
  2. The program reads this data into a vector of structs. Each struct represents a single team.
  3. Then the program prompts the user to enter the winner and loser for a series of just-played games and stores the results.
  4. Finally the program prints out the new standings, in decreasing order of winning percentage.
  5. You must have at least 6 teams, with three new games played.
Hints:
  • "winning percentage" means wins/total games
  • The final standings may go to screen output or a file.
  • Practice doing simple tasks with structs stored in a vector before you really get started on the program.
  • Keep team names simple. Your life will be easier.