public double pointsPerGame;
public double percentageFromField;
public double freethrowPercent;
public double threesPerGame;
public Player(int tp, int ppg, int hg, double per)
this.pointsPerGame = ppg;
this.percentageFromField = per;
public void Name(string fn, string ln)
Console.WriteLine(fn + " " + ln);
public void TotalPoints(int tp) { tp = totalPoints; Console.WriteLine("He has " + totalPoints + " points"); }
public void ScoringStatus()
if (totalPoints > 1000) {
Console.WriteLine("This guy can't be stopped");
} else if (totalPoints >= 1200) {
Console.WriteLine("Hey");
Console.WriteLine("This guy needs some work");
public string PlayerToughness()
return "He's a beast when it's time.";
Player stephCurry = new Player(2000, 40, 60, 0.50);
stephCurry.Name("Steph", "Curry");
stephCurry.ScoringStatus();
stephCurry.TotalPoints(7000);
Console.WriteLine(stephCurry.PlayerToughness());