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; }
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); }
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); }