Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Create a program generates information regarding the Win-Loss Standings for teams in the MEAC conference. Using a struct named Team that possess 3

Using C++

Create a program 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:

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 (see next page): image text in transcribed

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 Initial display for stored values in members of the struct "Team" 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 Winning Percentages of each team 0.733 0.429 0.143 0.429 0.714 0.571 0.714 0.714 0.429 TEAMS WITH WINNING RECORDS Teams with winning records (winning percentages above >.500) Bethune-Cookman 11-3 0.786 Hampton 11-4 0.733 North Carolina A&T 10-4 0.714 North Carolina Central Norfolk State 10-4 0.714 Savannah State 10-4 0.714 8-6 0.571

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions