public string Name {get; set;}
public int Age {get; set;}
public Student (string name, int age, double gpa)
public double ShowGPA (string strType)
} else if (strType == "adjusted")
int Num = (Name.Length + Age) % 4;
public static void Function(int i, ref double d)
Console.WriteLine("Entering CallFunction: i = {0}, d = {1}", i, d);
Console.WriteLine("Exiting CallFunction: i = {0}, d = {1}", i, d);
public static void Main()
Student student1 = new Student();
Console.WriteLine(student1.ShowGPA("regular"));
Console.WriteLine(student1.ShowGPA("adjusted"));
Console.WriteLine(student1.LuckyDraw());
Console.WriteLine("=================");
Console.WriteLine("Age:{0}, GPA:{1}", iAge, dGPA);
Function(iAge, ref dGPA);
Console.WriteLine("Age:{0}, GPA:{1}", iAge, dGPA);