Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this lab, you will create a class called Sport. Team. Your program will Contain a Vector of 4 Teams (you can populate the data with a constructor). Additionally, use a loop to iterate through the items displaying the Information (objects data) The class will have the following attributes:

...

Requirement

Notes

Attributes

  1. Name (Team Name)

  2. Number of Players

  3. Season wins

  4. Season Losses

Class Constructors

  1. Default Constructor

  2. Constructor that takes the above attributes as arguments

Getters

  1. Name (Team Name)

  2. Number of Players

  3. Season wins

  4. Season Losses

  5. Win / Loss Percentage

Setters

  1. Name (Team Name)

  2. Number of Players

  3. Season wins

  4. Season Losses

PrintInformation Print method

The method will output:

  1. Name

  2. Number of Players

  3. Number of Wins

  4. Number of Losses

  5. Win/Loss Percentage

...

Upload the following:

  1. Full source code (.cpp file files or .txt filefiles)

  2. Screenshot of the Console with the code executing