public string NAME {get; set;}
public int AGE {get; set;}
public Student(string strName, int iAge, double dGPA)
public double ShowGPA(string strType)
if (strType == "adjusted")
public static void CallFunction(int iInput, ref double dInput)
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);
CallFunction(iAge, ref dGPA);
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);