public int RateTeam(NflTeam team) { // Defensive team ratings team.ProjectNextWeek(); // Sacks are worth 3 points each int sackPoints = team.ProjectedSacks * 3; // Interceptions are worth 6 points each int intPoints = team.ProjectedSteals * 6; team.Points = sackPoints + intPoints; return team.Points; }
public int RateTeam(NflTeam team) { // Defensive team ratings team.ProjectNextWeek(); // Sacks are worth 3 points each int sackPoints = team.ProjectedSacks * 3; // Interceptions are worth 6 points each int intPoints = team.ProjectedSteals * 6; team.Points = sackPoints + intPoints; return(team.Points); }