Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
program generates information regarding the Win-Loss Standings for teams.
program generates information regarding the Win-Loss Standings for teams. Using a struct named Team that possess 3 members (name, wins, and losses), use an initialization list array to store following values into each respective member in the struct:
{"Bethune-Cookman", 11, 3},
{"Coppin State", 5, 9},
{"Delaware State", 1, 13},
{"Florida A&M", 6, 8},
{"Hampton", 11, 4},
{"Howard", 6, 8},
{"Maryland Eastern Shore", 2, 12}, {"Morgan State", 6, 8},
{"North Carolina A&T", 10, 4}, {"North Carolina Central", 8, 6}, {"Norfolk State", 10, 4}, {"Savannah State", 10, 4}, {"South Carolina State", 6, 8}
After storing these values into each member, display each teams' win and losses to the screen. Afterwards, this program should use three functions called win_percentage(string, double, double), wins_losses (string, double, double, double), and winning_teams(string, int, int, double). The win_percentage function should accept all 3 members as arguments, while thelatter two functions should accept all 3 members along with the win_percentages for each team as an argument. Using these three functions the program should produce the respective information:
1) The winning percentages for each team.
2) The wins/losses and winning percentages for each team.
3) Teams with winning records (based on their winning percentage >.500)
If written correctly, your program should generate the following outputs
Initial display for stored values in members of the struct "Team"
Winning Percentages of each team
Teams with winning records (winning percentages above >.500)
Notes
• You can use the <iomanip> package to align the wins-losses and winning percentages appropriately.
- Download Attachments:
- MEAC.jpg
- MEAC1.jpg