Question: Programming Assignment C++ Create a program in C++ that generates information regarding the Win-Loss Standings for teams in the MEAC conference. Using a struct named

Programming Assignment C++

Create a program in C++ that generates information regarding the Win-Loss Standings for teams in the MEAC conference. 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 the latter 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:

The winning percentages for each team.

The wins/losses and winning percentages for each team.

Teams with winning records (based on their winning percentage >.500)

If written correctly, your program should generate the following outputs (see next page):

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 package to align the wins-losses and winning percentages appropriately

Outputs:

Programming Assignment C++ Create a program in C++ that generates information regarding

gcc version 4.6.3 MEAC MENS BASKETBALL TEAMS CONFERNCE STANDINGS 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 TEAMS WINNING PERCENTAGES Bethune-Cookman Coppin State Delaware State Florida A&M Hampton Howard Maryland Eastern Shore Morgan State North Carolina A&T North Carolina Central Norfolk State Savannah State South Carolina State 0.786 0.357 0.071 0.429 0.733 0.429 0.143 0.429 0.714 0.571 0.714 0.714 0.429

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!