コード例 #1
0
ファイル: Quarterback.cs プロジェクト: gwenhidwy/NFLproject
 public double CalcPlayerStats(double passpercent, double passrate, double touchdowns)
 {
     Quarterback quarterback = new Quarterback();
     quarterback.PassingPercentage = passpercent;
     quarterback.PasserRating = passrate;
     quarterback.TouchDowns = touchdowns;
     double averagestats = CalcOverallRating(quarterback.PassingPercentage, quarterback.PasserRating, quarterback.TouchDowns);
     return averagestats;
 }
コード例 #2
0
        public double CalcPlayerStats(double passpercent, double passrate, double touchdowns)
        {
            Quarterback quarterback = new Quarterback();

            quarterback.PassingPercentage = passpercent;
            quarterback.PasserRating      = passrate;
            quarterback.TouchDowns        = touchdowns;
            double averagestats = CalcOverallRating(quarterback.PassingPercentage, quarterback.PasserRating, quarterback.TouchDowns);

            return(averagestats);
        }
コード例 #3
0
ファイル: Quarterback.cs プロジェクト: gwenhidwy/NFLproject
 public Quarterback(string _name, int _age, double _weight, string _position, double passpercent, double passrate, double touchdowns)
 {
     this.Name = _name;
     this.Age = _age;
     this.Weight = _weight;
     this.Position = _position;
     Quarterback quarterback = new Quarterback();
     quarterback.PassingPercentage = passpercent;
     quarterback.PasserRating = passrate;
     quarterback.TouchDowns = touchdowns;
     OverallRating = CalcOverallRating(quarterback.PassingPercentage, quarterback.PasserRating, quarterback.TouchDowns);
 }
コード例 #4
0
        public Quarterback(string _name, int _age, double _weight, string _position, double passpercent, double passrate, double touchdowns)
        {
            this.Name     = _name;
            this.Age      = _age;
            this.Weight   = _weight;
            this.Position = _position;
            Quarterback quarterback = new Quarterback();

            quarterback.PassingPercentage = passpercent;
            quarterback.PasserRating      = passrate;
            quarterback.TouchDowns        = touchdowns;
            OverallRating = CalcOverallRating(quarterback.PassingPercentage, quarterback.PasserRating, quarterback.TouchDowns);
        }