Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

🎯 Objective

In this lab, you will create a class called Sport. The class will have the following attributes:

\uD83D\uDDD2 Requirements

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 method

The method will output:

  1. Name

  2. Number of Players

  3. Number of Wins

  4. Number of Losses

  5. Win/Loss Percentage

🚚 Deliverable

Upload the following:

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

  2. Screenshot of the Console with the code executing

  • No labels