Example #1
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;
 }
Example #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);
        }
Example #3
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);
 }
Example #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);
        }