design a Club class and use it to create an application that simulates a soccer league tournament. You are not limited to the features included in these instructions Design the Club class, to be used in your application, containing:  A private data member code of type string that holds the three letters club’s abbreviation (ex, FCB, LIV, RAM ...)  A private data member name of type string that holds the club’s name (ex, FC Barcelona, Liverpool, Real Madrid …)  A private data member round of type integer that holds the number of rounds the club has played so far in the current league.  A private data member wins of type integer that holds the number of times the club has won in the current league.  A private data member draws of type integer that holds the number of times the club has been drawn in the current league.  A private data member losses of type integer that holds the number of times the club has lost in the current league.  A private data member goals of type integer that holds the number of goals the club has scored in the current league.  A private data member goalsConceded of type integer that holds the number of goals the club has conceded in the current league.  A private data member strength of type integer that holds a number representing the club’s strength. The higher the number, the stronger the club.  A default constructor that sets all integer member variables to 0.  Accessors for each member variable.  Mutators for each member variable.  A member function that generates, depending on the strength of the club, a random integer that simulates the number of goals scored in a game. There are many approaches to generating this random number. The easiest way is that a club with strength X will score a random integer between 0 and X in a game. So teams with higher strengths like Liverpool or Manchester City will likely score more goals than teams with lower strengths such as Norwich or Watford (I apologize if you are a fan of these clubs). Thus, the purpose of using the strength variable is to make the results of games more realistic. If you give your favorite team a very high score, your team will win the league most of the time. For accurate strengths, you can check the club rankings that FIFA provides periodically, or just check out the history of a few past leagues to see how clubs have performed recently.  A member function that calculates and returns the number of points the club has accumulated so far. This number is calculated from the number of wins and draws; a win worth 3 points and a draw worth 1 point (that is, a loss is worth 0 points). Example, if in round # 10 a club has 5 wins, 2 draws and 3 losses, the number of points accumulated so far is 17 (that is, 15 + 2 + 0).  A member function that calculates and returns the difference between the number of goals scored and the number of goals conceded by the club so far.  The overloaded Boolean operator greater than or equal to ( >= ) which returns true if the left operand club has a higher or equal position in the ranking table compared to the right operand club; and returns false otherwise. Club rankings are determined by the number of points accumulated and goal differences as follows. Club A ranks higher than club B if the number of points accumulated by A is greater than the number of points for B. If the numbers of points are equal, the club with the higher rank is the one with the greatest difference between goals scored and conceded. If these differences are also equal, the club with the most goals scored is ranked higher. Besides the above member functions, you can consider using any other useful functions to accomplish the task at hand. Functions can be members of the Club class, friends of it, or just regular stand-alone functions. Write a program that thoroughly tests your Club class. The program should simulate soccer games of your favorite league for the entire season; for example, a league with 20 clubs will have 38 rounds of 10 games each. Each pair of teams will meet twice during the season (as home team and away team). The ranking table should be updated after each round, and your application should be able to display fixtures, results, and standings from any round. One of the most difficult parts of this project is finding the fixtures board (games schedules for all rounds). No need to worry, the schedule table for 20 clubs can be found on the course webpage. If your application is simulating a league with fewer clubs (18 or 16), you will need to build this table. In c++ language please

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 design a Club class and use it to create an application that simulates a
soccer league tournament. You are not limited to the features included in these instructions
Design the Club class, to be used in your application, containing:
 A private data member code of type string that holds the three letters club’s abbreviation
(ex, FCB, LIV, RAM ...)
 A private data member name of type string that holds the club’s name (ex, FC Barcelona,
Liverpool, Real Madrid …)
 A private data member round of type integer that holds the number of rounds the club has
played so far in the current league.
 A private data member wins of type integer that holds the number of times the club has
won in the current league.
 A private data member draws of type integer that holds the number of times the club has
been drawn in the current league.
 A private data member losses of type integer that holds the number of times the club has
lost in the current league.
 A private data member goals of type integer that holds the number of goals the club has
scored in the current league.
 A private data member goalsConceded of type integer that holds the number of goals the
club has conceded in the current league.
 A private data member strength of type integer that holds a number representing the club’s
strength. The higher the number, the stronger the club.
 A default constructor that sets all integer member variables to 0.
 Accessors for each member variable.
 Mutators for each member variable.
 A member function that generates, depending on the strength of the club, a random integer
that simulates the number of goals scored in a game. There are many approaches to
generating this random number. The easiest way is that a club with strength X will score
a random integer between 0 and X in a game. So teams with higher strengths like Liverpool
or Manchester City will likely score more goals than teams with lower strengths such as
Norwich or Watford (I apologize if you are a fan of these clubs). Thus, the purpose of using
the strength variable is to make the results of games more realistic. If you give your
favorite team a very high score, your team will win the league most of the time. For
accurate strengths, you can check the club rankings that FIFA provides periodically, or just
check out the history of a few past leagues to see how clubs have performed recently.
 A member function that calculates and returns the number of points the club has
accumulated so far. This number is calculated from the number of wins and draws; a win
worth 3 points and a draw worth 1 point (that is, a loss is worth 0 points). Example, if in
round # 10 a club has 5 wins, 2 draws and 3 losses, the number of points accumulated so
far is 17 (that is, 15 + 2 + 0).
 A member function that calculates and returns the difference between the number of goals
scored and the number of goals conceded by the club so far.
 The overloaded Boolean operator greater than or equal to ( >= ) which returns true if the
left operand club has a higher or equal position in the ranking table compared to the right
operand club; and returns false otherwise. Club rankings are determined by the number of
points accumulated and goal differences as follows. Club A ranks higher than club B if the
number of points accumulated by A is greater than the number of points for B. If the
numbers of points are equal, the club with the higher rank is the one with the greatest
difference between goals scored and conceded. If these differences are also equal, the club
with the most goals scored is ranked higher.
Besides the above member functions, you can consider using any other useful functions to
accomplish the task at hand. Functions can be members of the Club class, friends of it, or just
regular stand-alone functions.
Write a program that thoroughly tests your Club class. The program should simulate soccer games
of your favorite league for the entire season; for example, a league with 20 clubs will have 38
rounds of 10 games each. Each pair of teams will meet twice during the season (as home team and
away team).
The ranking table should be updated after each round, and your application should be able to
display fixtures, results, and standings from any round.
One of the most difficult parts of this project is finding the fixtures board (games schedules for all
rounds). No need to worry, the schedule table for 20 clubs can be found on the course webpage. If
your application is simulating a league with fewer clubs (18 or 16), you will need to build this
table. In c++ language please

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY