public string Name { get; set; }
public int Age { get; set; }
set { _GPA = value < 0.0 ? 0.0 : value; }
public Student(string name, int age, double gpa)
public double ShowGPA(string strType)
double gpa = strType == "adjusted" ? _GPA * 1.15 : _GPA;
return gpa > 4.0 ? 4.0 : gpa;
int sum = Name.Length + Age;
Student student = new Student("Mary", 18, 3.6);
Console.WriteLine("Regular GPA: {0}", student.ShowGPA("regular"));
Console.WriteLine("Adjusted GPA: {0}", student.ShowGPA("adjusted"));
Console.WriteLine("Lucky Draw: {0}", student.LuckyDraw());