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(strName, iAge, dGPA);
Console.WriteLine(student1.ShowGPA("regular"));
Console.WriteLine(student1.ShowGPA("adjusted"));
Console.WriteLine(student1.bIsLucky());
Console.WriteLine("=================");
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);
CallFunction(iAge, ref dGPA);
Console.WriteLine("Age:{0}, GPA:{1}",iAge, dGPA);